Skip to content

Commit

Permalink
refactor: use legacy v0.45 / v0.46 docs (#13)
Browse files Browse the repository at this point in the history
* wip

* wip

* removal

* fix for script + comments

* small adjustment to deploy-docs

* Update versions.json

* Update test-deploy.yml
  • Loading branch information
samricotta authored Aug 14, 2023
1 parent a917c22 commit 34168e0
Show file tree
Hide file tree
Showing 346 changed files with 30 additions and 43,735 deletions.
7 changes: 6 additions & 1 deletion .github/workflows/deploy-docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,12 +34,17 @@ jobs:
- name: Install Dependencies
run: yarn install --frozen-lockfile

- name: Build Legacy Docs
run: |
chmod +x build-docs.sh
./build-docs.sh
- name: Build
run: yarn build

- name: Deploy 🚀
uses: JamesIves/[email protected]
with:
branch: gh-pages
folder: ~/output
folder: build
single-commit: true
6 changes: 5 additions & 1 deletion .github/workflows/test-deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,5 +15,9 @@ jobs:
with:
node-version: 16.x
cache: npm
- run: |
chmod +x build-docs.sh
./build-docs.sh
- run: yarn install --frozen-lockfile
- run: yarn build
- run: yarn build
18 changes: 18 additions & 0 deletions build-docs.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
#!/bin/sh

rm -rf ./cosmos-sdk
git clone https://github.com/cosmos/cosmos-sdk/ cosmos-sdk;
cd cosmos-sdk/docs;

while read -r branch path_prefix; do
echo "building vuepress $branch docs"
(
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"

cp -r .vuepress/dist/* "../../build/$path_prefix"
)
done < vuepress_versions
5 changes: 0 additions & 5 deletions versioned_docs/version-0.45/develop/_category_.json

This file was deleted.

395 changes: 0 additions & 395 deletions versioned_docs/version-0.45/develop/advanced-concepts/00-baseapp.md

This file was deleted.

This file was deleted.

Loading

0 comments on commit 34168e0

Please sign in to comment.