forked from cosmos/cosmos-sdk
-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
docs: add 0.47 to docs (cosmos#13852)
- Loading branch information
1 parent
fc21215
commit f1fc44e
Showing
9 changed files
with
61 additions
and
41 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
#!/bin/sh | ||
|
||
# This builds the docs.cosmos.network docs using docusaurus. | ||
# Old documentation, which have not been migrated to docusaurus are generated with vuepress. | ||
COMMIT=$(git rev-parse HEAD) | ||
mkdir -p ~/versioned_docs ~/versioned_sidebars | ||
for version in $(jq -r .[] versions.json); do | ||
echo "building docusaurus $version docs" | ||
git clean -fdx && git reset --hard && git checkout release/$version.x | ||
sh ./pre.sh | ||
npm ci && npm run docusaurus docs:version $version | ||
mv ./versioned_docs/* ~/versioned_docs/ | ||
mv ./versioned_sidebars/* ~/versioned_sidebars/ | ||
done | ||
echo "building docusaurus main docs" | ||
(git clean -fdx && git reset --hard && git checkout $COMMIT) | ||
mv ~/versioned_docs ~/versioned_sidebars . | ||
npm ci && npm run build | ||
mv build ~/output | ||
while read -r branch path_prefix; do | ||
echo "building vuepress $branch docs" | ||
(git clean -fdx && git reset --hard && git checkout $branch && npm install && VUEPRESS_BASE="/$path_prefix/" npm run build) | ||
mkdir -p ~/output/$path_prefix | ||
cp -r .vuepress/dist/* ~/output/$path_prefix/ | ||
done < vuepress_versions | ||
echo "setup domain" | ||
echo $DOCS_DOMAIN > ~/output/CNAME |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
[ | ||
"v0.47" | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters