Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

docs(redirects): move to server-side redirects with vercel config #3644

Merged
merged 2 commits into from
Feb 15, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
2 changes: 1 addition & 1 deletion docs/docs/getting-started/open.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ flowchart TD

### Configure the Pokeshop API Demo resource

Configure the `demo` [resource](/configuration/provisioning) to quickly create tests either in the Web UI or with the CLI.
Configure the `demo` [resource](/core/configuration/provisioning) to quickly create tests either in the Web UI or with the CLI.

In the Web UI go to **Settings > Demo**, toggle **Enable Pokeshop**, and add:

Expand Down
1 change: 0 additions & 1 deletion docs/docs/openapi.md

This file was deleted.

172 changes: 1 addition & 171 deletions docs/docusaurus.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ const config = {
onBrokenLinks: 'throw',
onBrokenMarkdownLinks: 'warn',
favicon: 'img/logo.svg',
trailingSlash: false,

// GitHub pages deployment config.
// If you aren't using GitHub pages, you don't need these.
Expand Down Expand Up @@ -97,177 +98,6 @@ const config = {
id: 'GTM-MZ7RNS7', // GTM Container ID
},
],
[
'@docusaurus/plugin-client-redirects',
{
// fromExtensions: ['html', 'htm'], // /myPage.html -> /myPage
// toExtensions: ['exe', 'zip'], // /myAsset -> /myAsset.zip (if latter exists)
redirects: [
// /docs/oldDoc -> /docs/newDoc
// {
// to: '/using-tracetest/adding-assertions',
// from: '/adding-assertions',
// },
// Redirect from multiple old paths to the new path
// {
// to: '/cli/test-definition-file', // replace with '/cli/creating-tests' after new docs structure release
// from: ['/test-definition-file' /*, '/docs/legacyDocFrom2016'*/],
// },
{
to: '/',
from: ['/introduction' /*, '/docs/legacyDocFrom2016'*/],
},
{
to: '/concepts/selectors',
from: ['/advanced-selectors' /*, '/docs/legacyDocFrom2016'*/],
},
{
to: '/core/deployment/docker',
from: ['/deployment/overview/docker', '/deployment/docker' /*, '/docs/legacyDocFrom2016'*/],
},
{
to: '/core/deployment/kubernetes',
from: ['/deployment/overview/kubernetes', '/deployment/kubernetes' /*, '/docs/legacyDocFrom2016'*/],
},
{
to: '/getting-started/installation',
from: ['/getting-started/cli', '/getting-started/detailed-installation', '/installing' /*, '/docs/legacyDocFrom2016'*/],
},
{
to: '/getting-started/open',
from: ['/accessing-dashboard' /*, '/docs/legacyDocFrom2016'*/],
},
{
to: '/configuration/overview',
from: ['/getting-started/supported-backends' /*, '/docs/legacyDocFrom2016'*/],
},
{
to: '/web-ui/creating-tests',
from: ['/using-tracetest/create-test' /*, '/docs/legacyDocFrom2016'*/],
},
{
to: '/web-ui/test-results',
from: ['/using-tracetest/test-results' /*, '/docs/legacyDocFrom2016'*/],
},
{
to: '/web-ui/creating-test-specifications',
from: ['/using-tracetest/adding-assertions' /*, '/docs/legacyDocFrom2016'*/],
},
{
to: '/concepts/versioning',
from: ['/using-tracetest/versioning' /*, '/docs/legacyDocFrom2016'*/],
},
{
to: '/cli/creating-tests',
from: ['/cli/test-definition-file', '/test-definition-file' /*, '/docs/legacyDocFrom2016'*/],
},
{
to: '/cli/configuring-your-cli/',
from: ['/cli/command-line-tool' /*, '/docs/legacyDocFrom2016'*/],
},
{
to: '/ci-cd-automation/github-actions-pipeline',
from: ['/ci-cd-automation/ci-cd-best-practices' /*, '/docs/legacyDocFrom2016'*/],
},
{
to: '/tools-and-integrations/k6',
from: ['/tools-and-integrations/integrations/k6' /*, '/docs/legacyDocFrom2016'*/],
},
{
to: '/tools-and-integrations/keptn',
from: ['/tools-and-integrations/integrations/keptn' /*, '/docs/legacyDocFrom2016'*/],
},
{
to: '/tools-and-integrations/testkube',
from: ['/tools-and-integrations/integrations/testkube' /*, '/docs/legacyDocFrom2016'*/],
},
{
to: '/ci-cd-automation/testkube-pipeline',
from: ['/examples-tutorials/recipes/running-tracetest-with-testkube' /*, '/docs/legacyDocFrom2016'*/],
},
{
to: '/ci-cd-automation/tekton-pipeline',
from: ['/examples-tutorials/recipes/running-tracetest-with-tekton' /*, '/docs/legacyDocFrom2016'*/],
},
{
to: '/analyzer/concepts',
from: ['/concepts/tracetest-analyzer-concepts'],
},
{
to: '/cli/cli-installation-reference',
from: ['/getting-started/cli-installation-reference'],
},
{
to: '/cli/creating-test-suites',
from: ['/cli/creating-transactions'],
},
{
to: '/concepts/test-suites',
from: ['/concepts/transactions'],
},
{
to: '/web-ui/creating-test-suites',
from: ['/web-ui/creating-transactions'],
},
{
to: '/web-ui/creating-tests',
from: ['/create-test'],
},
{
to: '/web-ui/creating-test-specifications',
from: ['/adding-assertions'],
},
{
to: '/web-ui/test-results',
from: ['/test-results'],
},
// SaaS to Core
{
to: '/core/configuration/server',
from: ['/configuration/server'],
},
{
to: '/core/configuration/provisioning',
from: ['/configuration/provisioning'],
},
{
to: '/core/configuration/analytics',
from: ['/configuration/analytics'],
},
{
to: '/core/configuration/telemetry',
from: ['/configuration/telemetry'],
},
{
to: '/core/configuration/upgrade',
from: ['/configuration/upgrade'],
},
// Live Examples
{
to: '/live-examples/pokeshop/use-cases/add-pokemon',
from: ['/pokeshop/add-pokemon/'],
},
{
to: '/live-examples/pokeshop/use-cases/import-pokemon',
from: ['/pokeshop/import-pokemon/'],
},
{
to: '/live-examples/pokeshop/overview',
from: ['/pokeshop'],
},
],
// createRedirects(existingPath) {
// if (existingPath.includes('/community')) {
// // Redirect from /docs/team/X to /community/X and /docs/support/X to /community/X
// return [
// existingPath.replace('/community', '/docs/team'),
// existingPath.replace('/community', '/docs/support'),
// ];
// }
// return undefined; // Return a falsy value: no redirect created
// },
},
],
],
themeConfig:
/** @type {import('@docusaurus/preset-classic').ThemeConfig} */
Expand Down