Skip to content

Commit

Permalink
fix sidebar instability
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
yaacovCR committed Jan 16, 2025
1 parent 0c164d3 commit 317ab6a
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion website/pages/_meta.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,11 +20,16 @@ const meta = {
'oneof-input-objects': 'OneOf input objects',
'defer-stream': '',
'-- 3': {
type: 'separator',
title: 'API',
},
'api-v16': 'v16',
'-- 4': {
type: 'separator',
title: 'FAQ',
},
'going-to-production': '',
'api-v16': {
'api-menu': {
type: 'menu',
title: 'API',
items: {
Expand Down

0 comments on commit 317ab6a

Please sign in to comment.