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:
parent
d917520092
commit
a2c67450ec
13
Makefile
13
Makefile
@ -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:
|
||||
|
||||
@ -1 +1,2 @@
|
||||
master
|
||||
master master
|
||||
launchpad/backports v0.39
|
||||
|
||||
Loading…
Reference in New Issue
Block a user