Replies: 1 comment
-
|
Custom pages can't really access docs data unfortunately because plugins are decoupled/sandboxed. We'll likely solve this problem in the future thanks to React Server Components (#8758) However docs can display a list of categories. However there's a limitation to solve for docs at the top-level of a sidebar, with a workaround provided here: #9923 (reply in thread) |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I want to display the top-level category list of docs on a custom page. The information to be displayed includes the category name (with multi-language support) and the number of documents in each category.
I've tried using usePluginData and useAllDocsData, but these don't provide a complete solution, especially in terms of multi-language support and accurate category names.
For reference, I'm looking to achieve an effect similar to what can be seen on the OpenAI Help Center: https://help.openai.com/en/
Please help me find a way to achieve this in Docusaurus.
Beta Was this translation helpful? Give feedback.
All reactions