Variant folders and variant logos, for a site of several standards (0.16.0) #11

Merged
moof merged 1 commit from combined-site into main 2026-10-22 11:14:56 +00:00
Owner

Requested by Moof · project thread

What the combined transmodel.wompom.com site needs from prettyxsd (0.16.0):

  • Variant folders: a variant name can have one folder, such as --variant netex/nx=..., which puts its start page at netex/nx/index.html. A variant can't be both a name and another variant's folder, and transmodel is now reserved too.
  • Variant logos: --variant-logo NAME=IMAGE gives a variant its own logo in place of --logo. The start page shows it directly; the shared pages swap it in through site.js, following the reader's current variant.

Checked with a local build of NeTEx (6 variants), SIRI 2.3 (2) and OpRa (2) in one run: 1 min 30 s, 2,437 elements and 5,866 types.

Tests: 61 passed (one new test covers folders, the clash check and logos).

🤖 Generated with Claude Code

https://claude.ai/code/session_01Lz1bL3NY1gSDDuo53Q9d9C

<!-- claude-projects-attribution --> _Requested by **Moof** · [project thread](https://claude.ai/code/project/chan_01BmPQxcG1UuS21Gfai9Zcdh?thread=cmsg_01BmPQxcG1UuS21Gfai9Zcdh4Smq5f5qHi4pov6bfBhEPZ)_ What the combined transmodel.wompom.com site needs from prettyxsd (0.16.0): - **Variant folders:** a variant name can have one folder, such as `--variant netex/nx=...`, which puts its start page at `netex/nx/index.html`. A variant can't be both a name and another variant's folder, and `transmodel` is now reserved too. - **Variant logos:** `--variant-logo NAME=IMAGE` gives a variant its own logo in place of `--logo`. The start page shows it directly; the shared pages swap it in through site.js, following the reader's current variant. Checked with a local build of NeTEx (6 variants), SIRI 2.3 (2) and OpRa (2) in one run: 1 min 30 s, 2,437 elements and 5,866 types. Tests: 61 passed (one new test covers folders, the clash check and logos). 🤖 Generated with [Claude Code](https://claude.com/claude-code) https://claude.ai/code/session_01Lz1bL3NY1gSDDuo53Q9d9C
A variant name can carry one folder, such as netex/nx, so one site can
hold several standards' variants. --variant-logo NAME=IMAGE sets a
variant's logo; site.js shows the reader's variant's logo on the
shared pages.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Lz1bL3NY1gSDDuo53Q9d9C
moof merged commit 073cc212ce into main 2026-10-22 11:14:56 +00:00
moof changed title from Variant folders and variant logos, for a site of several standards (0.16.0) to Variant folders and variant logos, for a site of several standards (1.0.0) 2026-10-22 12:00:19 +00:00
moof changed title from Variant folders and variant logos, for a site of several standards (1.0.0) to Variant folders and variant logos, for a site of several standards (0.16.0) 2026-10-22 12:02:05 +00:00
Sign in to join this conversation.
No reviewers
No labels
No milestone
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
Reference4PT/prettyxsd!11
No description provided.