mirror of
https://github.com/Mayuri-Chan/pyrofork.git
synced 2026-01-11 16:44:53 +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
|
||||
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"
|
||||
|
|
|
|||
Loading…
Reference in a new issue