more readthedocs fixes?

float_support
Anton Lydike 4 years ago
parent 317d106b9c
commit f5afd0a8be

@ -7,6 +7,7 @@ version: 2
# Build documentation in the docs/ directory with Sphinx # Build documentation in the docs/ directory with Sphinx
sphinx: sphinx:
builder: html
configuration: sphinx-docs/source/conf.py configuration: sphinx-docs/source/conf.py
# Optionally set the version of Python and requirements required to build your docs # Optionally set the version of Python and requirements required to build your docs

@ -3,20 +3,22 @@
echo "Generating docs!" echo "Generating docs!"
if command -v 'sphinx-apidoc' >/dev/null; then if ! command -v 'sphinx-apidoc'; then
source venv/bin/activate source venv/bin/activate
pip install sphinx pip install sphinx
fi fi
if [[ $1 == 'generate' ]]; then if [[ $1 == 'generate' ]]; then
PYTHONPATH=../../ sphinx-apidoc -e -f -o . ../../riscemu ../../riscemu/colors.py ../../riscemu/__main__.py PYTHONPATH=../../ sphinx-apidoc -e -f -o . ../../riscemu ../../riscemu/colors.py ../../riscemu/__main__.py
echo "only generating, not building..." echo "only generating, not building..."
rm ./modules.rst
exit 0 exit 0
fi fi
PYTHONPATH=. sphinx-apidoc -e -f -o sphinx-docs/source riscemu riscemu/colors.py riscemu/__main__.py PYTHONPATH=. sphinx-apidoc -e -f -o sphinx-docs/source riscemu riscemu/colors.py riscemu/__main__.py
rm sphinx-docs/source/modules.rst
cd sphinx-docs cd sphinx-docs
make html make html

Loading…
Cancel
Save