Skip to content

Commit

Permalink
Website: Clean up paths (#1831)
Browse files Browse the repository at this point in the history
  • Loading branch information
TuvalSimha authored Oct 19, 2022
1 parent b3f0717 commit 87b0ff3
Showing 1 changed file with 50 additions and 0 deletions.
50 changes: 50 additions & 0 deletions website/next.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,10 @@ export default withGuildDocs({
'/docs/1.0/features/:slug*': '/v1/features/:slug',
'/docs/1.0/guides/:slug*': '/v1/guides/:slug',
'/docs/1.0/recipes/:slug*': '/v1/recipes/:slug',
'/1.0/basics/:slug*': '/v1/basics/:slug',
'/1.0/features/:slug*': '/v1/features/:slug',
'/1.0/guides/:slug*': '/v1/guides/:slug',
'/1.0/recipes/:slug*': '/v1/recipes/:slug',

'/docs/2.0/caching/:slug*': '/v2/caching/:slug',
'/docs/2.0/data/:slug*': '/v2/data/:slug',
Expand All @@ -27,6 +31,13 @@ export default withGuildDocs({
'/docs/2.0/performance/:slug*': '/v2/performance/:slug',
'/docs/2.0/recipes/:slug*': '/v2/recipes/:slug',
'/docs/2.0/migration/:slug*': '/v2/migration/:slug',
'/2.0/caching/:slug*': '/v2/caching/:slug',
'/2.0/data/:slug*': '/v2/data/:slug',
'/2.0/local-state/:slug*': '/v2/local-state/:slug',
'/2.0/development-and-testing/:slug*': '/v2/development-and-testing/:slug',
'/2.0/performance/:slug*': '/v2/performance/:slug',
'/2.0/recipes/:slug*': '/v2/recipes/:slug',
'/2.0/migration/:slug*': '/v2/migration/:slug',

'/v1/guides': '/v1/guides/state-management',
'/v1/features': '/v1/features/error-handling',
Expand All @@ -44,6 +55,45 @@ export default withGuildDocs({
'/docs/basics/:slug*': '/docs/data/:slug',
'/docs/1.0/features/cache-updates': '/v1/features/caching',
'/docs/data': '/docs/data/queries',
'/docs/features/developer-tooling': '/docs/development-and-testing/developer-tools',
'/docs/features/developer-tooling.html': '/docs/development-and-testing/developer-tools',
'/docs/features/multiple-clients.html': '/docs/recipes/multiple-clients',
'/docs/features/optimistic-ui.html': '/docs/performance/optimistic-ui',
'/docs/recipes/pagination.html': '/docs/data/pagination',
'/docs/recipes/prefetching.html': '/docs',
'/docs/recipes/prefetching': '/docs',
'/docs/recipes/server-side-rendering.html': '/docs/performance/server-side-rendering',
'/docs/features/static-typing.html': '/docs',
'/docs/features/caching.html': '/docs',
'/docs/features/cache-updates': '/docs',
'/docs/features/subscriptions': '/docs/data/subscriptions',
'/docs/features/cache-updates.html': '/docs',
'/docs/features/fragments.html': '/docs/data/fragments',
'/docs/guides/testing.html': '/docs/development-and-testing/testing',
'/docs/guides/testing': '/docs/development-and-testing/testing',
'/docs/recipes': '/docs/recipes/simple-example',
'/docs/data': '/docs/data/queries',
'/docs/caching': '/docs/caching/configuration',
'/docs/local-state': '/docs/local-state/management',
'/docs/development-and-testing': '/docs/development-and-testing/using-typescript',
'/docs/performance': '/docs/performance/improving-performance',
'/docs/features/error-handling': '/docs/data/error-handling',
'/docs/guides/tools-and-packages': '/docs/development-and-testing/developer-tools',
'/docs/basics/network-layer': '/docs/data/network',
'/docs/guides/state-management': '/docs/local-state/management',
'/docs/basics/caching': '/docs/caching/configuration',
'/2.0/data/error-handling': '/v2/data/error-handling',
'/docs/features/optimistic-ui': '/docs/performance/optimistic-ui',
'/docs/recipes/query-splitting': '/docs/data/queries',
'/docs/features/static-typing': '/docs',
'/docs/basics/mutations': '/docs/data/mutations',
'/docs/recipes/pagination': '/docs/data/pagination',
'/docs/basics/queries': '/docs/data/queries',
'/docs/recipes/meteor': '/docs',
'/docs/recipes/server-side-rendering': '/docs/performance/server-side-rendering',
'/docs/features/multiple-clients': '/docs/recipes/multiple-clients',
'/docs/1.0/features/subscriptions': '/v1/features/subscriptions',
'/docs/features/fragments': '/docs/data/fragments',
}).map(([from, to]) => ({
source: from,
destination: to,
Expand Down

0 comments on commit 87b0ff3

Please sign in to comment.