|
|
@ -9,6 +9,11 @@ if ! command -v 'sphinx-apidoc'; then
|
|
|
|
pip install sphinx
|
|
|
|
pip install sphinx
|
|
|
|
fi
|
|
|
|
fi
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
# delete old help folder
|
|
|
|
|
|
|
|
rm -rf sphinx-docs/source/help
|
|
|
|
|
|
|
|
cp -r docs sphinx-docs/source/help
|
|
|
|
|
|
|
|
|
|
|
|
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..."
|
|
|
@ -16,9 +21,6 @@ if [[ $1 == 'generate' ]]; then
|
|
|
|
exit 0
|
|
|
|
exit 0
|
|
|
|
fi
|
|
|
|
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
|
|
|
|
PYTHONPATH=. sphinx-apidoc -e -f -o sphinx-docs/source riscemu riscemu/colors.py riscemu/__main__.py
|
|
|
|
|
|
|
|
|
|
|
|