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