From 318cf0abfe583b69d7782c8c6c161f352484d6af Mon Sep 17 00:00:00 2001 From: Matthias Vallentin Date: Fri, 8 May 2026 11:07:45 +0200 Subject: [PATCH] Mark docs as legacy Add a site-wide banner that identifies this preview as Tenzir v5.x documentation and points readers to the latest v6 docs and migration guide. Assisted-by: ChatGPT (pi) --- astro.config.mjs | 1 + src/components/LegacyDocsBanner.astro | 55 +++++++++++++++++++++++++++ 2 files changed, 56 insertions(+) create mode 100644 src/components/LegacyDocsBanner.astro diff --git a/astro.config.mjs b/astro.config.mjs index 00de01b0e..aba6d16a8 100644 --- a/astro.config.mjs +++ b/astro.config.mjs @@ -139,6 +139,7 @@ export default defineConfig({ "./src/assets/css/utilities.css", ], components: { + Banner: "./src/components/LegacyDocsBanner.astro", PageFrame: "./src/components/PageFrame.astro", PageTitle: "./src/components/PageTitle.astro", Sidebar: "./src/components/Sidebar.astro", diff --git a/src/components/LegacyDocsBanner.astro b/src/components/LegacyDocsBanner.astro new file mode 100644 index 000000000..a65ef5e8d --- /dev/null +++ b/src/components/LegacyDocsBanner.astro @@ -0,0 +1,55 @@ +--- +const latestDocsUrl = "https://docs.tenzir.com/"; +const migrationGuideUrl = "https://docs.tenzir.com/guides/tenzir-v6-migration/"; +--- + +
+ Legacy docs for Tenzir v5.x. + + For the latest Tenzir v6 series, visit + docs.tenzir.com. + + + Migrating from v5? Read the + Tenzir v6 migration guide. + +
+ +