From cb6baad5ac8cf55ec5b4e04aa548107f352cb75b Mon Sep 17 00:00:00 2001 From: "mergify[bot]" <37929162+mergify[bot]@users.noreply.github.com> Date: Thu, 24 Feb 2022 16:14:23 -0800 Subject: [PATCH] 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 f939f962b19d87e7f23ec912e388ac9165fb1ff4) --- Makefile | 16 +++++++++------- docs/versions | 1 - 2 files changed, 9 insertions(+), 8 deletions(-) diff --git a/Makefile b/Makefile index 50354ebd5..a7ce34ff2 100644 --- a/Makefile +++ b/Makefile @@ -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: diff --git a/docs/versions b/docs/versions index 70754facc..90a8a4cf1 100644 --- a/docs/versions +++ b/docs/versions @@ -1,4 +1,3 @@ -master master v0.33.x v0.33 v0.34.x v0.34 v0.35.x v0.35