diff --git a/website/docusaurus.config.js b/website/docusaurus.config.js index 18ce44b080..d54b7d0680 100644 --- a/website/docusaurus.config.js +++ b/website/docusaurus.config.js @@ -15,8 +15,18 @@ const config = { favicon: '/img/favicon.ico', organizationName: 'wix', projectName: 'Detox', - plugins: ['docusaurus-plugin-sass'], - + plugins: ['docusaurus-plugin-sass', + ['@docusaurus/plugin-client-redirects', + { + redirects: [ + { + from: '/docs', + to: '/docs/next/introduction/getting-started', + } + ] + } + ] + ], presets: [ [ '@docusaurus/preset-classic', @@ -24,10 +34,10 @@ const config = { ({ gtag: { trackingID: 'G-2Z5WTH61Y3', - anonymizeIP: true, + anonymizeIP: true }, googleTagManager: { - containerId: 'GTM-M58K66V8', + containerId: 'GTM-M58K66V8' }, blog: { path: 'blog', @@ -40,7 +50,7 @@ const config = { authorsMapPath: 'authors.yml', blogTitle: 'Blog', blogDescription: - "All the important updates and announcements from Detox crew, tips and tricks and everything else that you don't want to miss.", + 'All the important updates and announcements from Detox crew, tips and tricks and everything else that you don\'t want to miss.', blogSidebarCount: 5, blogSidebarTitle: 'All our posts', routeBasePath: 'blog', @@ -68,7 +78,7 @@ const config = { ], themeConfig: - /** @type {import('@docusaurus/preset-classic').ThemeConfig} */ + /** @type {import('@docusaurus/preset-classic').ThemeConfig} */ ({ navbar: { title: 'Detox', diff --git a/website/package.json b/website/package.json index 3bc4cfbac7..79557b70bf 100644 --- a/website/package.json +++ b/website/package.json @@ -16,6 +16,7 @@ }, "dependencies": { "@docusaurus/core": "^2.3.1", + "@docusaurus/plugin-client-redirects": "^2.4.3", "@docusaurus/plugin-google-gtag": "^2.3.1", "@docusaurus/preset-classic": "^2.3.1", "@docusaurus/remark-plugin-npm2yarn": "^2.3.1",