Link only source pages to GitHub; source pages for several repos (0.13.0) #8

Merged
moof merged 0 commits from refs/pull/8/head into main 2026-10-21 14:40:25 +00:00
moof commented 2026-10-21 09:36:35 +00:00 (Migrated from code.moof.space)

Requested by Moof · project thread

GitHub links now appear only on the generated source pages. Everything else links to the site's own pages.

  • Element, type and index pages, and the lazy schema tree, drop their GitHub "Source" and "View on GitHub" links. Each declaration still shows file:line, linked to that line on the site's source page.
  • Each source page has a "View on GitHub" link to the file, which follows the #L-n line being shown.
  • Source paths are relative to the deepest directory holding every loaded schema, so a site combining NeTEx, SIRI and OpRa gets source pages for all of them. Before this, about 2,000 SIRI and OpRa source links were broken. Unreferenced files are still picked up only from the entry schemas' directories.
  • --github-base-url accepts DIR=URL and can be repeated, once per repository. The plain URL form still means the first input's directory.
  • Version bumped to 0.13.0.

Checked:

  • 52 tests pass. One new test covers schemas from two directories with a URL for each.
  • A NeTEx-only build (nx + ifopt) writes the same set of files as 0.12.0. The only difference is the removed GitHub links.
  • A combined NeTEx + SIRI 2.3 + OpRa build has 671 source pages, all with GitHub links to the right repo, no GitHub links anywhere else, and no broken internal links.

🤖 Generated with Claude Code

https://claude.ai/code/session_015G4Yw6DY5aJUhutP7jU8HB

<!-- claude-projects-attribution --> _Requested by **Moof** · [project thread](https://claude.ai/code/project/chan_01BmPQxcG1UuS21Gfai9Zcdh?thread=cmsg_01BmPQxcG1UuS21Gfai9ZcdhTQWhuMHN6XNTCVvH3hVKA4)_ GitHub links now appear only on the generated source pages. Everything else links to the site's own pages. - Element, type and index pages, and the lazy schema tree, drop their GitHub "Source" and "View on GitHub" links. Each declaration still shows `file:line`, linked to that line on the site's source page. - Each source page has a "View on GitHub" link to the file, which follows the `#L-n` line being shown. - Source paths are relative to the deepest directory holding every loaded schema, so a site combining NeTEx, SIRI and OpRa gets source pages for all of them. Before this, about 2,000 SIRI and OpRa source links were broken. Unreferenced files are still picked up only from the entry schemas' directories. - `--github-base-url` accepts `DIR=URL` and can be repeated, once per repository. The plain `URL` form still means the first input's directory. - Version bumped to 0.13.0. Checked: - 52 tests pass. One new test covers schemas from two directories with a URL for each. - A NeTEx-only build (nx + ifopt) writes the same set of files as 0.12.0. The only difference is the removed GitHub links. - A combined NeTEx + SIRI 2.3 + OpRa build has 671 source pages, all with GitHub links to the right repo, no GitHub links anywhere else, and no broken internal links. 🤖 Generated with [Claude Code](https://claude.com/claude-code) https://claude.ai/code/session_015G4Yw6DY5aJUhutP7jU8HB
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/prettyxsd!8
No description provided.