v2.0.0 is live — the content operating system: PR-gated content pipeline (keyword list → gates → draft PR), anvilwiki-ops 1.0 (multi-site + AI referral tracking), pnpm gen-covers og:image generation, and an affiliate suggestion slot. Zero breaking changes for forks.
AnvilWiki
中文

Development Manual

7 chapters for customizers and contributors: the change map, categories & locales, theme & homepage copy, feature switches, CI & security, syncing upstream or contributing back, and running ops through AI (anvilwiki-ops CLI + MCP).

7 chapters

  1. 1 Dev 1 · Read the Map First: What to Change, What to Leave Alone Three layers — code (rarely touched), config (once per game), content (daily). The decision tree locates any change in 30 seconds, plus six Astro 5 gotchas.
  2. 2 Dev 2 · Add Categories and Add Languages Step-by-step recipes for adding a navigation category (three-place consistency) and adding a language (scaffold plus translation prompts). A lookup manual.
  3. 3 Dev 3 · Change the Theme Color and Edit the Homepage Swap all 8 theme-color variable lines together (a partial swap leaves the old hue); edit homepage copy only in the JSON home section; plus the new-field flow.
  4. 4 Dev 4 · The Feature-Toggle Table: Ads, Comments, Analytics All optional features share one toggle mechanism — empty variable = nothing rendered. The full variable table, where they go, and the advanced wrangler.toml route.
  5. 5 Dev 5 · CI Gates and Security Baselines The three automated pipelines and what each guards (CI's eight gates, weekly freshness reminders, initialize cleanup), plus the built-in security baselines.
  6. 6 Dev 6 · Keep Up With Official Updates and Give the Good Stuff Back Merge upstream safely (conflicts always keep your game config and articles), the SemVer promises, and the path to contributing back and the showcase.
  7. 7 Dev 7 · Put an AI on Ops Duty: anvilwiki-ops and MCP Hand your AI assistant the whole ops loop: health checks, real GSC and Cloudflare data, prioritized actions, and PR-gated publishing — never a push to main.