From 6e84c1597d1dd134d0b0453b96da0d5586011909 Mon Sep 17 00:00:00 2001 From: Rene Pot Date: Wed, 27 Nov 2024 01:45:05 -0800 Subject: [PATCH] chore: set up redirects --- docs/sidebars.js | 5 +---- docs/static/_redirects | 6 ++++++ 2 files changed, 7 insertions(+), 4 deletions(-) create mode 100644 docs/static/_redirects diff --git a/docs/sidebars.js b/docs/sidebars.js index 13f2e954c7..24e799a7bb 100644 --- a/docs/sidebars.js +++ b/docs/sidebars.js @@ -82,10 +82,7 @@ const sidebars = { ], }, { - Recipes: [ - 'recipes/recipes', - 'recipes/transfer-infinite-loading-all-options-selected', - ], + Recipes: ['recipes/transfer-infinite-loading-all-options-selected'], }, { Help: [ diff --git a/docs/static/_redirects b/docs/static/_redirects new file mode 100644 index 0000000000..e18eca30d9 --- /dev/null +++ b/docs/static/_redirects @@ -0,0 +1,6 @@ +# Redirects to the developer portal + +/demo https://developers.dhis2.org/demo +/components/* https://developers.dhis2.org/docs/ui/components/:splat +/recipes/* https://developers.dhis2.org/docs/ui/recipes/:splat +/* https://developers.dhis2.org/design-system/:splat \ No newline at end of file