Skip to content

Commit

Permalink
Pyrofork: docs: only copy main branch docs to main directory
Browse files Browse the repository at this point in the history
Signed-off-by: wulan17 <[email protected]>
  • Loading branch information
wulan17 committed Dec 30, 2023
1 parent 08283fe commit 835fb00
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions build-docs.sh
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,10 @@ cd ../..
git clone https://wulan17:"$DOCS_KEY"@github.com/Mayuri-Chan/pyrofork-docs.git
cd pyrofork-docs
if [[ "$GITHUB_REF" == "refs/heads/main" ]]; then
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 main
cp -r ../docs/build/html/* .
mkdir main
cp -r ../docs/build/html/* main/
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
Expand Down

0 comments on commit 835fb00

Please sign in to comment.