-
Notifications
You must be signed in to change notification settings - Fork 2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix sidebar instability #4329
base: 16.x.x
Are you sure you want to change the base?
fix sidebar instability #4329
Conversation
when navigating to https://www.graphql-js.org/api-v16/graphql/ using the top menu bar, the sidebar content expands with the individual mdx files from the api-v16 folder, as if the api/v16 option had been in the sidebar in the first place. This PR adds the API/v16 to the sidebar (in addition to the placement within the menu bar) to avoid this instability.
Hi @yaacovCR, I'm @github-actions bot happy to help you with this PR 👋 Supported commandsPlease post this commands in separate comments and only one per comment:
|
type: 'separator', | ||
title: 'FAQ', | ||
}, | ||
'going-to-production': '', | ||
'api-v16': { | ||
'api-menu': { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The goal was to not so this, need to reach out to Dima on how to reset this context.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is the final goal to have the subheadings within the API show up somewhere?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Only when you surf to the api docs else that would not scale to i.e. also having v17
when navigating to https://www.graphql-js.org/api-v16/graphql/ using the top menu bar, the sidebar content expands with the individual mdx files from the api-v16 folder, as if the api/v16 option had been in the sidebar in the first place.
This PR adds the API/v16 to the sidebar (in addition to the placement within the menu bar) to avoid this instability.