Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add versioned docs to build-docs task #7413

Merged
merged 3 commits into from
Sep 30, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 8 additions & 5 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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) ; \
amaury1093 marked this conversation as resolved.
Show resolved Hide resolved
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 ; \
amaury1093 marked this conversation as resolved.
Show resolved Hide resolved
done < versions ;

sync-docs:
Expand Down
3 changes: 2 additions & 1 deletion docs/versions
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
master
master master
launchpad/backports v0.39