From 48c1041019f8419cda9656611e7db3f6bd9f098e Mon Sep 17 00:00:00 2001 From: Mark Otto Date: Sun, 21 Sep 2025 22:56:22 -0700 Subject: [PATCH] Add subgroups to docs utils nav --- site/data/sidebar.yml | 16 +++++---- site/src/components/DocsSidebar.astro | 50 ++++++++++++++++++++++++--- site/src/libs/data.ts | 10 ++++-- site/src/scss/_sidebar.scss | 5 +++ 4 files changed, 67 insertions(+), 14 deletions(-) diff --git a/site/data/sidebar.yml b/site/data/sidebar.yml index f4dd6c9ab3..49a55ab158 100644 --- a/site/data/sidebar.yml +++ b/site/data/sidebar.yml @@ -117,25 +117,27 @@ icon_color: red pages: - title: API - - title: Align content - - title: Align items - - title: Align self - title: Aspect ratio - title: Background - title: Border - title: Border radius - title: Colors - title: Display - - title: Flex + - group: Flex & Grid + pages: + - title: Align content + - title: Align items + - title: Align self + - title: Flex + - title: Justify content + - title: Justify items + - title: Place items - title: Float - title: Interactions - - title: Justify content - - title: Justify items - title: Link - title: Object fit - title: Opacity - title: Overflow - - title: Place items - title: Position - title: Shadows - title: Sizing diff --git a/site/src/components/DocsSidebar.astro b/site/src/components/DocsSidebar.astro index fb207fb2e9..ca28fb16f5 100644 --- a/site/src/components/DocsSidebar.astro +++ b/site/src/components/DocsSidebar.astro @@ -29,8 +29,50 @@ const sidebar = getData('sidebar') {group.title}