Skip to content

Commit

Permalink
docs: Fix master to main redirect (#11782)
Browse files Browse the repository at this point in the history
* Fix master to main redirect

* copy 404.html to root

* use main as default branch

Co-authored-by: Julien Robert <[email protected]>
  • Loading branch information
glnro and julienrbrt authored Apr 26, 2022
1 parent e8479a3 commit 1d8a878
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -202,6 +202,7 @@ build-docs:
mkdir -p ~/output/$${path_prefix} ; \
cp -r .vuepress/dist/* ~/output/$${path_prefix}/ ; \
cp ~/output/$${path_prefix}/index.html ~/output ; \
cp ~/output/$${path_prefix}/404.html ~/output ; \
done < versions ;
@echo $(DOCS_DOMAIN) > ~/output/CNAME

Expand Down
1 change: 1 addition & 0 deletions docs/.vuepress/enhanceApp.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,6 @@ export default ({ router }) => {
{ path: '/main/spec/governance/', redirect: '/main/modules/gov/' },
{ path: '/v0.41/', redirect: '/v0.42/' },
{ path: '/v0.43/', redirect: '/v0.44/' },
{ path: '/master/', redirect: '/main/' },
])
}
2 changes: 1 addition & 1 deletion docs/versions
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
main main
release/v0.44.x v0.44
release/v0.45.x v0.45
main main

0 comments on commit 1d8a878

Please sign in to comment.