fix: fix redirections links (#13465)
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user