docs: Fix master to main redirect (#11782)

* Fix master to main redirect

* copy 404.html to root

* use main as default branch

Co-authored-by: Julien Robert <julien@rbrt.fr>
This commit is contained in:
lg 2022-04-26 22:55:51 +02:00 committed by GitHub
parent e8479a39bf
commit 1d8a878728
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 3 additions and 1 deletions

View File

@ -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

View File

@ -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/' },
])
}

View File

@ -1,3 +1,3 @@
main main
release/v0.44.x v0.44
release/v0.45.x v0.45
main main