mirror of
https://github.com/Mayuri-Chan/pyrofork.git
synced 2026-01-12 00:54:51 +00:00
Customize docs building
This commit is contained in:
parent
2fb9d07424
commit
4b95ae1969
1 changed files with 4 additions and 11 deletions
|
|
@ -12,17 +12,10 @@ cd ../..
|
||||||
"$VENV"/bin/sphinx-build -b html "docs/source" "docs/build/html" -j auto
|
"$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
|
git clone https://eyMarv:"$DOCS_KEY"@github.com/eyMarv/pyrofork-docs.git
|
||||||
cd pyrofork-docs
|
cd pyrofork-docs
|
||||||
refs=$(echo "$GITHUB_REF" | cut -d '/' -f "1 2")
|
mkdir -p main
|
||||||
if [[ "$refs" == "refs/tags" ]]; then
|
cd main
|
||||||
mkdir -p 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
|
||||||
cd main
|
cp -r ../../docs/build/html/* .
|
||||||
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/* .
|
|
||||||
fi
|
fi
|
||||||
git config --local user.name "eyMarv"
|
git config --local user.name "eyMarv"
|
||||||
git config --local user.email "eyMarv07@gmail.com"
|
git config --local user.email "eyMarv07@gmail.com"
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue