Contact
CoCalc Logo Icon
StoreFeaturesDocsShareSupport News AboutSign UpSign In
| Download
Views: 19204
1
#!/bin/bash
2
#
3
# To execute this script, use "sage -sh"
4
#
5
#
6
# To upload updated apidoc to leopardi@SourceForge (2017), use:
7
# rsync -avz --delete doc/_build/html/ [email protected]:/home/project-web/boolean-cayley-graphs/htdocs/
8
#
9
source ./bcg_version.sh
10
11
# Delete existing doc/*.rst files
12
rm -f doc/boolean_cayley_graphs*.rst
13
14
# Create doc/references.rst from boolean_cayley_graphs/references.py
15
sage<<EOF
16
from boolean_cayley_graphs.references import print_sage_references_index_rst
17
ref_file = open("doc/references.rst","w")
18
print_sage_references_index_rst(file=ref_file)
19
quit
20
EOF
21
pushd doc
22
23
# Use sphinx-apidoc to re-create the documentation from the Python files in ../boolean_cayley_graphs
24
sphinx-apidoc -e -E -H "Boolean-Cayley-graphs" -A "Paul Leopardi" \
25
-V ${BCG_VERSION} -R ${BCG_RELEASE} \
26
-t doc/_templates \
27
-o . ../boolean_cayley_graphs
28
make html
29
popd
30
31