|
|
|
@ -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
|
|
|
|
|
|
|
|
|
|