gatsby-theme-apollo icon indicating copy to clipboard operation
gatsby-theme-apollo copied to clipboard

Changing the sidebar on a per page basis (per set of pages)

Open yonatanLehman opened this issue 4 years ago • 2 comments

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/.

  1. A top-level menu via which I can get to a particular section of the site (configured with the navConfig)
  2. 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.

  1. Is this doable with Apollo in its current form?
  2. If not - is it an easy change?
  3. If it is - this something I could contribute to the project or would I have to fork? Thanks

yonatanLehman avatar Jan 21 '21 17:01 yonatanLehman

Also interested in this. @yonatanLehman did you manage to get it to work?

thefedoration avatar Mar 30 '21 18:03 thefedoration

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.

InfoExpDesign avatar Apr 14 '21 21:04 InfoExpDesign