Skip to main content

Documentation Index

Fetch the complete documentation index at: https://mintlify.com/samgutentag/sbburgerweek/llms.txt

Use this file to discover all available pages before exploring further.

apply-theme.py is the bridge between config.js and every file that can’t read config.js at runtime. HTML files, the social preview image, the CNAME file, README.md, and the Cloudflare Worker SQL queries all contain values that must be baked in at deploy time — apply-theme.py handles all of them in one pass. Run it after every config.js change.

Prerequisites

apply-theme.py requires ImageMagick to render the social preview PNG. Without it, the SVG is still updated but og-image.png won’t be generated.
brew install imagemagick

# Verify
magick --version
If ImageMagick is not installed, apply-theme.py will print a warning and continue. All other files will be updated normally — only the PNG generation step is skipped.

What it updates

Running python3 apply-theme.py rewrites the following files based on the current values in config.js:
FileWhat changes
og-image.svgEvent name, dates, emoji, domain
og-image.pngRendered from SVG with Twemoji emoji composite
CNAMECustom domain extracted from siteUrl
index.htmlFavicon emoji, title, header, concluded banner, analytics snippet
embed/index.htmlFavicon emoji, showcase title
embed/map/index.htmlFavicon emoji, embed bar title, full map link, contact email
admin/index.htmlFavicon emoji, page title
stats/index.htmlFavicon emoji, page title, concluded banner
README.mdHits badge domain, embed snippet, title
workers/track/index.jsEvent start date in SQL queries
.github/workflows/snapshot-tracking.ymlEvent start date in SQL queries

Running it

From the repo root, run:
python3 apply-theme.py
The script prints one line per file as it processes each one, and exits with an error if eventName, emoji, or siteUrl are missing from config.js.
Run apply-theme.py every time you change config.js. Stale HTML files will show the wrong event name, dates, emoji, or analytics token until the script is re-run and the changes are pushed.
The OG social preview image (og-image.png) uses Twemoji for emoji rendering. Twemoji provides consistent, cross-platform emoji appearance in social previews — the emoji you see in a link preview on Twitter, iMessage, or Slack will look the same regardless of the viewer’s operating system.

Build docs developers (and LLMs) love