Skip to content

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

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

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.
nicobailon added a commit that referenced this pull request Aug 13, 2026
Add optional Glimpse viewing through the native render tool and inject standard self-contained favicons.\n\nCredits @bjesuiter for issue #55 and PR #56, and @zereraz for PR #62.\n\nCloses #55.\nSupersedes #62.
@nicobailon

Copy link
Copy Markdown
Owner

Thanks @zereraz. The self-contained favicon behavior landed through PR #73 on current main, including render-time injection and template favicons. Closing this PR as superseded by the maintainer port, with credit preserved in the changelog.

@nicobailon nicobailon closed this Aug 13, 2026
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.

2 participants