Publish the Transmodel model as pages of the site (0.14.0) #9
Loading…
Reference in a new issue
No description provided.
Delete branch "refs/pull/9/head"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Requested by Moof · project thread
Adds
--transmodel-pages, which publishes the Transmodel 6.2 UML model as atransmodel/section of the site.What readers get
transmodel/index.html): the model's packages as a collapsible tree, with each package's diagrams and classes. A "Transmodel 6.2 model" link sits at the top of the sidebar.--transmodelwithout--transmodel-pagesbehaves as before.How it works
scripts/update_transmodel_model.pyreads the EA XMI export, and the HTML export's index for each object's page, intodata/transmodel-6.2-model.json.gz(759 KB). It also draws every neighbourhood and small diagram with Graphviz intodata/transmodel-6.2-diagrams.json.gz(5.5 MB). Links in the SVGs aretm:<GUID>and are resolved at generation, so builds need neither Graphviz nor the network.<font>). Capitalised concept names in them are linked.Checks
uv run pytest: 59 passed, including a newtests/test_transmodel_pages.py.nxandnetex-publicationvariants with--transmodel-pagestook 21 s. Thetransmodel/section is 63 MB, and the 128,736 internal links checked from Transmodel pages and 400 element pages have no broken targets.@viz-js/viz), because the container had no system Graphviz. A rebuild with nativedotshould give the same layout.Notes
cli.pyandrender.py, so whichever merges second will need a small rebase.🤖 Generated with Claude Code
https://claude.ai/code/session_019EUw76i961mxumC6sVRdBV