fixed docs folder not included in readthedocs build
This commit is contained in:
parent
40559f00b4
commit
e8870420d3
@ -9,6 +9,11 @@ if ! command -v 'sphinx-apidoc'; then
|
||||
pip install sphinx
|
||||
fi
|
||||
|
||||
|
||||
# delete old help folder
|
||||
rm -rf sphinx-docs/source/help
|
||||
cp -r docs sphinx-docs/source/help
|
||||
|
||||
if [[ $1 == 'generate' ]]; then
|
||||
PYTHONPATH=../../ sphinx-apidoc -e -f -o . ../../riscemu ../../riscemu/colors.py ../../riscemu/__main__.py
|
||||
echo "only generating, not building..."
|
||||
@ -16,9 +21,6 @@ if [[ $1 == 'generate' ]]; then
|
||||
exit 0
|
||||
fi
|
||||
|
||||
# delete old help folder
|
||||
rm -rf sphinx-docs/source/help
|
||||
cp -r docs sphinx-docs/source/help
|
||||
|
||||
PYTHONPATH=. sphinx-apidoc -e -f -o sphinx-docs/source riscemu riscemu/colors.py riscemu/__main__.py
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user