mirror of
https://github.com/tendermint/tendermint.git
synced 2026-08-28 20:06:24 +00:00
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:
@@ -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
|
||||
|
||||
|
||||
@@ -160,5 +160,5 @@ module.exports = {
|
||||
ga: 'UA-51029217-11'
|
||||
}
|
||||
]
|
||||
],
|
||||
]
|
||||
};
|
||||
|
||||
@@ -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
@@ -1,3 +1,3 @@
|
||||
v0.32
|
||||
v0.33
|
||||
master
|
||||
master master
|
||||
v0.32 v0.32
|
||||
cyrus/0.33-version v0.33
|
||||
Reference in New Issue
Block a user