Files
galaxy-game/site
Ilia Denisov d3770e7f77 docs(site): port game rules to site/ru/rules.md (verbatim markdown)
Faithful Markdown rendering of game/rules.txt for the site: headings with
stable anchors, GFM tables and LaTeX formulas — the text itself is
unchanged (typos, the TODO/WTF notes, the broken (---ссылка---) marker and
the lore intro are all preserved as-is). The editorial pass (clarity,
nuances, organic cross-links, intro moved to the home page) follows in a
separate commit so its diff isolates exactly what changed relative to the
original. Registers the page in the RU sidebar.
2026-05-31 14:07:50 +02:00
..

Galaxy project site

The public project site — an overview today, documentation as it grows. Built with VitePress and served as static files at the root (/) of the single-origin deployment; the game UI lives under /game/ (see tools/dev-deploy/Caddyfile.dev).

Layout

  • index.md, ru/index.md — per-locale home pages.
  • .vitepress/config.ts — site config: locales (English + Russian, with the built-in language switcher), LaTeX math (math: true), and the two-column navigation (left sidebar = chapters, right outline = on-this-page).
  • .vitepress/theme/ — the default theme without bundled fonts, plus a minimal monospace type stack in custom.css.

Authoring

  • Add a page as Markdown and register it in the sidebar of each locale in .vitepress/config.ts.
  • Localised content mirrors the English tree under ru/.
  • Math uses LaTeX: inline $E = mc^2$, block $$ … $$.
  • Link to the game with the root-relative /game/ path so the build stays domain-agnostic (no hard-coded host).

Commands

pnpm install
pnpm dev      # local dev server
pnpm build    # static build into .vitepress/dist
pnpm preview  # preview the build

The dev and prod deploys build the site via make -C tools/dev-deploy seed-site and the dev-deploy / prod-build workflows.