Skip to content

Commit

Permalink
Drop versioned documentation
Browse files Browse the repository at this point in the history
Because we barely have resources to maintain the code we cannot hope to
maintain versioned docs forever. If we really must have versioned doc,
then it has to live in git separately side-by-side with their code, and
not have all versions of doc in a single commit.
  • Loading branch information
PowerKiKi committed Apr 30, 2024
1 parent 34b5b6a commit b62ef07
Show file tree
Hide file tree
Showing 79 changed files with 5 additions and 12,495 deletions.
54 changes: 3 additions & 51 deletions website/next.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,57 +4,10 @@ export default withGuildDocs({
output: 'export',
redirects: () =>
Object.entries({
'/docs/2.0/caching': '/v2/caching/configuration',
'/docs/2.0/data': '/v2/data/queries',
'/docs/2.0/local-state': '/v2/local-state/management',
'/docs/2.0/development-and-testing': '/v2/development-and-testing/using-typescript',
'/docs/2.0/performance': '/v2/performance/improving-performance',
'/docs/2.0/recipes': '/v2/recipes/simple-example',
'/docs/2.0/migration': '/v2/migration',
'/docs/1.0/basics': '/v1/basics/setup',
'/docs/1.0/features': '/v1/features/error-handling',
'/docs/1.0/guides': '/v1/guides/state-management',
'/docs/1.0/recipes': '/v1/recipes/simple-example',

'/docs/1.0/basics/:slug*': '/v1/basics/:slug',
'/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',
'/docs/2.0/local-state/:slug*': '/v2/local-state/:slug',
'/docs/2.0/development-and-testing/:slug*': '/v2/development-and-testing/:slug',
'/docs/2.0/performance/:slug*': '/v2/performance/:slug',
'/docs/2.0/recipes/:slug*': '/v2/recipes/:slug',
'/docs/2.0/migration/:slug*': '/v2/migration',
'/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',
'/docs/features/subscriptions.html': '/docs/data/subscriptions',

'/v1/guides': '/v1/guides/state-management',
'/v1/features': '/v1/features/error-handling',
'/v1/basics': '/v1/guides/state-management',
'/v1/recipes': '/v1/recipes/simple-example',
'/v2/caching': '/v2/caching/configuration',
'/v2/data': '/v2/data/queries',
'/v2/local-state': '/v2/local-state/management',
'/v2/development-and-testing': '/v2/development-and-testing/using-typescript',
'/v2/performance': '/v2/performance/improving-performance',
'/v2/recipes': '/v2/recipes/simple-example',
'/docs/2.0': '/v2', // Redirect direct to path
'/docs/1.0': '/v1', // Redirect direct to path
'/docs/basics/:slug*': '/docs/data/:slug',
'/docs/1.0/features/cache-updates': '/v1/features/caching',

'/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',
Expand Down Expand Up @@ -82,7 +35,7 @@ export default withGuildDocs({
'/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',
Expand All @@ -92,13 +45,12 @@ export default withGuildDocs({
'/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',
'/get-started': '/docs/get-started',
'/docs/data/setup#using-dependency-injection': '/docs/data/queries',
'/docs/data/setup.html#using-dependency-injection': '/docs/data/queries',
'/docs/data/setup': '/docs/data/queries',
'/v1/performance/improving-performance': '/docs/performance/improving-performance',
}).map(([from, to]) => ({
source: from,
destination: to,
Expand Down
10 changes: 1 addition & 9 deletions website/src/pages/_meta.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,15 +8,7 @@ export default {
},
},
docs: {
title: 'v3 (latest)',
type: 'page',
},
v2: {
title: 'v2',
type: 'page',
},
v1: {
title: 'v1',
title: 'Docs',
type: 'page',
},
};
2 changes: 1 addition & 1 deletion website/src/pages/docs/index.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ Here are some in particular:
- **Angular Router**: Apollo Client is completely router-independent, which means you can use it
with any version of [Angular Router](https://github.com/angular/angular) or any other routing
library for Angular. It's even easy to set up
[server-side rendering](./v1/performance/improving-performance).
[server-side rendering](./performance/improving-performance).
- **Ionic**: Apollo works great with [Ionic Framework](http://ionicframework.com) apps written in
Angular

Expand Down
8 changes: 0 additions & 8 deletions website/src/pages/v1/_meta.ts

This file was deleted.

9 changes: 0 additions & 9 deletions website/src/pages/v1/basics/_meta.ts

This file was deleted.

Loading

0 comments on commit b62ef07

Please sign in to comment.