From d4cf6577c99a7a0a094c8ee17d9be73ca8ff689d Mon Sep 17 00:00:00 2001 From: Eric Liu Date: Sat, 6 Aug 2022 14:02:53 -0700 Subject: [PATCH] docs: flatten table of contents hierarchy --- docs/src/layouts/ComponentLayout.svelte | 11 +++--- docs/svelte.config.js | 51 ++++++++++--------------- 2 files changed, 26 insertions(+), 36 deletions(-) diff --git a/docs/src/layouts/ComponentLayout.svelte b/docs/src/layouts/ComponentLayout.svelte index 3ffae9e5..2c2ede9a 100644 --- a/docs/src/layouts/ComponentLayout.svelte +++ b/docs/src/layouts/ComponentLayout.svelte @@ -100,12 +100,11 @@
-
Table of Contents
+
Examples
-

Usage

-

Component API

+

Component API

API documentation is

-
Table of Contents
+
Examples
@@ -157,7 +156,8 @@ border-bottom: 1px solid var(--cds-ui-03); } - .toc h5 { + :global(.toc h5) { + margin-top: var(--cds-spacing-06); margin-bottom: var(--cds-spacing-03); } @@ -168,6 +168,7 @@ @media (max-width: 1056px) { .toc.mobile { display: block; + margin-bottom: var(--cds-spacing-09); } } diff --git a/docs/svelte.config.js b/docs/svelte.config.js index 277d8ced..bdacb967 100644 --- a/docs/svelte.config.js +++ b/docs/svelte.config.js @@ -188,41 +188,30 @@ module.exports = { "", `