From 8dcae0c404c06b4d950c9836c075a5399de6f454 Mon Sep 17 00:00:00 2001 From: Sam Date: Mon, 14 Aug 2023 12:24:01 +0200 Subject: [PATCH] fix for script + comments --- .github/workflows/deploy-docs.yml | 2 +- build-docs.sh | 14 +++++--------- 2 files changed, 6 insertions(+), 10 deletions(-) diff --git a/.github/workflows/deploy-docs.yml b/.github/workflows/deploy-docs.yml index 726ebad33..33513275f 100644 --- a/.github/workflows/deploy-docs.yml +++ b/.github/workflows/deploy-docs.yml @@ -46,5 +46,5 @@ jobs: uses: JamesIves/github-pages-deploy-action@v4.4.1 with: branch: gh-pages - folder: ~/output + folder: build single-commit: true \ No newline at end of file diff --git a/build-docs.sh b/build-docs.sh index 411e74c68..bb20225a6 100644 --- a/build-docs.sh +++ b/build-docs.sh @@ -7,16 +7,12 @@ cd cosmos-sdk/docs; while read -r branch path_prefix; do echo "building vuepress $branch docs" ( - git clean -fdx && git reset --hard && git checkout $branch && npm install && + git clean -fdxq && git reset --hard && git checkout $branch && npm install && VUEPRESS_BASE="/$path_prefix/" + rm basics/app-anatomy.md npm run build - ) + mkdir -p "../../build/$path_prefix" - mkdir -p ./build/$path_prefix/ - cp -r .vuepress/dist/* ./build/$path_prefix/ + cp -r .vuepress/dist/* "../../build/$path_prefix" + ) done < vuepress_versions - -cd ../../ -pwd -mkdir -p ./build -cp -r ./cosmos-sdk/docs/build ./build