From c079ae3cf8bf5bc0f255bde1ce2fbd424436cffb Mon Sep 17 00:00:00 2001 From: Jovi De Croock Date: Mon, 18 Nov 2024 10:18:33 +0100 Subject: [PATCH] Split up in v16 API documentation (#4295) CC @dimaMachina Is it possible for the sidebar on `api-v16` to restart? currently it inherits the root one --- website/css/globals.css | 2 +- website/pages/_meta.ts | 20 +++++++++----------- website/pages/api-v16/_meta.ts | 12 ++++++++++++ website/pages/{ => api-v16}/error.mdx | 0 website/pages/{ => api-v16}/execution.mdx | 0 website/pages/{ => api-v16}/graphql-http.mdx | 0 website/pages/{ => api-v16}/graphql.mdx | 0 website/pages/{ => api-v16}/language.mdx | 0 website/pages/{ => api-v16}/type.mdx | 0 website/pages/{ => api-v16}/utilities.mdx | 0 website/pages/{ => api-v16}/validation.mdx | 0 11 files changed, 22 insertions(+), 12 deletions(-) create mode 100644 website/pages/api-v16/_meta.ts rename website/pages/{ => api-v16}/error.mdx (100%) rename website/pages/{ => api-v16}/execution.mdx (100%) rename website/pages/{ => api-v16}/graphql-http.mdx (100%) rename website/pages/{ => api-v16}/graphql.mdx (100%) rename website/pages/{ => api-v16}/language.mdx (100%) rename website/pages/{ => api-v16}/type.mdx (100%) rename website/pages/{ => api-v16}/utilities.mdx (100%) rename website/pages/{ => api-v16}/validation.mdx (100%) diff --git a/website/css/globals.css b/website/css/globals.css index bb77fa72cc..d8207c0885 100644 --- a/website/css/globals.css +++ b/website/css/globals.css @@ -82,7 +82,7 @@ div[id^='headlessui-menu-items'] { @apply justify-start; > a { - @apply first:mr-0 hover:!text-primary; + @apply hover:!text-primary; } button[id^='headlessui-menu-button'] { diff --git a/website/pages/_meta.ts b/website/pages/_meta.ts index 7b0f42dca3..b56f19ce54 100644 --- a/website/pages/_meta.ts +++ b/website/pages/_meta.ts @@ -24,18 +24,16 @@ const meta = { title: 'FAQ', }, 'going-to-production': '', - '-- 4': { - type: 'separator', - title: 'API Reference', + 'api-v16': { + type: 'menu', + title: 'API', + items: { + 2: { + title: 'V16', + href: '/api-v16/graphql', + }, + }, }, - graphql: '', - error: '', - execution: '', - language: '', - type: '', - utilities: '', - validation: '', - 'graphql-http': '', }; export default meta; diff --git a/website/pages/api-v16/_meta.ts b/website/pages/api-v16/_meta.ts new file mode 100644 index 0000000000..075de90bca --- /dev/null +++ b/website/pages/api-v16/_meta.ts @@ -0,0 +1,12 @@ +const meta = { + graphql: '', + error: '', + execution: '', + language: '', + type: '', + utilities: '', + validation: '', + 'graphql-http': '', +}; + +export default meta; diff --git a/website/pages/error.mdx b/website/pages/api-v16/error.mdx similarity index 100% rename from website/pages/error.mdx rename to website/pages/api-v16/error.mdx diff --git a/website/pages/execution.mdx b/website/pages/api-v16/execution.mdx similarity index 100% rename from website/pages/execution.mdx rename to website/pages/api-v16/execution.mdx diff --git a/website/pages/graphql-http.mdx b/website/pages/api-v16/graphql-http.mdx similarity index 100% rename from website/pages/graphql-http.mdx rename to website/pages/api-v16/graphql-http.mdx diff --git a/website/pages/graphql.mdx b/website/pages/api-v16/graphql.mdx similarity index 100% rename from website/pages/graphql.mdx rename to website/pages/api-v16/graphql.mdx diff --git a/website/pages/language.mdx b/website/pages/api-v16/language.mdx similarity index 100% rename from website/pages/language.mdx rename to website/pages/api-v16/language.mdx diff --git a/website/pages/type.mdx b/website/pages/api-v16/type.mdx similarity index 100% rename from website/pages/type.mdx rename to website/pages/api-v16/type.mdx diff --git a/website/pages/utilities.mdx b/website/pages/api-v16/utilities.mdx similarity index 100% rename from website/pages/utilities.mdx rename to website/pages/api-v16/utilities.mdx diff --git a/website/pages/validation.mdx b/website/pages/api-v16/validation.mdx similarity index 100% rename from website/pages/validation.mdx rename to website/pages/api-v16/validation.mdx