Build all six schema sets in one run with shared pages #6

Merged
moof merged 0 commits from refs/pull/6/head into main 2026-10-21 02:12:12 +00:00
moof commented 2026-10-21 02:07:43 +00:00 (Migrated from code.moof.space)

Requested by Moof · project thread

Switches the build to prettyxsd 0.12.0's shared pages (OpenTransportData/prettyxsd#7). Merge that first, so 0.12.0 is published before this builds.

  • One prettyxsd run with --variant for all six schema sets, each with its own title. Start pages stay at nx/, netex-publication/ and the other existing paths.
  • --examples NeTEx/examples publishes the 290 official examples once, and element pages link to them.
  • site/redirects.caddy permanently redirects old page URLs such as /nx/elements/... to the shared /elements/....
  • The landing page explains the schema switcher and the examples.

Locally the build takes 32s instead of six runs, and the site is 218 MB and 7,363 files instead of 666 MB and 39,212 files.

Caddy: add import <site path>/redirects.caddy inside the netex.wompom.com site block, then reload Caddy. Until then, old URLs keep serving the stale per-variant copies left on the server, because scp doesn't delete them. Once the import is in place they redirect, and the old */elements, */types, */src and */assets folders on the server can be deleted.

🤖 Generated with Claude Code

https://claude.ai/code/session_01SnEtsMrAdL7vb2Ln5KuqTS

<!-- claude-projects-attribution --> _Requested by **Moof** · [project thread](https://claude.ai/code/project/chan_01BmPQxcG1UuS21Gfai9Zcdh?thread=cmsg_01BmPQxcG1UuS21Gfai9ZcdhTymh7qrQ729gG29XEc821m)_ Switches the build to prettyxsd 0.12.0's shared pages (OpenTransportData/prettyxsd#7). Merge that first, so 0.12.0 is published before this builds. - One `prettyxsd` run with `--variant` for all six schema sets, each with its own title. Start pages stay at `nx/`, `netex-publication/` and the other existing paths. - `--examples NeTEx/examples` publishes the 290 official examples once, and element pages link to them. - `site/redirects.caddy` permanently redirects old page URLs such as `/nx/elements/...` to the shared `/elements/...`. - The landing page explains the schema switcher and the examples. Locally the build takes 32s instead of six runs, and the site is 218 MB and 7,363 files instead of 666 MB and 39,212 files. **Caddy:** add `import <site path>/redirects.caddy` inside the netex.wompom.com site block, then reload Caddy. Until then, old URLs keep serving the stale per-variant copies left on the server, because scp doesn't delete them. Once the import is in place they redirect, and the old `*/elements`, `*/types`, `*/src` and `*/assets` folders on the server can be deleted. 🤖 Generated with [Claude Code](https://claude.com/claude-code) https://claude.ai/code/session_01SnEtsMrAdL7vb2Ln5KuqTS
Sign in to join this conversation.
No reviewers
No labels
No milestone
No project
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
Transmodel/transmodel-site!6
No description provided.