Skip to content

Commit

Permalink
fix(website): Remove invalid redirects
Browse files Browse the repository at this point in the history
  • Loading branch information
fb55 committed Aug 6, 2024
1 parent d4eb8d3 commit 599967f
Showing 1 changed file with 10 additions and 20 deletions.
30 changes: 10 additions & 20 deletions website/docusaurus.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
// @ts-ignore
const { themes } = require('prism-react-renderer');

// eslint-disable-next-line n/no-unpublished-require
const packageJson = require('../package.json');

/** @type {import('@docusaurus/types').Config} */
Expand Down Expand Up @@ -168,30 +167,21 @@ const config = {
fromExtensions: ['html'],
redirects: [
// Classes
...['Cheerio', 'Document', 'Element', 'Node'].map((name) => ({
from: `/classes/${name}.html`,
to: `/docs/api/classes/${name}`,
})),
{
from: `/classes/Cheerio.html`,
to: `/docs/api/classes/Cheerio`,
},

// Interfaces
...[
'CheerioAPI',
'CheerioOptions',
'HTMLParser2Options',
'Parse5Options',
].map((name) => ({
from: `/interfaces/${name}.html`,
to: `/docs/api/interfaces/${name}`,
})),
...['CheerioAPI', 'CheerioOptions', 'HTMLParser2Options'].map(
(name) => ({
from: `/interfaces/${name}.html`,
to: `/docs/api/interfaces/${name}`,
}),
),

// Type aliases and functions

// `Parse5Options` is now an interface.
{
from: '/types/Parse5Options.html',
to: '/docs/api/interfaces/Parse5Options',
},

{
/*
* Type aliases and functions are all part of the `api` page. We
Expand Down

0 comments on commit 599967f

Please sign in to comment.