Skip to content
This repository has been archived by the owner on Apr 13, 2023. It is now read-only.

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

Open
yonatanLehman opened this issue Jan 21, 2021 · 2 comments
Open

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

yonatanLehman opened this issue Jan 21, 2021 · 2 comments

Comments

@yonatanLehman
Copy link

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
@thefedoration
Copy link

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

@InfoExpDesign
Copy link

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.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants