From c234f221f9be698bc0501c60459e1ae8e67df6c3 Mon Sep 17 00:00:00 2001 From: Ogulcan Celik Date: Wed, 22 Jul 2026 14:58:26 +0300 Subject: feat(docs): publish versioned release documentation --- website/src/components/SiteTitle.astro | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'website/src/components/SiteTitle.astro') diff --git a/website/src/components/SiteTitle.astro b/website/src/components/SiteTitle.astro index 576e7635..3e5af0a3 100644 --- a/website/src/components/SiteTitle.astro +++ b/website/src/components/SiteTitle.astro @@ -1,8 +1,11 @@ --- +import { docsRoute } from '../docs-path'; + const { siteTitle, siteTitleHref, locale } = Astro.locals.starlightRoute; -const isPreview = Astro.url.pathname === '/docs/preview/' || Astro.url.pathname.startsWith('/docs/preview/'); +const route = docsRoute(Astro.url.pathname); const localePrefix = locale ? `/${locale}` : ''; -const docsHref = isPreview ? '/docs/preview/' : `${localePrefix}/docs/`; +const targetSegment = route.target === 'stable' ? '' : `/${route.target}`; +const docsHref = `${localePrefix}/docs${targetSegment}/`; ---
-- cgit v1.2.3