From e8870420d33fbbf2e9d8d90b9d7e4f32cecb701e Mon Sep 17 00:00:00 2001 From: Anton Lydike Date: Fri, 23 Apr 2021 21:19:25 +0200 Subject: [PATCH] fixed docs folder not included in readthedocs build --- generate-docs.sh | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/generate-docs.sh b/generate-docs.sh index 84fb599..113e73c 100755 --- a/generate-docs.sh +++ b/generate-docs.sh @@ -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