This repository has been archived by the owner on Jan 30, 2023. It is now read-only.
-
-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Install the gappy docs if SAGE_SPKG_INSTALL_DOCS=yes
Fetches the Python 3 objects.inv from the copy in the Sage sources.
- Loading branch information
Showing
3 changed files
with
22 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
if [ "$SAGE_SPKG_INSTALL_DOCS" = "yes" ]; then | ||
cd src/docs/ | ||
|
||
# write conf.py override to give correct intersphinx mappings | ||
mv conf.py orig_conf.py | ||
cat >> conf.py <<_EOF_ | ||
with open('orig_conf.py') as f: | ||
exec(f.read()) | ||
|
||
intersphinx_mapping.update({ | ||
'python': (intersphinx_mapping['python'][0], | ||
'$SAGE_SRC/doc/common/python3.inv') | ||
}) | ||
_EOF_ | ||
|
||
make html | ||
sdh_install _build/html/* "$SAGE_SHARE/doc/gappy" | ||
fi |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
if [ -d "$SAGE_SHARE/doc/gappy" ]; then | ||
rm -rf "$SAGE_SHARE/doc/gappy" | ||
fi |