Closed fb55 closed 2 months ago
@fb55 Thanks for this.
As of v1 a manual sidebar is generated that should be consumed into the project. This sidebar would then match your documentation structure rather than file structure.
So in your usecase the sidebar would be structured by categories like this:
This does require a bit of config unfortunately which I have added to the docs https://www.typedoc-plugin-markdown.org/plugins/docusaurus/sidebar#injecting-into-autogenerated-sidebar.
Additionally please update to docusaurus-plugin-typedoc@1.0.5
as I discovered a bug while reviewing this.
I hope this is an acceptable solution but I'd be more than happy to take ideas for improvement.
What package is the bug related to?
docusaurus-plugin-typedoc
Describe the issue
Angle brackets for generics are rendered with a leading backslash in the sidebar of my Docusaurus site. For example, I receive
Cheerio\<T\>
instead ofCheerio<T>
in Cheerio's docs:TypeDoc configuration
All relevant versions:
The specific plugin configuration can be found at https://github.com/cheeriojs/cheerio/blob/ca00ea5cad068f535196d7bd53ef09017275fde4/website/docusaurus.config.js#L219-L256
Expected behavior
The sidebar does not include unnecessary escape characters.
And finally — thanks for the great library!