docs: versioning (#455)

* docs: versioning

* update label

* reorder

* try fix

* try fix 2

* try fix

* reorder steps

* add docs folder to check

* *
This commit is contained in:
Federico Kunze Küllmer
2021-08-18 11:09:50 +00:00
committed by GitHub
parent f34e9b5fc1
commit 1b95d06c92
7 changed files with 7178 additions and 6998 deletions
+16 -5
View File
@@ -271,16 +271,27 @@ docs-serve:
yarn && \
yarn run serve
# This builds a docs site for each branch/tag in `./docs/versions`
# and copies each site to a version prefixed path. The last entry inside
# the `versions` file will be the default root index.html.
build-docs:
# Build the site into docs/.vuepress/dist
build-docs:
@$(MAKE) docs-tools-stamp && \
cd docs && \
yarn && \
yarn run build
.PHONY: docs-serve build-docs
# This builds a docs site for each branch/tag in `./docs/versions`
# and copies each site to a version prefixed path. The last entry inside
# the `versions` file will be the default root index.html.
build-docs-versioned:
@$(MAKE) docs-tools-stamp && \
cd docs && \
while read -r branch path_prefix; do \
(git checkout $${branch} && npm install && 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 ;
.PHONY: docs-serve build-docs build-docs-versioned
###############################################################################
### Tests & Simulation ###