Browse Source

docs: point docs/master to the same content as the latest release (backport #7980) (#7997)

* Remove master from versions and copy it from the latest. (#7980)

(cherry picked from commit f939f962b1)
pull/8005/head
mergify[bot] 2 years ago
committed by GitHub
parent
commit
cb6baad5ac
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 9 additions and 8 deletions
  1. +9
    -7
      Makefile
  2. +0
    -1
      docs/versions

+ 9
- 7
Makefile View File

@ -186,13 +186,15 @@ 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 ; \
done < versions ;
@cd docs && \
while read -r branch path_prefix; do \
(git checkout $${branch} && npm ci && 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 ; \
mkdir -p ~/output/master ; \
cp -r .vuepress/dist/* ~/output/master/
.PHONY: build-docs
sync-docs:


+ 0
- 1
docs/versions View File

@ -1,4 +1,3 @@
master master
v0.33.x v0.33
v0.34.x v0.34
v0.35.x v0.35

Loading…
Cancel
Save