From d8c0060b802b24e74cc07ce0f7eace28a9294bda Mon Sep 17 00:00:00 2001 From: Lukas Hirt Date: Sat, 26 Sep 2026 00:31:15 +0200 Subject: [PATCH] fix: dedupe browser tab title and add the header logo The homepage's frontmatter title matched the site title exactly, so Starlight's default template produced 'memaudit docs | memaudit docs'. Gave the homepage its own title (the hero tagline) instead. Also wires up memaudit's mark as the site header logo (Starlight's logo config is separate from the favicon, which already used it) - copied from memaudit.dev's own icons/favicon.svg, sized up to 32x32 for header display without altering the mark itself. Signed-off-by: Lukas Hirt <info@hirt.cz> --- REUSE.toml | 2 +- astro.config.mjs | 4 ++++ src/assets/logo.svg | 4 ++++ src/content/docs/index.mdx | 2 +- 4 files changed, 10 insertions(+), 2 deletions(-) create mode 100644 src/assets/logo.svg diff --git a/REUSE.toml b/REUSE.toml index 856fe6c..8653833 100644 --- a/REUSE.toml +++ b/REUSE.toml @@ -1,6 +1,6 @@ version = 1 [[annotations]] -path = ["LICENSE", "README.md", "CONTRIBUTING.md", "package.json", "package-lock.json", "tsconfig.json", ".gitignore", ".github/**", "public/CNAME", "public/favicon.svg", ".markdownlint-cli2.jsonc"] +path = ["LICENSE", "README.md", "CONTRIBUTING.md", "package.json", "package-lock.json", "tsconfig.json", ".gitignore", ".github/**", "public/CNAME", "public/favicon.svg", "src/assets/logo.svg", ".markdownlint-cli2.jsonc"] SPDX-FileCopyrightText = "2026 the memaudit authors" SPDX-License-Identifier = "Apache-2.0" diff --git a/astro.config.mjs b/astro.config.mjs index 39be5bb..3105212 100644 --- a/astro.config.mjs +++ b/astro.config.mjs @@ -10,6 +10,10 @@ export default defineConfig({ integrations: [ starlight({ title: 'memaudit docs', + logo: { + src: './src/assets/logo.svg', + alt: 'memaudit', + }, description: 'Reference documentation for memauditd, the read-only host agent for measuring cold memory, stranded DRAM, and KV-cache waste on Linux.', social: [ diff --git a/src/assets/logo.svg b/src/assets/logo.svg new file mode 100644 index 0000000..4826ad4 --- /dev/null +++ b/src/assets/logo.svg @@ -0,0 +1,4 @@ +<svg xmlns="http://www.w3.org/2000/svg" width="32" height="32" viewBox="0 0 16 16"> + <rect width="16" height="16" rx="2" fill="#0a0d10"/> + <rect x="5" y="5" width="6" height="6" rx="1" fill="#ff6b4a"/> +</svg> diff --git a/src/content/docs/index.mdx b/src/content/docs/index.mdx index 4084730..0e753d4 100644 --- a/src/content/docs/index.mdx +++ b/src/content/docs/index.mdx @@ -1,5 +1,5 @@ --- -title: memaudit docs +title: See where your DRAM actually goes description: Reference documentation for memauditd, the read-only host agent for measuring cold memory, stranded DRAM, and KV-cache waste on Linux. template: splash hero: