ai-code-battle/cmd/acb-index-builder
jedarden aeef954590 feat(index-builder): add sitemap.xml generation
Add sitemap.xml generation as a final pass in the index builder. The
sitemap covers all public pages: home, leaderboard, bots list, bot
profiles, matches list, featured replays, seasons, rivalries,
predictions, and docs.

- Add SiteURL config field (ACB_SITE_URL env var, defaults to
  https://aicodebattle.com)
- Add generateSitemap() function with proper XML encoding
- Add SitemapURL and Sitemap types for XML marshaling
- Call generateSitemap() at the end of generateAllIndexes()
- Write sitemap.xml to output directory alongside leaderboard.json

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
2026-05-04 00:09:53 -04:00
..
blog.go fix(narrative): add season championship context and §13.2 critical moments to spotlight prompt 2026-04-22 20:08:49 -04:00
cards.go Implement S3 functions for R2/B2 integration in acb-index-builder 2026-03-29 09:09:29 -04:00
config.go feat(index-builder): add sitemap.xml generation 2026-05-04 00:09:53 -04:00
db.go feat(combat): rank matches by enemy-kill combat turns 2026-05-03 18:32:08 -04:00
deploy.go fix(index-builder): run wrangler from /app/web to pick up functions/ bundle 2026-04-30 12:39:57 -04:00
Dockerfile fix(index-builder): run wrangler from /app/web to pick up functions/ bundle 2026-04-30 12:39:57 -04:00
enrichment.go feat(playlists): add playlist curation and rebuild logic per §10, with series/seasons/enrichment 2026-04-21 16:11:27 -04:00
enrichment_test.go fix(index-builder): correct series/season exempt queries, optimize playlist curation 2026-04-21 16:47:13 -04:00
generator.go feat(index-builder): add sitemap.xml generation 2026-05-04 00:09:53 -04:00
main.go feat(§15.2): generate and stream static meta JSON files to R2 2026-04-22 18:46:27 -04:00
main_test.go feat(config): add season_id + rules_version to Config per §4.2 2026-04-22 18:09:26 -04:00
narrative.go fix(narrative): align LLM prompts with plan §15.1/§15.5 sports-journalism spec 2026-04-22 19:40:49 -04:00
narrative_test.go feat(blog): add rivalry context to spotlight prompt and fix narrative tests 2026-04-21 15:45:33 -04:00
rivalry_test.go test(index-builder): fix buildRivalryNarrative call signature 2026-04-28 23:40:57 -04:00
s3.go fix(worker,index-builder): use us-east-1 region for S3-compatible endpoints 2026-04-25 11:07:08 -04:00
s3_test.go feat(config): add season_id + rules_version to Config per §4.2 2026-04-22 18:09:26 -04:00
sitebuild.go fix(types): add missing ReplayPlayer import and type annotation for transcript feature 2026-04-22 18:20:56 -04:00
sitebuild_test.go fix(types): add missing ReplayPlayer import and type annotation for transcript feature 2026-04-22 18:20:56 -04:00