Skip to content

Commit

Permalink
docs: add redirects for all broken routes
Browse files Browse the repository at this point in the history
The changes in #1612 break a significant amount of pre-existing URLs, this
commit adds redirects for everything I could see that would be broken.
  • Loading branch information
skipjack committed Oct 11, 2017
1 parent 829fdd1 commit 1da9e29
Showing 1 changed file with 25 additions and 1 deletion.
26 changes: 25 additions & 1 deletion antwar.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,11 @@ module.exports = {
title: 'Home',
layout: () => require('./src/components/Page/Page.jsx').default,
content: () => require.context('./loaders/page-loader!./src/content', false, /^\.\/.*\.md$/),
index: () => require('./src/components/Splash/Splash.jsx').default
index: () => require('./src/components/Splash/Splash.jsx').default,
redirects: {
'support': '/contribute',
'writers-guide': '/contribute/writers-guide'
}
},
concepts: {
title: 'Concepts',
Expand Down Expand Up @@ -104,6 +108,26 @@ module.exports = {
'compiler': '/api/compiler',
'template': '/api/template'
}
},
'api/plugins': {
redirects: {
'compiler': '/api/compiler',
'compilation': '/api/compilation',
'module-factories': '/api/module-factories',
'parser': '/api/parser',
'tapable': '/api/tapable',
'template': '/api/template',
'resolver': '/api/resolver'
}
},
development: {
redirects: {
'': '/contribute',
'plugin-patterns': '/contribute/plugin-patterns',
'release-process': '/contribute/release-process',
'how-to-write-a-loader': '/contribute/writing-a-loader',
'how-to-write-a-plugin': '/contribute/writing-a-plugin'
}
}
}
};

0 comments on commit 1da9e29

Please sign in to comment.