Adding Docusaurus Sidebar to custom pages. #4850
Unanswered
KulkiratSingh
asked this question in
Q&A
Replies: 1 comment
-
This is not supported by design (modular), regular pages know nothing about the docs plugin and can't display a sidebar. A doc must be referenced in the a sidebar to have the sidebar displayed. Eventually we'll add the ability to force rendering of a sitebar without adding the doc to a sidebar: #4728 (comment) In any case, you will need to create a doc (not a page). For displaying a sidebar on pages, you would have to implement this yourself using React, and hardcode the sidebar data (because pages don't have access to docs sidebars data by design) |
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
-
Hi,
I have a requirement that requires using a sidebar on a custom page. Is it possible to add the docusaurus's DocSidebar to a custom-built page?
Thank You.
Beta Was this translation helpful? Give feedback.
All reactions