-
Notifications
You must be signed in to change notification settings - Fork 31
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix paths / imports in sphinx configuration (#1196)
* fix paths * fix path * ) * set version / release after installation * Update documentation/conf.py * cblas * .. * .. * custom cblas * .. * .. * .. * .. * .. * .. * .. * .. * .. * .. * ? * ? * ? * mock before import? * ? * ? * .. * .. * .. * .. * .. * .. * .. * .. * .. * ... * ... * 3.8 * prio? * .. * .. * .. * .. * .. * dont use AMICI source installation for run-sphinx * fix fix_typehints and verbose output * readd checks * fixups * fix typo * fix GHA * newer swig version GHA * sphinx with python 3.8 * Update test_doc.yml * uninstall base swig3 for doc tests * fix swig * fix CI not running on forks * Revert "fix CI not running on forks" This reverts commit 6f00ddb. * Update test_doc.yml * fix phython ver, use 3.8 for sphinx * match sphinx script with RTD * Update run-sphinx.sh * Update run-sphinx.sh * update readthedocs configuration * ignore generated? * fixups and revert changes * fix sphinx path GHA, change exclude patterns * keep running GHA in ./documentation * revert exclude and pattern changes * use readthedocs builder * remove hdf5 from sphinx build * Update documentation/conf.py * Don't try to reinstall * should not be required... * it is... * remove extra rtd reqs * .. * remove autogen rtd code, keep ext * why? * try not to run test twice? * test CI * Revert "test CI" This reverts commit b3ce43f. Co-authored-by: Daniel Weindl <[email protected]> Co-authored-by: Daniel Weindl <[email protected]>
- Loading branch information
1 parent
6dfa1f8
commit 632f5ed
Showing
12 changed files
with
121 additions
and
82 deletions.
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
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
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
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
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 |
---|---|---|
@@ -1,4 +1,4 @@ | ||
sphinx>=2.4.3 | ||
sphinx>=3.2.1 | ||
mock>=4.0.1 | ||
setuptools>=45.2.0 | ||
pysb>=1.11.0 | ||
|
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 |
---|---|---|
@@ -1,13 +1,17 @@ | ||
#!/bin/bash | ||
# generate code documentation via sphinx and upload to rtd | ||
# generate code documentation via sphinx for upload to rtd | ||
|
||
SCRIPT_PATH=$(dirname $BASH_SOURCE) | ||
AMICI_PATH=$(cd $SCRIPT_PATH/.. && pwd) | ||
|
||
cd ${AMICI_PATH}/documentation | ||
source ../build/venv/bin/activate | ||
pip3 install -r ${AMICI_PATH}/documentation/rtd_requirements.txt | ||
python3 -m venv ${AMICI_PATH}/doc-venv --clear | ||
source ${AMICI_PATH}/doc-venv/bin/activate | ||
python -m pip install --upgrade --no-cache-dir pip | ||
python -m pip install git+https://github.com/readthedocs/readthedocs-sphinx-ext | ||
python -m pip install --exists-action=w --no-cache-dir -r ${AMICI_PATH}/documentation/rtd_requirements.txt | ||
|
||
sphinx-build -T -E -W -D language=en -b html . _build | ||
rm -rf ${AMICI_PATH}/documentation/generated | ||
sphinx-build -T -E -W --keep-going -b readthedocs -d _build/doctrees-readthedocs -D language=en . _build/html | ||
ret=$? | ||
if [[ $ret != 0 ]]; then exit $ret; fi |