Fork the repo, swap out the config, add your restaurants, and push — your food-week map will be live on GitHub Pages in under 15 minutes. This guide walks through every required step using “SB Burrito Week” as a running example.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.
Fork and clone
Fork the repo on GitHub, then clone your fork and start a local server:Open http://localhost:8000 in your browser. A local server is required —
file:// won’t work because scripts load via relative paths.To test with skeleton data (no menu details), append ?year=9999 to the URL:Install ImageMagick
ImageMagick is used by Verify the install:
apply-theme.py to render the social preview PNG (og-image.png) from the SVG template. If it is missing the script warns and continues, but you won’t get a PNG.Configure your event
Open After saving Run this command every time you change
config.js and update the THEME object for your event. Every field has a comment, but the most important ones to change first are shown below:config.js, regenerate all derived files:config.js.Add restaurants
Restaurant data lives in Then add each restaurant to the An empty
data.js (skeleton, shown before dataLiveDate) and data-YYYY.js (full details, shown on and after dataLiveDate). Both files share the same format.First, define your geographic areas and their marker colors at the top of each data file:restaurants array. A complete entry looks like this:menuItems: [] shows “Details coming soon!” in the popup and sidebar card. See the data format reference for tips on getting coordinates and map links.Generate assets
Run
Commit all changes after the script runs.
apply-theme.py to propagate your config.js changes to every file that cannot read the config at runtime:| File updated | What changes |
|---|---|
og-image.svg | Event name, dates, emoji, domain |
og-image.png | Rendered from the SVG with Twemoji emoji composite |
CNAME | Custom domain extracted from siteUrl |
index.html | Favicon emoji, page title, header text, analytics snippet |
embed/index.html | Favicon emoji, showcase title |
embed/map/index.html | Embed bar title, full-map link, contact email |
stats/index.html | Favicon emoji, page title, concluded banner |
README.md | Hits badge domain, embed snippet, title |
workers/track/index.js | Event start date in SQL queries |
.github/workflows/snapshot-tracking.yml | Event start date in SQL queries |
Deploy to GitHub Pages
- Go to your repository on GitHub → Settings → Pages.
- Under Source, choose Deploy from a branch.
- Select the main branch and / (root) directory, then click Save.
- Wait 1–2 minutes. Your map is live at
https://YOUR_USERNAME.github.io/sbburgerweek/.
config.js, the CNAME file was already written by apply-theme.py. Point your DNS to GitHub Pages’ IP addresses and enter the domain under Settings → Pages → Custom domain.The steps above get you a fully working map. Optional features — click tracking via a Cloudflare Worker, live restaurant hours from the Google Places API, and Cloudflare Web Analytics — are covered in the Optional Features section.