Skip to content

Commit

Permalink
fix(website): Revert docusaurus changes, fixes
Browse files Browse the repository at this point in the history
- Fix links in loading doc
- Load the MDN links plugin
  • Loading branch information
fb55 committed Aug 6, 2024
1 parent 98e41ae commit e48f022
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 7 deletions.
11 changes: 6 additions & 5 deletions website/docs/basics/loading.md
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,8 @@ $.html();

:::

Learn more about the `load` method in the [API documentation](/docs/api/#load).
Learn more about the `load` method in the
[API documentation](/docs/api/functions/load).

## `loadBuffer`

Expand All @@ -83,7 +84,7 @@ console.log($('title').text());
```

Learn more about the `loadBuffer` method in the
[API documentation](/docs/api/#loadbuffer).
[API documentation](/docs/api/functions/loadBuffer).

## `stringStream`

Expand All @@ -107,7 +108,7 @@ fs.createReadStream('document.html', { encoding: 'utf8' }).pipe(writeStream);
```

Learn more about the `stringStream` method in the
[API documentation](/docs/api/#stringstream).
[API documentation](/docs/api/functions/stringStream).

## `decodeStream`

Expand Down Expand Up @@ -135,7 +136,7 @@ fs.createReadStream('document.html').pipe(writeStream);
```

Learn more about the `decodeStream` method in the
[API documentation](/docs/api/#decodestream).
[API documentation](/docs/api/functions/decodeStream).

## `fromURL`

Expand All @@ -150,7 +151,7 @@ const $ = await cheerio.fromURL('https://example.com');
```

Learn more about the `fromURL` method in the
[API documentation](/docs/api/#fromurl).
[API documentation](/docs/api/functions/fromURL).

## Conclusion

Expand Down
4 changes: 2 additions & 2 deletions website/docusaurus.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -244,15 +244,15 @@ const config = {
},
},

plugin: ['typedoc-plugin-mdn-links'],

// Plugin options
sidebar: {
// Always display the API entry last
position: Number.MAX_SAFE_INTEGER,
pretty: true,
},
outputFileStrategy: 'members',
membersWithOwnFile: ['Class', 'Enum', 'Interface'],
propertyMembersFormat: 'htmlTable',
},
],
],
Expand Down

0 comments on commit e48f022

Please sign in to comment.