From a276638f5727ae5d697c7f141fe28fb5b98c6739 Mon Sep 17 00:00:00 2001 From: Anton Lydike Date: Fri, 23 Apr 2021 21:22:26 +0200 Subject: [PATCH] fixed docs folder not included in readthedocs build [second try] --- generate-docs.sh | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/generate-docs.sh b/generate-docs.sh index 113e73c..4e7e983 100755 --- a/generate-docs.sh +++ b/generate-docs.sh @@ -10,17 +10,22 @@ if ! command -v 'sphinx-apidoc'; then fi -# delete old help folder -rm -rf sphinx-docs/source/help -cp -r docs sphinx-docs/source/help if [[ $1 == 'generate' ]]; then + + # delete old help folder + rm -rf help + cp -r ../../docs help + PYTHONPATH=../../ sphinx-apidoc -e -f -o . ../../riscemu ../../riscemu/colors.py ../../riscemu/__main__.py echo "only generating, not building..." rm ./modules.rst 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