This is an automated email from the ASF dual-hosted git repository.

maximebeauchemin pushed a commit to branch docs_redirect
in repository https://gitbox.apache.org/repos/asf/superset.git

commit 9864b6e6bbb243873e2fe1b02c0c20eecab0f8a2
Author: Maxime Beauchemin <[email protected]>
AuthorDate: Sat Apr 27 17:44:53 2024 -0700

    docs: set up redirects
    
    Someone filled an issue about search index referring to dead links in our
    documentation. Turns out many of the top links when googling `apache
    superset documentation` point to 404s now.
    
    In this PR I'm trying to set up client-side redirects to the related pages.
    
    Note that the docs for this plugin state that server-side redirects are
    better, and that the redirects don't work in dev, only prod, which
    makes it hard to test
    
    In the future, we'll need more rigor around catching dead links,
    either during code review for the docs, or through some docusaurus
    automation magic forcing us to come up with redirects whenever we kill
    routes.
---
 docs/docusaurus.config.js | 28 ++++++++++++++++++++++++++++
 1 file changed, 28 insertions(+)

diff --git a/docs/docusaurus.config.js b/docs/docusaurus.config.js
index 03f91b00df..f2e83830d3 100644
--- a/docs/docusaurus.config.js
+++ b/docs/docusaurus.config.js
@@ -135,6 +135,34 @@ const config = {
             to: '/docs/faq',
             from: '/docs/frequently-asked-questions',
           },
+          {
+            to: '/docs/installation/kubernetes',
+            from: '/docs/installation/running-on-kubernetes/',
+          },
+          {
+            to: '/docs/contributing/howtos',
+            from: '/docs/contributing/testing-locally/',
+          },
+          {
+            to: '/docs/using-superset/creating-your-first-dashboard',
+            from: 
'/docs/creating-charts-dashboards/creating-your-first-dashboard/',
+          },
+          {
+            to: '/docs/using-superset/creating-your-first-dashboard',
+            from: '/docs/creating-charts-dashboards/exploring-data/',
+          },
+          {
+            to: '/docs/quickstart',
+            from: 
'/docs/installation/installing-superset-using-docker-compose/',
+          },
+          {
+            to: '/docs/contributing/howtos',
+            from: '/docs/contributing/creating-viz-plugins/',
+          },
+          {
+            to: '/docs/installation/kubernetes/',
+            from: '/docs/installation/',
+          },
         ],
       },
     ],

Reply via email to