From ce19c7e2d14a1a7953840046c5b80be59a4304d1 Mon Sep 17 00:00:00 2001 From: 3252a8 <3252a8@proton.me> Date: Thu, 28 May 2026 08:21:58 +0300 Subject: [PATCH] docs: add mobile docs navigation menu --- docs-site/src/components/Header.astro | 36 +++++++-- docs-site/src/styles/custom.css | 104 ++++++++++++++++++++++++++ 2 files changed, 135 insertions(+), 5 deletions(-) diff --git a/docs-site/src/components/Header.astro b/docs-site/src/components/Header.astro index 18d09c8..7db945b 100644 --- a/docs-site/src/components/Header.astro +++ b/docs-site/src/components/Header.astro @@ -64,10 +64,7 @@ function navIcon(href: string) { -
+ + { + !hasSidebar && nav.length > 0 && ( +
+ + +
+ {nav.map((item) => { + const href = getI18nText(item.href, route) + const label = getI18nText(item.label, route) + const icon = navIcon(href) + + return ( + + {icon && } + {label} + + ) + })} +
+
+ ) + }