From 4b95ae1969ee8a600830e5d05fb96a0d2cc0ba1a Mon Sep 17 00:00:00 2001 From: eyMarv Date: Sun, 7 Jan 2024 01:14:20 +0100 Subject: [PATCH] Customize docs building --- build-docs.sh | 15 ++++----------- 1 file changed, 4 insertions(+), 11 deletions(-) diff --git a/build-docs.sh b/build-docs.sh index 1a057d3f..d94e3f2c 100644 --- a/build-docs.sh +++ b/build-docs.sh @@ -12,17 +12,10 @@ cd ../.. "$VENV"/bin/sphinx-build -b html "docs/source" "docs/build/html" -j auto git clone https://eyMarv:"$DOCS_KEY"@github.com/eyMarv/pyrofork-docs.git cd pyrofork-docs -refs=$(echo "$GITHUB_REF" | cut -d '/' -f "1 2") -if [[ "$refs" == "refs/tags" ]]; then - mkdir -p main - cd main - rm -rf _includes api genindex.html intro py-modindex.html sitemap.xml support.html topics static faq index.html objects.inv searchindex.js start telegram - cp -r ../../docs/build/html/* . -else - mkdir -p staging - cd staging - rm -rf _includes api genindex.html intro py-modindex.html sitemap.xml support.html topics static faq index.html objects.inv searchindex.js start telegram - cp -r ../../docs/build/html/* . +mkdir -p main +cd main +rm -rf _includes api genindex.html intro py-modindex.html sitemap.xml support.html topics static faq index.html objects.inv searchindex.js start telegram +cp -r ../../docs/build/html/* . fi git config --local user.name "eyMarv" git config --local user.email "eyMarv07@gmail.com"