Skip to content

Commit

Permalink
fix for script + comments
Browse files Browse the repository at this point in the history
  • Loading branch information
samricotta committed Aug 14, 2023
1 parent b3d0a83 commit 8dcae0c
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 10 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/deploy-docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -46,5 +46,5 @@ jobs:
uses: JamesIves/[email protected]
with:
branch: gh-pages
folder: ~/output
folder: build
single-commit: true
14 changes: 5 additions & 9 deletions build-docs.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit 8dcae0c

Please sign in to comment.