gatsby-theme-apollo
gatsby-theme-apollo copied to clipboard
Changing the sidebar on a per page basis (per set of pages)
Hi I'm evaluating the use of gatsby-theme-apollo-docs for our site (about 4000 pages). I want to do something similar to what is done in https://www.apollographql.com/docs/.
- A top-level menu via which I can get to a particular section of the site (configured with the navConfig)
- A per section sidemen (configured by sidebarCategories)
From what I understand it seems that you achieved this by having each "section" - as a separate site. I assume that means a separate gatsby setup? so you can have different gatsby-config.js.
What I need is to have all my content in one place, and be able to say for each page (or set of pages) whish side menu should be used - for examples .md siblings in the file hierarchy all have the same sidebars showing the siblings - but each main branch of the file tree is a separate section.
- Is this doable with Apollo in its current form?
- If not - is it an easy change?
- If it is - this something I could contribute to the project or would I have to fork? Thanks
Also interested in this. @yonatanLehman did you manage to get it to work?
I'm interested in this too... with only 2 levels of hierarchy in the sidebar it would be great to have separate sidebars in the subsections. OR allow for 3 levels in the main sidebar. I'm not a developer so sadly I cannot contribute to this solution.