Skip to content

Add a standard self-contained favicon to all generated pages - #62

Open
zereraz wants to merge 1 commit into
nicobailon:mainfrom
zereraz:feat/standard-favicon
Open

Add a standard self-contained favicon to all generated pages#62
zereraz wants to merge 1 commit into
nicobailon:mainfrom
zereraz:feat/standard-favicon

Conversation

@zereraz

@zereraz zereraz commented Jun 27, 2026

Copy link
Copy Markdown

What

Every generated page (decks, diagrams, reports) currently ships without a favicon, so browser tabs show the blank default. This adds a standard, self-contained data-URI favicon — a small node-graph glyph in the dark/accent palette, consistent with the self-contained-HTML requirement (no external file).

Changes

  • SKILL.md: favicon added to delivery rules and the final checklist; plus a KaTeX note to escape < as &lt; inside $$...$$ (a bare < makes the HTML parser truncate the formula).
  • templates/: the favicon <link> added to all 4 reference templates.
  • extension.ts: ensureFavicon() deterministically injects the favicon after </title> (or into <head>) on render, unless an icon link already exists — so pages get it even if the model omits it. Idempotent; preserves any existing icon.

Notes

  • Pure additive; no behavior change beyond the favicon.
  • Verified the injection is idempotent across 4 cases (title present, head-only, existing icon, existing shortcut icon).

- SKILL.md: add favicon to delivery rules + final checklist, plus a KaTeX
  '<'-escaping note that prevents formula truncation
- templates: add the data-URI favicon to all 4 reference templates
- extension.ts: ensureFavicon() deterministically injects the favicon after
  </title> (or into <head>) on render unless an icon link already exists,
  so pages get it even if the agent omits it

The favicon is a self-contained data-URI SVG (node-graph glyph, dark/accent
palette), consistent with the self-contained-HTML requirement.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant