Replies: 2 comments 7 replies
-
We have ability to configure the docs/page plugin paths, so you may be able to get that structure using 1 docs plugin + 2 pages plugin. Normally we should support using the same plugin multiple times (we plan to support that for docs soon). The sidebar is a docs-only feature. We don't currently any sidebar of any kind on pages, where you start from a totally blank screen. Currently, the way the sidebar is implemented in theme is tightly coupled to the docs plugin, so it won't be hard to reuse as it. But I think it's something we should work on. It would be nice if the classic theme had some kind of decoupled component library (containing a reusable sidebar comp) that you would be able to use on your own custom pages. Afaik it's not possible now (and is probably not a small refactor), but you can use the Opened an issue here: #3065 It's hard to say if Docusaurus is suitable for your need. The best is probably to make a POC and see what doesn't work. |
Beta Was this translation helpful? Give feedback.
-
@slorber is it already possible to use the docs-content plugin multiple times or is this still being worked on? |
Beta Was this translation helpful? Give feedback.
-
Say we want to have a site like this:
It should be powered by Docusaurus overall but only the "Guides" section should be written manually in Markdown / MDX files, the two other "reference" sections should be generated automatically from our source codes (for example, by React Styleguidist for the "Components reference" section and by apiDoc for the "API reference" section; these are just examples and we're prepared to write custom code to e.g. generate custom MDX if Docusaurus requires that).
The ideal end state for us is:
Component1.jsx
andComponents2.jsx
dynamically, based on the external data. (Somewhat worryingly, I don't see the word "async" in https://v2.docusaurus.io/docs/docs-introduction/#sidebar.)Component1.jsx
can reference the "Getting started" guide somehow (we're fine doing some post/pre-processing).Can Docusaurus v2 support that?
Beta Was this translation helpful? Give feedback.
All reactions