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