Skip to content

feat: read about.json and parse the restricted Markdown subset - #66

Merged
fogrew merged 1 commit into
release/3.0.0from
feature/about-markdown
Oct 27, 2026
Merged

fogrew merged 1 commit into
release/3.0.0from
feature/about-markdown

Conversation

@fogrew

@fogrew fogrew commented Oct 27, 2026

Copy link
Copy Markdown
Member

What

The data layer under the About and News zones and the Terms step, in Launcher.Core, with no UI yet:

  • AboutReader reads about.json under the limits of docs/server-page.md (16 KiB, tagline 80, fact 48, description 2000 characters, en required for the texts). A file the launcher cannot use gives no zone; a field that breaks its rule is left out on its own and the rest applies. Facts come back in the launcher's vocabulary order.
  • MarkdownSubset turns descriptions, news and terms into blocks and spans: paragraphs, bold, italic, bullet lists, headings of level 2 and 3, https links with the host to show (IDN hosts as punycode). Images, raw HTML and other link schemes stay literal text; control and direction-changing characters are removed; work is bounded (400 blocks, 2048-character links).
  • LocalizedText.Pick takes the interface language, then its base language, then en.

Notes

The terms language fallback stays an open point in the doc (whether a German player agreeing to English terms is acceptable is a call for the maintainers); Pick only provides the mechanism.

Tests

63 new tests (Launcher.Tests is now 465).

Refs #57, #58

🤖 Generated with Claude Code

AboutReader reads about.json under the limits of docs/server-page.md: a
file the launcher cannot use gives no zone, and a field that breaks its
rule is left out on its own. Facts follow the launcher's vocabulary, not
the file's order.

MarkdownSubset turns descriptions, news and terms into blocks and spans:
paragraphs, bold, italic, bullet lists, headings of level 2 and 3 and
https links with the host to show. Images, raw HTML and other schemes stay
literal text, and control and direction-changing characters are removed.

LocalizedText picks the text for the interface language, then its base
language, then English.

Refs #57, #58

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
@fogrew
fogrew merged commit d966e92 into release/3.0.0 Oct 27, 2026
2 checks passed
@fogrew
fogrew deleted the feature/about-markdown branch October 27, 2026 10:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant