You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
To display multiple API docs with the Docusaurus sidebar for navigation you can use the MDX component `@theme/ApiDocMdx` along with the setting `hide_table_of_contents` for the file. For an example check the "Nested Docs Example" section in the sidebar.
9
+
10
+
```mdx
11
+
---
12
+
title: API 1 - Swagger Petstore
13
+
hide_table_of_contents: true
14
+
---
15
+
16
+
importApiDocMdxfrom'@theme/ApiDocMdx';
17
+
18
+
<ApiDocMdxid="using-single-yaml" />
19
+
```
20
+
21
+
The output of the above is viewable here: [Nested API 1](/docs/nested/nested-1).
22
+
23
+
## Full Pages with links in Dropdown
24
+
25
+
For a simpler solution just add all the routes in a Navbar Dropdown (see [docs](https://docusaurus.io/docs/api/themes/configuration#navbar-dropdown)). This is how the "Examples" of this website is structured.
0 commit comments