From ab51d7f40d8757e939c53c04e737a4d54b554f58 Mon Sep 17 00:00:00 2001 From: xHyroM Date: Sun, 4 Jun 2023 20:38:44 +0200 Subject: [PATCH] fix(components/widgets/docs): remove marker from heading --- docs/config.ts | 39 +++++++++++-------- src/components/widgets/docs/LeftSidebar.astro | 23 ++++++----- 2 files changed, 35 insertions(+), 27 deletions(-) diff --git a/docs/config.ts b/docs/config.ts index f61dddd..0fbaafa 100644 --- a/docs/config.ts +++ b/docs/config.ts @@ -4,28 +4,33 @@ export interface Docs { export interface SidebarItem { text: string; - header?: boolean; - link?: string; + items: SidebarItem[] & { + link: string; + }[] } export const docs: Docs = { sidebar: [ - { text: "Discord Experiments API", header: true }, { - text: "Introduction", - link: "/docs/discord-experiments-api/introduction", - }, - { - text: "Experiments", - link: "/docs/discord-experiments-api/experiments", - }, - { - text: "Eligible", - link: "/docs/discord-experiments-api/eligible", - }, - { - text: "Stats", - link: "/docs/discord-experiments-api/stats", + text: "Discord Experiments API", + items: [ + { + text: "Introduction", + link: "/docs/discord-experiments-api/introduction", + }, + { + text: "Experiments", + link: "/docs/discord-experiments-api/experiments", + }, + { + text: "Eligible", + link: "/docs/discord-experiments-api/eligible", + }, + { + text: "Stats", + link: "/docs/discord-experiments-api/stats", + }, + ], }, ], }; diff --git a/src/components/widgets/docs/LeftSidebar.astro b/src/components/widgets/docs/LeftSidebar.astro index 356d1a7..cd5aadf 100644 --- a/src/components/widgets/docs/LeftSidebar.astro +++ b/src/components/widgets/docs/LeftSidebar.astro @@ -42,17 +42,20 @@ const getLinkClasses = (link: SidebarItem) => { aria-labelledby="grid-left" class="bg-dark-r w-64 -translate-x-full p-4 transition-transform duration-200 md:visible md:translate-x-0 md:bg-transparent" > -