From ea952bdb4f185b920350966aa80f462e1b5e9ae8 Mon Sep 17 00:00:00 2001 From: Branimir Georgiev Date: Sat, 25 Apr 2026 18:30:33 +0300 Subject: [PATCH] feat: add playbook sidebar nav and fix theme FOUC Add a grouped recipe navigation sidebar on the right for playbook pages, replacing the tutorial links. Non-playbook pages keep tutorial links. All pages keep the heading ToC on the left. Fix flash of unstyled content by moving theme initialization from the body to the head. Co-Authored-By: Claude Opus 4.6 (1M context) --- astro-site/src/components/Header.astro | 3 +- astro-site/src/components/PlaybookNav.astro | 81 +++++++++++++++++++++ astro-site/src/layouts/DocLayout.astro | 18 ++++- astro-site/src/pages/[...slug].astro | 1 + astro-site/src/styles/global.css | 76 ++++++++++++++++++- 5 files changed, 173 insertions(+), 6 deletions(-) create mode 100644 astro-site/src/components/PlaybookNav.astro diff --git a/astro-site/src/components/Header.astro b/astro-site/src/components/Header.astro index cb4b7a1..261f14a 100644 --- a/astro-site/src/components/Header.astro +++ b/astro-site/src/components/Header.astro @@ -57,8 +57,7 @@ const base = import.meta.env.BASE_URL; @@ -64,7 +74,11 @@ const ogImage = new URL("/tutorial-git/images/og-banner.png", Astro.site);

{title}

- + {isPlaybook ? ( + + ) : ( + + )}