-
Notifications
You must be signed in to change notification settings - Fork 115
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add a way to display multiple APIs together #91
Comments
This seems like it would be difficult (or impossible to do). As the API docs are rendered as a single React component. We don't have the content of the sidebar to integrate with the Docusaurus sidebar. You could create your own React component that wraps the |
If you want to version your API then just have multiple YAML files, each for each version of your API |
I have no idea how React component are rendered by docusaurus. |
I don't think that would look good, but I'll keep the issue open if anyone wants to give this a try or to see if there is demand for this. |
How would you display 10 microservices API, if you don't have a sidebar ? If there is another way, I'm open to that. :) |
Sidebar is a good idea, but not a nested sidebar because redoc would have it's own sidebar. Maybe a dropdown would look better, below the header? |
Either a dropdown or a line bar with all microservice API next to each other |
Have there been any progress on this? Looking to document 8 different microservices each with their own endpoint. |
How about just adding a dropdown to the navbar (navbar-dropdowns) and grouping all the docs there? See example I just added : redocusaurus/website/docusaurus.config.js Lines 81 to 106 in 62e30bb
|
Really nice example I like that. The way I had it working right now was:
But I like your example solution more. Will do that instead |
I've created a new React component that I use to display the documentation with double sidebars : |
That is genius!! 🎉
You can modify the breakpoints in the theme to keep the view always single pane? That sounds like a good compromise |
Thanks !
Which property are you talking about ? I'm going to make two more PR : the component that I use to make it possible, as it can be stored on your theme package https://github.com/RegardsOss/RegardsOss.github.io/blob/master/src/redoc/RegardsApiDoc.jsx And add https://github.com/RegardsOss/RegardsOss.github.io as user of your lib |
https://github.com/Redocly/redoc#redoc-theme-object ->
We can force the 2 pane view with this I think (moves examples/code-samples below schema).
Would be great! |
It works great ! Thanks |
This is now possible to do with a new And example here: https://redocusaurus.vercel.app/docs/nested/nested-1 |
This was done thanks to the ideas from the community! Pretty cool to see all the different usages in the wild. Thanks to @serut for the initial request and work. And this MDX example with existing components by @TheCatLady here: https://github.com/someengineering/resoto.com/blob/7494b135d87533e54372e2f632f570dab3d06d6d/docs/reference/api.md |
Hello,
I would like to know if there is a way to display the docusaurus left sidebar.
Currently, using your plugin, I have a full page displaying the swagger doc :
But since I have a lot of microservices, I would like my user be able to access the left sidebar to choose the microservice he wants to view the API.
Overall, I'm looking an integration of redoc with the versionning and the page system of docusaurus.
I've seen that if I create an empty page that has the same URL than what I specified in the
docusaurus.config.js
file, redocusaurus has an higher priority than the empty page. So if I'm not wrong, I can simulate the versionning of the API using an empty page.In the screenshot above, the link Processing > API > Overview is the empty page that has the same URL than what is in my conf. It works great so far.
Any help would be appreciated.
The text was updated successfully, but these errors were encountered: