Skip to content

Commit

Permalink
Customize docs building
Browse files Browse the repository at this point in the history
  • Loading branch information
eyMarv committed Jan 7, 2024
1 parent 2fb9d07 commit 4b95ae1
Showing 1 changed file with 4 additions and 11 deletions.
15 changes: 4 additions & 11 deletions build-docs.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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 "[email protected]"
Expand Down

0 comments on commit 4b95ae1

Please sign in to comment.