Skip to content

Commit

Permalink
add new redirects (#408)
Browse files Browse the repository at this point in the history
  • Loading branch information
jsladerman authored Feb 21, 2025
1 parent 409519c commit e2d9ae5
Show file tree
Hide file tree
Showing 4 changed files with 305 additions and 7 deletions.
261 changes: 261 additions & 0 deletions next.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -227,6 +227,267 @@ const nextConfig = {
'/getting-started/manage-git-repositories/your-plural-workspace',
permanent: true,
},
{
source: '/introduction',
destination: '/overview/introduction',
permanent: true,
},
{
source: '/deployments/architecture',
destination: '/overview/architecture',
permanent: true,
},
{
source: '/deployments/operator/api',
destination: '/overview/api-reference',
permanent: true,
},
{
source: '/deployments/cli-quickstart',
destination: '/getting-started/first-steps/cli-quickstart',
permanent: true,
},
{
source: '/deployments/existing-cluster',
destination: '/getting-started/first-steps/existing-cluster',
permanent: true,
},
{
source: '/getting-started/deployments',
destination: '/getting-started/first-steps/index',
permanent: true,
},
{
source: '/how-to/set-up/mgmt-cluster',
destination: '/getting-started/how-to-use/mgmt-cluster',
permanent: true,
},
{
source: '/how-to/set-up/rbac',
destination: '/getting-started/how-to-use/rbac',
permanent: true,
},
{
source: '/how-to/set-up/scm-connection',
destination: '/getting-started/how-to-use/scm-connection',
permanent: true,
},
{
source: '/how-to/set-up/workload-cluster',
destination: '/getting-started/how-to-use/workload-cluster',
permanent: true,
},
{
source: '/how-to/set-up/controllers',
destination: '/getting-started/how-to-use/controllers',
permanent: true,
},
{
source: '/how-to/deploy/pr-automation',
destination: '/getting-started/how-to-use/pr-automation',
permanent: true,
},
{
source: '/how-to/deploy/microservice',
destination: '/getting-started/how-to-use/microservice',
permanent: true,
},
{
source: '/how-to/deploy/pipelines',
destination: '/getting-started/how-to-use/pipelines',
permanent: true,
},
{
source: '/how-to/index',
destination: '/getting-started/how-to-use/index',
permanent: true,
},
{
source: '/deployments/sandboxing',
destination: '/getting-started/advanced-config/sandboxing',
permanent: true,
},
{
source: '/deployments/network-configuration',
destination: '/getting-started/advanced-config/network-configuration',
permanent: true,
},
{
source: '/deployments/private-ca',
destination: '/getting-started/advanced-config/private-ca',
permanent: true,
},
{
source: '/deployments/operator/architecture',
destination:
'/plural-features/continuous-deployment/deployment-operator',
permanent: true,
},
{
source: '/deployments/operator/git-service',
destination: '/plural-features/continuous-deployment/git-service',
permanent: true,
},
{
source: '/deployments/operator/helm-service',
destination: '/plural-features/continuous-deployment/helm-service',
permanent: true,
},
{
source: '/deployments/operator/global-service',
destination: '/plural-features/continuous-deployment/global-service',
permanent: true,
},
{
source: '/deployments/using-operator',
destination: '/plural-features/continuous-deployment/index',
permanent: true,
},
{
source: '/deployments/deprecations',
destination: '/plural-features/k8s-upgrade-assistant/index',
permanent: true,
},
{
source: '/stacks/customize-runners',
destination: '/plural-features/stacks-iac-management/customize-runners',
permanent: true,
},
{
source: '/stacks/pr-workflow',
destination: '/plural-features/stacks-iac-management/pr-workflow',
permanent: true,
},
{
source: '/stacks/manual-runs',
destination: '/plural-features/stacks-iac-management/manual-runs',
permanent: true,
},
{
source: '/stacks/local-execution',
destination: '/plural-features/stacks-iac-management/local-execution',
permanent: true,
},
{
source: '/stacks/custom-stacks',
destination: '/plural-features/stacks-iac-management/custom-stacks',
permanent: true,
},
{
source: '/stacks/auto-cancellation',
destination: '/plural-features/stacks-iac-management/auto-cancellation',
permanent: true,
},
{
source: '/deployments/terraform-interop',
destination: '/plural-features/stacks-iac-management/service-contexts',
permanent: true,
},
{
source: '/deployments/stacks',
destination: '/plural-features/stacks-iac-management/index',
permanent: true,
},
{
source: '/service-catalog/creation',
destination: '/plural-features/service-catalog/creation',
permanent: true,
},
{
source: '/service-catalog/contributing',
destination: '/plural-features/service-catalog/contribution-program',
permanent: true,
},
{
source: '/service-catalog/overview',
destination: '/plural-features/service-catalog/index',
permanent: true,
},
{
source: '/deployments/dashboard',
destination: '/plural-features/kubernetes-dashboard/index',
permanent: true,
},
{
source: '/ai/setup',
destination: '/plural-features/plural-ai/setup',
permanent: true,
},
{
source: '/ai/architecture',
destination: '/plural-features/plural-ai/architecture',
permanent: true,
},
{
source: '/ai/cost',
destination: '/plural-features/plural-ai/cost',
permanent: true,
},
{
source: '/ai/overview',
destination: '/plural-features/plural-ai/index',
permanent: true,
},
{
source: '/deployments/pr/crds',
destination: '/plural-features/pr-automation/crds',
permanent: true,
},
{
source: '/deployments/pr/testing',
destination: '/plural-features/pr-automation/testing',
permanent: true,
},
{
source: '/deployments/pr/pipelines',
destination: '/plural-features/pr-automation/pipelines',
permanent: true,
},
{
source: '/deployments/pr-automation',
destination: '/plural-features/pr-automation/index',
permanent: true,
},
{
source: '/deployments/templating-filters',
destination: '/plural-features/service-templating/templating-filters',
permanent: true,
},
{
source: '/deployments/templating',
destination: '/plural-features/service-templating/index',
permanent: true,
},
{
source: '/deployments/multi-tenancy',
destination: '/plural-features/projects-and-multi-tenancy/index',
permanent: true,
},
{
source: '/deployments/notifications',
destination: '/plural-features/notifications/index',
permanent: true,
},
{
source: '/faq/security',
destination: '/faq/security',
permanent: true,
},
{
source: '/faq/certifications',
destination: '/faq/certifications',
permanent: true,
},
{
source: '/faq/plural-paid-tiers',
destination: '/faq/paid-tiers',
permanent: true,
},
{
source: '/reference/release-notes',
destination: '/resources/release-notes',
permanent: true,
},
]
},
}
Expand Down
8 changes: 7 additions & 1 deletion src/routes/docs.generated.ts
Original file line number Diff line number Diff line change
Expand Up @@ -230,7 +230,7 @@ export const docRoutes: DocRouteMap = {

plural_features_plural_ai: {
path: '/03-plural-features/06-plural-ai',
title: 'Plural AI helper',
title: 'Plural AI',
id: 'plural_features_plural_ai',
},

Expand Down Expand Up @@ -329,6 +329,12 @@ export const docRoutes: DocRouteMap = {
title: 'Release Notes',
id: 'resources_release_notes',
},

deployments_operator_agent_api: {
path: '/deployments/operator/agent-api',
title: 'Agent API',
id: 'deployments_operator_agent_api',
},
} as const

// Type-safe route getter
Expand Down
19 changes: 18 additions & 1 deletion src/routing/navigation.ts
Original file line number Diff line number Diff line change
Expand Up @@ -213,7 +213,7 @@ export const docNavigation: NavMenu = [
"sortPath": "/03-plural-features/05-kubernetes-dashboard"
},
{
"title": "Plural AI helper",
"title": "Plural AI",
"href": "/plural-features/plural-ai",
"sections": [
{
Expand Down Expand Up @@ -313,5 +313,22 @@ export const docNavigation: NavMenu = [
"sortPath": "/05-resources/01-release-notes"
}
]
},
{
"title": "Deployments",
"href": "/deployments",
"sections": [
{
"title": "Operator",
"href": "/deployments/operator",
"sections": [
{
"title": "Agent API",
"href": "/deployments/operator/agent-api",
"sortPath": "/deployments/operator/agent-api"
}
]
}
]
}
]
24 changes: 19 additions & 5 deletions tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,11 @@
{
"compilerOptions": {
"target": "ES6",
"lib": ["dom", "dom.iterable", "ESNext"],
"lib": [
"dom",
"dom.iterable",
"ESNext"
],
"allowJs": true,
"skipLibCheck": true,
"esModuleInterop": true,
Expand All @@ -19,16 +23,26 @@
"incremental": true,
"baseUrl": ".",
"paths": {
"@src/*": ["src/*"],
"@pages/*": ["pages/*"]
"@src/*": [
"src/*"
],
"@pages/*": [
"pages/*"
]
},
"plugins": [{ "name": "next" }]
"plugins": [
{
"name": "next"
}
]
},
"include": [
"next-env.d.ts",
"pages/**/*",
"src/**/*",
"pages-archive/applications"
],
"exclude": ["node_modules"]
"exclude": [
"node_modules"
]
}

0 comments on commit e2d9ae5

Please sign in to comment.