fix: fix redirections links (#13465)

This commit is contained in:
Julien Robert
2022-10-06 19:04:08 +02:00
committed by GitHub
parent 74ce07eb26
commit 5878976741
2 changed files with 101 additions and 98 deletions
+3
View File
@@ -191,6 +191,8 @@ godocs:
# 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 (and it should be main).
# Only redirects that are built into the "redirects" folder of each of
# the branches will be copied out to the root of the build at the end.
build-docs:
@cd docs && \
while read -r branch path_prefix; do \
@@ -200,6 +202,7 @@ build-docs:
cp -r .vuepress/dist/* ~/output/$${path_prefix}/ ; \
cp ~/output/$${path_prefix}/index.html ~/output ; \
cp ~/output/$${path_prefix}/404.html ~/output ; \
cp -r ~/output/$${path_prefix}/redirects/* ~/output || true ; \
done < versions ;
@echo $(DOCS_DOMAIN) > ~/output/CNAME