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:
parent
e8479a39bf
commit
1d8a878728
1
Makefile
1
Makefile
@ -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
|
||||
|
||||
|
||||
@ -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/' },
|
||||
])
|
||||
}
|
||||
|
||||
@ -1,3 +1,3 @@
|
||||
main main
|
||||
release/v0.44.x v0.44
|
||||
release/v0.45.x v0.45
|
||||
main main
|
||||
|
||||
Loading…
Reference in New Issue
Block a user