Skip to content

Wiki Maintenance

Cavanshirpro edited this page Sep 20, 2026 · 2 revisions

Wiki Maintenance

The Wiki is managed as a reproducible source package rather than by manually editing hundreds of GitHub pages independently.

Structure

Home.md is global. Languages.md is the locale registry. Each configured language has the same 20 core page IDs, using <WIKI-CODE>-<PAGE-ID>.md. English also hosts exact canonical reference pages for API/manifest/build contracts.

Managed-page marker

Generated/maintained pages carry LMG-WIKI-MANAGED plus the source snapshot. The publisher may replace these pages and may prune old LeoMiniGames-managed pages that are no longer shipped. It intentionally preserves unrelated manually created pages.

Safe migration/pruning

LEGACY_WIKI_FILES_TO_PRUNE.txt lists known duplicate filenames from older packages. These can be removed because their content has been superseded by the complete core matrix. Use -NoPrune/--no-prune when you explicitly need a non-destructive diagnostic publication.

Required workflow

  1. Audit the current repository source/manifest/build/legal files.
  2. Update canonical English reference pages.
  3. Update localized explanations without translating API identifiers.
  4. Run tools/validate_wiki.py.
  5. Run the independent audit script.
  6. Use publish_wiki.bat -DryRun (or publish_wiki.sh --dry-run).
  7. Review the Git diff before actual push.

What validators must catch

Missing matrix pages, undersized/placeholder core docs, missing source snapshot, broken internal links, planned locales falsely described as runtime-supported, public API naming errors, stale normative build floors and missing v0.7 manifest/capability fields.

Editorial rule

Do not pad pages with duplicated English boilerplate merely to satisfy a character threshold. The page's visible localized section should be useful on its own; exact English technical appendices may remain supplemental for identifier-level precision.

Clone this wiki locally