Browse Source

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
pull/5471/head
Cyrus Goh 4 years ago
committed by GitHub
parent
commit
46252a9b69
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 13 additions and 10 deletions
  1. +6
    -6
      Makefile
  2. +1
    -1
      docs/.vuepress/config.js
  3. +3
    -0
      docs/package.json
  4. +3
    -3
      docs/versions

+ 6
- 6
Makefile View File

@ -188,12 +188,12 @@ DESTINATION = ./index.html.md
############################################################################### ###############################################################################
build-docs: 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 ; done < versions ;
.PHONY: build-docs .PHONY: build-docs


+ 1
- 1
docs/.vuepress/config.js View File

@ -160,5 +160,5 @@ module.exports = {
ga: 'UA-51029217-11' ga: 'UA-51029217-11'
} }
] ]
],
]
}; };

+ 3
- 0
docs/package.json View File

@ -6,6 +6,9 @@
"dependencies": { "dependencies": {
"vuepress-theme-cosmos": "^1.0.173" "vuepress-theme-cosmos": "^1.0.173"
}, },
"devDependencies": {
"watchpack": "^1.6.1"
},
"scripts": { "scripts": {
"preserve": "./pre.sh", "preserve": "./pre.sh",
"serve": "trap 'exit 0' SIGINT; vuepress dev --no-cache", "serve": "trap 'exit 0' SIGINT; vuepress dev --no-cache",


+ 3
- 3
docs/versions View File

@ -1,3 +1,3 @@
v0.32
v0.33
master
master master
v0.32 v0.32
cyrus/0.33-version v0.33

Loading…
Cancel
Save