-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #160 from storybookjs/charles/sb-1522-move-generat…
…ed-redirects-to-middleware Move generated redirects to middleware
- Loading branch information
Showing
10 changed files
with
1,863 additions
and
174 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,103 @@ | ||
import { RedirectData } from './types'; | ||
|
||
export const docsVersion6Redirects: RedirectData[] = [ | ||
{ | ||
source: '/docs/6/get-started', | ||
destination: '/docs/6', | ||
permanent: true, | ||
}, | ||
// Version 6.4 | ||
{ | ||
source: '/docs/workflows/testing-with-storybook', | ||
destination: '/docs/writing-tests', | ||
permanent: true, | ||
}, | ||
{ | ||
source: '/docs/workflows/unit-testing', | ||
destination: | ||
'/docs/writing-tests/import-stories-in-tests/stories-in-unit-tests', | ||
permanent: true, | ||
}, | ||
{ | ||
source: '/docs/workflows/visual-testing', | ||
destination: '/docs/writing-tests/visual-testing', | ||
permanent: true, | ||
}, | ||
{ | ||
source: '/docs/workflows/interaction-testing', | ||
destination: '/docs/writing-tests/interaction-testing', | ||
permanent: true, | ||
}, | ||
{ | ||
source: '/docs/workflows/snapshot-testing', | ||
destination: '/docs/writing-tests/snapshot-testing/snapshot-testing', | ||
permanent: true, | ||
}, | ||
{ | ||
source: '/docs/workflows/build-pages-with-storybook', | ||
destination: '/docs/writing-stories/build-pages-with-storybook', | ||
permanent: true, | ||
}, | ||
{ | ||
source: '/docs/workflows/stories-for-multiple-components', | ||
destination: '/docs/writing-stories/stories-for-multiple-components', | ||
permanent: true, | ||
}, | ||
{ | ||
source: '/docs/workflows/publish-storybook', | ||
destination: '/docs/sharing/publish-storybook', | ||
permanent: true, | ||
}, | ||
{ | ||
source: '/docs/workflows/storybook-composition', | ||
destination: '/docs/sharing/storybook-composition', | ||
permanent: true, | ||
}, | ||
{ | ||
source: '/docs/workflows/package-composition', | ||
destination: '/docs/sharing/package-composition', | ||
permanent: true, | ||
}, | ||
{ | ||
source: '/docs/workflows/faq', | ||
destination: '/docs/faq', | ||
permanent: true, | ||
}, | ||
// Version 6.5 | ||
{ | ||
source: '/docs/configure/webpack', | ||
destination: '/docs/builders/webpack', | ||
permanent: true, | ||
}, | ||
{ source: '/docs/api/addons', destination: '/docs/addons', permanent: true }, | ||
{ | ||
source: '/docs/api/addons-api', | ||
destination: '/docs/addons/addons-api', | ||
permanent: true, | ||
}, | ||
{ | ||
source: '/docs/api/presets', | ||
destination: '/docs/addons/writing-presets', | ||
permanent: true, | ||
}, | ||
{ | ||
source: '/docs/addons/addon-catalog', | ||
destination: '/docs/addons/integration-catalog', | ||
permanent: true, | ||
}, | ||
{ | ||
source: '/docs/api/mdx', | ||
destination: '/docs/writing-docs/mdx', | ||
permanent: true, | ||
}, | ||
{ | ||
source: '/docs/why-storybook', | ||
destination: '/docs/get-started/why-storybook', | ||
permanent: true, | ||
}, | ||
{ | ||
source: '/docs/get-started/introduction', | ||
destination: '/docs/get-started/install', | ||
permanent: true, | ||
}, | ||
]; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,119 @@ | ||
import { RedirectData } from './types'; | ||
|
||
export const docsVersion7Redirects: RedirectData[] = [ | ||
{ | ||
source: '/docs/7/get-started', | ||
destination: '/docs/7', | ||
permanent: true, | ||
}, | ||
// Version 7.0 | ||
{ | ||
source: '/docs/writing-docs/docs-page', | ||
destination: '/docs/writing-docs/autodocs', | ||
permanent: true, | ||
}, | ||
{ | ||
source: '/docs/writing-docs/doc-block-argstable', | ||
destination: '/docs/api/doc-blocks/doc-block-controls', | ||
permanent: true, | ||
}, | ||
{ | ||
source: '/docs/writing-docs/doc-block-canvas', | ||
destination: '/docs/api/doc-blocks/doc-block-canvas', | ||
permanent: true, | ||
}, | ||
{ | ||
source: '/docs/writing-docs/doc-block-colorpalette', | ||
destination: '/docs/api/doc-blocks/doc-block-colorpalette', | ||
permanent: true, | ||
}, | ||
{ | ||
source: '/docs/writing-docs/doc-block-description', | ||
destination: '/docs/api/doc-blocks/doc-block-description', | ||
permanent: true, | ||
}, | ||
{ | ||
source: '/docs/writing-docs/doc-block-icongallery', | ||
destination: '/docs/api/doc-blocks/doc-block-icongallery', | ||
permanent: true, | ||
}, | ||
{ | ||
source: '/docs/writing-docs/doc-block-source', | ||
destination: '/docs/api/doc-blocks/doc-block-source', | ||
permanent: true, | ||
}, | ||
{ | ||
source: '/docs/writing-docs/doc-block-story', | ||
destination: '/docs/api/doc-blocks/doc-block-story', | ||
permanent: true, | ||
}, | ||
{ | ||
source: '/docs/writing-docs/doc-block-typeset', | ||
destination: '/docs/api/doc-blocks/doc-block-typeset', | ||
permanent: true, | ||
}, | ||
{ | ||
source: '/docs/api/frameworks-feature-support', | ||
destination: '/docs/configure/integration/frameworks-feature-support', | ||
permanent: true, | ||
}, | ||
{ | ||
source: '/docs/api/argtypes', | ||
destination: '/docs/api/arg-types', | ||
permanent: true, | ||
}, | ||
|
||
//Version7.1 | ||
{ | ||
source: '/docs/writing-tests/importing-stories-in-tests', | ||
destination: '/docs/writing-tests/stories-in-unit-tests', | ||
permanent: true, | ||
}, | ||
|
||
//Version7.6 | ||
{ | ||
source: '/docs/writing-stories/introduction', | ||
destination: '/docs/writing-stories', | ||
permanent: true, | ||
}, | ||
{ | ||
source: '/docs/writing-docs/introduction', | ||
destination: '/docs/writing-docs', | ||
permanent: true, | ||
}, | ||
{ | ||
source: '/docs/writing-tests/introduction', | ||
destination: '/docs/writing-tests', | ||
permanent: true, | ||
}, | ||
{ | ||
source: '/docs/essentials/introduction', | ||
destination: '/docs/essentials', | ||
permanent: true, | ||
}, | ||
{ | ||
source: '/docs/addons/introduction', | ||
destination: '/docs/addons', | ||
permanent: true, | ||
}, | ||
{ | ||
source: '/docs/configure/overview', | ||
destination: '/docs/configure', | ||
permanent: true, | ||
}, | ||
{ | ||
source: '/docs/builders/overview', | ||
destination: '/docs/builders', | ||
permanent: true, | ||
}, | ||
{ | ||
source: '/docs/contribute/how-to-contribute', | ||
destination: '/docs/contribute', | ||
permanent: true, | ||
}, | ||
{ | ||
source: '/docs/configure/babel', | ||
destination: '/docs/configure/integration/compilers', | ||
permanent: true, | ||
}, | ||
]; |
Oops, something went wrong.