From 1d8a8787285281470d395bc24a3ceae66b157072 Mon Sep 17 00:00:00 2001 From: lg <8335464+glnro@users.noreply.github.com> Date: Tue, 26 Apr 2022 22:55:51 +0200 Subject: [PATCH] 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 --- Makefile | 1 + docs/.vuepress/enhanceApp.js | 1 + docs/versions | 2 +- 3 files changed, 3 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 384cbf7b2b..cc73a26b79 100644 --- a/Makefile +++ b/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 diff --git a/docs/.vuepress/enhanceApp.js b/docs/.vuepress/enhanceApp.js index 52c90507a8..24b87e8006 100644 --- a/docs/.vuepress/enhanceApp.js +++ b/docs/.vuepress/enhanceApp.js @@ -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/' }, ]) } diff --git a/docs/versions b/docs/versions index ff500eb55c..aed0c21b40 100644 --- a/docs/versions +++ b/docs/versions @@ -1,3 +1,3 @@ -main main release/v0.44.x v0.44 release/v0.45.x v0.45 +main main