Skip to content

Commit

Permalink
chore: added SEO routes
Browse files Browse the repository at this point in the history
  • Loading branch information
srinify committed Jan 19, 2022
1 parent 2ea671e commit f91ebe0
Show file tree
Hide file tree
Showing 3 changed files with 1,482 additions and 5 deletions.
77 changes: 77 additions & 0 deletions docs-v2/docusaurus.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,81 @@ const config = {
favicon: 'img/favicon.ico',
organizationName: 'apache', // Usually your GitHub org/user name.
projectName: 'superset', // Usually your repo name.
plugins: [
[
'@docusaurus/plugin-client-redirects',
{
fromExtensions: ['html', 'htm'],
toExtensions: ['exe', 'zip'],
redirects: [
{
to: '/docs/installation/installing-superset-using-docker-compose',
from: '/installation.html',
},
{
to: '/docs/intro',
from: '/tutorials.html',
},
{
to: '/docs/creating-charts-dashboards/first-dashboard',
from: '/admintutorial.html',
},
{
to: '/docs/creating-charts-dashboards/first-dashboard',
from: '/usertutorial.html',
},
{
to: '/docs/security',
from: '/security.html',
},
{
to: '/docs/installation/sql-templating',
from: '/sqllab.html',
},
{
to: '/docs/installation/sql-templating',
from: '/gallery.html',
},
{
to: '/docs/intro',
from: '/sqllab.html',
},
{
to: '/docs/databases/druid',
from: '/druid.html',
},
{
to: '/docs/miscellaneous/country-map-tools',
from: '/misc.html',
},
{
to: '/docs/miscellaneous/country-map-tools',
from: '/visualization.html',
},
{
to: '/docs/frequently-asked-questions',
from: '/videos.html',
},
{
to: '/docs/frequently-asked-questions',
from: '/faq.html',
},
{
to: '/docs/intro',
from: '/index.html',
},
{
to: '/docs/creating-charts-dashboards',
from: '/tutorial.html',
},
{
to: '/docs/installation/alerts-reports',
from: '/docs/installation/email-reports',
},
],
},
],
],

presets: [
[
Expand Down Expand Up @@ -130,6 +205,8 @@ const config = {
darkTheme: darkCodeTheme,
},
}),


};

module.exports = config;
1 change: 1 addition & 0 deletions docs-v2/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
},
"dependencies": {
"@docusaurus/core": "2.0.0-beta.9",
"@docusaurus/plugin-client-redirects": "^2.0.0-beta.14",
"@docusaurus/preset-classic": "2.0.0-beta.9",
"@mdx-js/react": "^1.6.21",
"@svgr/webpack": "^5.5.0",
Expand Down
Loading

0 comments on commit f91ebe0

Please sign in to comment.