Add versioned docs to build-docs task (#7413)

* add launchpad & master versioned doc-builds

* Update Makefile

Co-authored-by: Amaury Martiny <amaury.martiny@protonmail.com>
This commit is contained in:
Cory 2020-09-30 09:12:57 -07:00 committed by GitHub
parent d917520092
commit a2c67450ec
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 10 additions and 6 deletions

View File

@ -201,11 +201,14 @@ godocs:
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 ; \
while read -a p; do \
branch=$${p[0]} ; \
path_prefix=$${p[1]} ; \
(git checkout $${branch} && npm install && VUEPRESS_BASE="/$${path_prefix}/" npm run build) ; \
mkdir -p ~/output/$${path_prefix} ; \
cp -r .vuepress/dist/* ~/output/$${path_prefix}/ ; \
# Note: the last entry inside the `versions` file will be the default root index.html.
cp ~/output/$${path_prefix}/index.html ~/output ; \
done < versions ;
sync-docs:

View File

@ -1 +1,2 @@
master
master master
launchpad/backports v0.39