Skip to content

Commit

Permalink
Update docusaurus.config.ts
Browse files Browse the repository at this point in the history
  • Loading branch information
alex-tiurin committed Jun 21, 2024
1 parent 2eae8d2 commit 0ec2481
Showing 1 changed file with 1 addition and 18 deletions.
19 changes: 1 addition & 18 deletions docs/docusaurus.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,6 @@ const config: Config = {
title: 'Ultron',
tagline: 'Compose Multiplatform and Android UI testing framework',
favicon: 'img/favicon.ico',

// Set the production url of your site here
url: 'https://ultron.github.io',
// Set the /<baseUrl>/ pathname under which your site is served
// For GitHub pages deployment, it is often '/<projectName>/'
Expand Down Expand Up @@ -129,26 +127,11 @@ const config: Config = {
fromExtensions: ['html', 'htm'], // /myPage.html -> /myPage
toExtensions: ['exe', 'zip'], // /myAsset -> /myAsset.zip (if latter exists)
redirects: [
// /docs/oldDoc -> /docs/newDoc
{
to: '/docs',
to: '/docs/',
from: '/',
},
// Redirect from multiple old paths to the new path
// {
// to: '/docs/newDoc2',
// from: ['/docs/oldDocFrom2019', '/docs/legacyDocFrom2016'],
// },
],
createRedirects(existingPath) {
if (existingPath.includes('/community')) {
// Redirect from /docs/team/X to /community/X and /docs/support/X to /community/X
return [
existingPath.replace('/', '/docs'),
];
}
return undefined; // Return a falsy value: no redirect created
},
},
],
],
Expand Down

0 comments on commit 0ec2481

Please sign in to comment.