Toggling the sidebar in the docs page. #1208
-
Hyas Doks is performing well, yet it would be fantastic if we could toggle the sidebar on docs pages, like the one found here: https://doks.netlify.app/docs/guides/example-guide/. Is there a method to achieve this? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 3 replies
-
That's not an easy one (I guess you mean something like this: https://nextra.site/docs) — probably a solution using Bootstrap's Collapse plugin You would have to copy BTW If you'd like to have more space, you could also set in # Doks (@hyas/doks-core)
[doks]
# Navbar
containerBreakpoint = "fluid" # "", "sm", "md", "lg" (default), "xl", "xxl", or "fluid" |
Beta Was this translation helpful? Give feedback.
That's not an easy one (I guess you mean something like this: https://nextra.site/docs) — probably a solution using Bootstrap's Collapse plugin
You would have to copy
node_modules/@hyas/doks-core/layouts/_default/single.html
and paste aslayouts/_default/single.html
(and make changes there)BTW If you'd like to have more space, you could also set in
params.toml
: