-
-
Notifications
You must be signed in to change notification settings - Fork 673
Description
There are lots of times when it would be convenient to have the documentation of various spkgs installed in a local or system Sage installation. For example, it seems that I'm always wishing that I had that at an airport or on an airplane. At one point a long time ago, we had an extradocs spkg, but it was never maintained. So here is a proposal:
When building an spkg, if the SAGE_SPKG_INSTALL_DOCS environment variable is yes, then the docs are built (if available in the spkg) and are installed in $SAGE_ROOT/local/share/doc//
For example, numpy includes the docs with the sources. I'd like to insert the following at the bottom of the numpy spkg-install:
if [ "x$SAGE_SPKG_INSTALL_DOCS" = xyes ] ; then
cd doc
make html
if [ $? -ne 0 ]; then
echo "Error building numpy docs."
exit 1
fi
mkdir -p $SAGE_ROOT/local/share/doc/numpy
mv build/html $SAGE_ROOT/local/share/doc/numpy
fi
This builds the numpy docs and makes a directory $SAGE_ROOT/local/share/doc/numpy/html/ that contains the standalone html documentation for numpy.
Here are a few updated spkgs:
- numpy: Make numpy support SAGE_SPKG_INSTALL_DOCS #10826
- cython: Make cython support SAGE_SPKG_INSTALL_DOCS #10827
- matplotlib: Make matplotlib support SAGE_SPKG_INSTALL_DOCS #10828
- mpmath: Make mpmath support SAGE_SPKG_INSTALL_DOCS #10829
- pari: Make pari support SAGE_SPKG_INSTALL_DOCS #10830
- gap: Make gap support SAGE_SPKG_INSTALL_DOCS #10825
- python: Make python support SAGE_SPKG_INSTALL_DOCS #10831
- sagetex: Make SageTeX support SAGE_SPKG_INSTALL_DOCS #10908
CC: @sagetrac-drkirkby @kcrisman
Component: packages: standard
Author: Jason Grout
Reviewer: David Kirkby
Merged: sage-4.7.alpha1
Issue created by migration from https://trac.sagemath.org/ticket/10823