docs: docs-staging → master (#5468)

## Description

- Makefile: branches and path prefixes from `versions` work on `docs-staging` https://github.com/tendermint/tendermint/pull/5467
- Expects to have:
   - https://docs.tendermint.com/master
   - https://docs.tendermint.com/v0.32
   - https://docs.tendermint.com/v0.33
This commit is contained in:
Cyrus Goh
2020-10-06 07:36:46 +00:00
committed by GitHub
parent 8d28e7467c
commit 46252a9b69
4 changed files with 13 additions and 10 deletions
+6 -6
View File
@@ -188,12 +188,12 @@ DESTINATION = ./index.html.md
###############################################################################
build-docs:
cd docs && \
while read p; do \
(git checkout $${p} . && npm install && VUEPRESS_BASE="/$${p}/" npm run build) ; \
mkdir -p ~/output/$${p} ; \
cp -r .vuepress/dist/* ~/output/$${p}/ ; \
cp ~/output/$${p}/index.html ~/output ; \
@cd docs && \
while read -r branch path_prefix; do \
(git checkout $${branch} && npm install && VUEPRESS_BASE="/$${path_prefix}/" npm run build) ; \
mkdir -p ~/output/$${path_prefix} ; \
cp -r .vuepress/dist/* ~/output/$${path_prefix}/ ; \
cp ~/output/$${path_prefix}/index.html ~/output ; \
done < versions ;
.PHONY: build-docs
+1 -1
View File
@@ -160,5 +160,5 @@ module.exports = {
ga: 'UA-51029217-11'
}
]
],
]
};
+3
View File
@@ -6,6 +6,9 @@
"dependencies": {
"vuepress-theme-cosmos": "^1.0.173"
},
"devDependencies": {
"watchpack": "^1.6.1"
},
"scripts": {
"preserve": "./pre.sh",
"serve": "trap 'exit 0' SIGINT; vuepress dev --no-cache",
+3 -3
View File
@@ -1,3 +1,3 @@
v0.32
v0.33
master
master master
v0.32 v0.32
cyrus/0.33-version v0.33