Link capitalised Transmodel concept names in documentation #5
Loading…
Reference in a new issue
No description provided.
Delete branch "transmodel-text-links"
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
What
With
--transmodel, Transmodel concept names written in capitals in the documentation now link to their Transmodel 6.2 pages, as well as the page-level link added in #2. For example, "A path within a SITE connecting two SITE COMPONENTs, or PATH JUNCTIONs" gets three links.How terms are matched
ENTITies→ ENTITY,FACILITies→ FACILITY,PLACEs→ PLACE,OPERATOR's→ OPERATOR,INTERCHANGe→ INTERCHANGE. The link keeps the original text and gets atitlenaming the concept.<code>,<pre>and existing links is left alone, so the linking is idempotent.--transmodel-namespacenamespaces.Catalog fix
The Enterprise Architect page title shows "NAME ALIAS" for renamed concepts. For example, the PATH LINK page is titled "PATH LINK SITE PATH LINK", so #2 recorded names like that and never matched PATH LINK, TRAIN or PATH JUNCTION. The script now takes the name from
<title>and lists the 11 aliases separately, so both SITE PATH LINK and PATH LINK resolve. The hand-written element aliases for the train concepts are no longer needed.Result on NeTEx
NX.xsd<a class="tm" href="…">, with a title only when the text differs from the concept name). The site grows from 127 MB to 134 MB (about 5%).Version
0.10.0, because 0.9.0 is taken by #4.
Tests
uv run python -m unittest discover -s tests: 44 tests pass, including two new ones for term matching and documentation linking.🤖 Generated with Claude Code
https://claude.ai/code/session_01AmFvj38A6ceghEnxPGvprJ