Worktrunk is a CLI for Git worktree management, designed for parallel AI agent workflows
fix(docs): restore 48px favicon and apple-touch-icon links (#4719)
Worktrunk Bot1a406817444e
diff --git a/docs/astro.config.mjs b/docs/astro.config.mjsindex 5dfb7963f..87d18ffce 100644--- a/docs/astro.config.mjs+++ b/docs/astro.config.mjs@@ -41,6 +41,18 @@ export default defineConfig({description: 'Git worktree management for parallel AI agent workflows.',disable404Route: true,favicon: '/favicon.png',+ head: [+ // Restores the icon links the Zola site carried (#627); `favicon` above+ // emits only the 32x32 shortcut icon.+ {+ tag: 'link',+ attrs: { rel: 'icon', type: 'image/png', sizes: '48x48', href: '/favicon-48.png' },+ },+ {+ tag: 'link',+ attrs: { rel: 'apple-touch-icon', sizes: '180x180', href: '/apple-touch-icon.png' },+ },+ ],logo: {src: './public/logo.png',alt: 'Worktrunk',diff --git a/docs/tests/built-site.test.mjs b/docs/tests/built-site.test.mjsindex bad3c66e4..0241fd7db 100644--- a/docs/tests/built-site.test.mjs+++ b/docs/tests/built-site.test.mjs@@ -345,6 +345,24 @@ test('every command reference receives semantic syntax roles', async () => {assert.equal(frameCount, headingCount, 'some command references remain plain code blocks');});+test('built pages link the 48px favicon and apple-touch-icon', async () => {+ // Starlight's `favicon` option links only favicon.png, so these icon files in+ // docs/public/ stay reachable only through the `head` entries.+ for (const page of renderedPages) {+ const html = await readFile(page, 'utf8');+ assert.match(+ html,+ /<link rel="icon" type="image\/png" sizes="48x48" href="\/favicon-48\.png"\/?>/,+ `${page} lacks a 48x48 favicon link`,+ );+ assert.match(+ html,+ /<link rel="apple-touch-icon" sizes="180x180" href="\/apple-touch-icon\.png"\/?>/,+ `${page} lacks an apple-touch-icon link`,+ );+ }+});+test('built pages only reference emitted local assets', async () => {const files = new Set(await allFiles());