Replies: 1 comment
-
You can have one docs plugin instance and still have separate sidebars: https://docusaurus.io/docs/sidebar/multiple-sidebars
We do display the navigation bar first:
If you first see a sidebar, this is because you are on a docs, so in that case we display first that specific doc sidebar
Remember that you can swizzle and override any theme component you want. It's hard to parse your wall of text, and would be better to show mockups or screenshots of the problem and the expected UX. It would be even better of you implemented the UX you want by swizzling to show us exactly how it should behave. An example is worth a thousand words. |
Beta Was this translation helpful? Give feedback.


Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
i am using docs only mode with multi-docs-plugin
(@docusaurus/plugin-content-docs)that's why have removed blog directory and default homepage
i have two docs. example :
the only reason to use multi-docs-plugin is : i want both docs should have it's on separate sidebar.
so when i click on "linux_docs" on the navigation bar only the content of it should be visible not other. same goes with devops_docs
it's working perfectly on the desktop browser BUT
but on the mobile browser navigation bar is not easily visible in the front. it's hidden two street back.
you click on ☰ (hamburger menu) then click on (<-- back to main menu) then you can access the navigation bar. also putting navigation links on the footer is not good idea.
i have two docs at this link
mywebsite.com/linux_docswith routeBasePath: '/' this link will becomewebsite.com/mywebsite.com/devops_docsso if i will send someone link of
mywebsite.com/on mobile browser. it would be difficult to discover the navigation bar where other docs links are presentthe solution i can think of is to just use single-docs-plugin and both docs would be visible on the same sidebar as regular docs and remove the need to navigation bar but it doesn't feel quite right way
is it possible to show navigation bar first on the sidebar and when i click on one docs then sidebar of that docs would be visible. this way navigation bar will come in visibility first
i don't necessarily need multi-docs-plugin i just need two different docs with their own separate sidebar and navigation bar should be visible in front at first on mobile
what would be the best way to configure this. i would really appreciate your willingness to help or any inside possible..
how i configured multi-docs plugin
i replaced
docs/directory withprojects/directoryprojects -----------------------docusaurus.config.js ---------------------------------sidebar.js ---------------------------------------Beta Was this translation helpful? Give feedback.
All reactions