From 835fb00e386075964105bb1920d9d5b406b0b389 Mon Sep 17 00:00:00 2001 From: wulan17 Date: Sat, 30 Dec 2023 22:01:16 +0700 Subject: [PATCH] Pyrofork: docs: only copy main branch docs to main directory Signed-off-by: wulan17 --- build-docs.sh | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/build-docs.sh b/build-docs.sh index a3a628e3e..2f49c97a7 100644 --- a/build-docs.sh +++ b/build-docs.sh @@ -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