From ffc1128cc66c1e6fde49e6d745bfa26e3e8d9a6f Mon Sep 17 00:00:00 2001 From: RandomGamingDev Date: Sat, 13 Jun 2026 15:01:54 -0400 Subject: [PATCH 01/15] fixed #1435 --- src/components/AnnotatedCode/index.astro | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/AnnotatedCode/index.astro b/src/components/AnnotatedCode/index.astro index 95477f8051..75743ef0aa 100644 --- a/src/components/AnnotatedCode/index.astro +++ b/src/components/AnnotatedCode/index.astro @@ -93,7 +93,7 @@ for (const attr of codeTag.attributes) { {rows.map((row, i) => { const lineNodes = lines.slice(row.startLine, row.endLine); return ( - +
 n.outerHTML).join('\n')} />
From 7d681ee79ffccd8f3a33ce61cbefcd037ff8e89f Mon Sep 17 00:00:00 2001 From: emily Date: Wed, 29 Apr 2026 16:18:14 -0700 Subject: [PATCH 02/15] Fix visual bug appearing in the left nav bar for the "Examples" section of the site --- src/components/Nav/index.astro | 2 +- src/layouts/BaseLayout.astro | 5 ++++- src/layouts/ExampleLayout.astro | 4 +--- src/layouts/ExamplesLayout.astro | 10 ++-------- 4 files changed, 8 insertions(+), 13 deletions(-) diff --git a/src/components/Nav/index.astro b/src/components/Nav/index.astro index 320add0aef..50f71c6d4c 100644 --- a/src/components/Nav/index.astro +++ b/src/components/Nav/index.astro @@ -1,6 +1,5 @@ --- import { getCurrentLocale, getUiTranslator } from "@/src/i18n/utils"; -import { jumpToState } from "@/src/globals/state"; import styles from "./styles.module.scss"; import { NavPanels } from "./NavPanels"; @@ -9,6 +8,7 @@ const currentLocale = getCurrentLocale(Astro.url.pathname); const pathMinusLocale = Astro.url.pathname.replace(`/${currentLocale}`, ""); const isHomepage = pathMinusLocale === "/"; const t = await getUiTranslator(currentLocale); +const { jumpToState } = Astro.props; const mainLinks = [ { url: "/reference/", label: t("Reference") }, diff --git a/src/layouts/BaseLayout.astro b/src/layouts/BaseLayout.astro index 2ee6390ad8..1795d6ca0d 100644 --- a/src/layouts/BaseLayout.astro +++ b/src/layouts/BaseLayout.astro @@ -7,6 +7,7 @@ import ItemPageHeader from "@/src/components/PageHeader/ItemPage.astro"; import HomePageHeader from "@/src/components/PageHeader/HomePage.astro"; import { getCurrentLocale, getUiTranslator } from "@i18n/utils"; import { capitalize, getTopicInfo, type PageTopic } from "../pages/_utils"; +import { type JumpToState } from "@src/globals/state"; import "@styles/base.scss"; import "@styles/global.css"; import type { CollectionEntry } from "astro:content"; @@ -23,6 +24,7 @@ interface Props { variant?: "root" | "item" | "search" | "homepage"; topic?: PageTopic; mainContentParentClass?: string; + jumpToState?: JumpToState; /* Only needed for the homepage */ homepageConfig?: CollectionEntry<"homepage">; } @@ -36,6 +38,7 @@ const { variant = "root", mainContentParentClass = "mx-5 md:mx-lg mt-md", homepageConfig, + jumpToState } = Astro.props; const currentLocale = getCurrentLocale(Astro.url.pathname); @@ -89,7 +92,7 @@ const headerTopic = topic
-