From 317ab6a0cad2b58f636f93709a214888da71ddd9 Mon Sep 17 00:00:00 2001 From: Yaacov Rydzinski Date: Thu, 16 Jan 2025 23:16:06 +0200 Subject: [PATCH] fix sidebar instability 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. --- website/pages/_meta.ts | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/website/pages/_meta.ts b/website/pages/_meta.ts index b56f19ce54..d0b80614d6 100644 --- a/website/pages/_meta.ts +++ b/website/pages/_meta.ts @@ -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: {