fix(landing-page): diagram links - use bundle path, not docs/diagrams/
Validate / build-test (macos-latest) (push) Failing after 4s
Validate / build-test (ubuntu-latest) (push) Successful in 18s
Validate / build-test (windows-latest) (push) Failing after 30s
Validate / reports (push) Successful in 53s

Architecture diagram links on the deployed landing page returned 404
because the generator emitted 'docs/diagrams/<file>.svg' (repo-relative)
while validate.yml/release.yml deploy the SVGs to '<bundle>/diagrams/'.

Use the same bundle-relative pattern as coverage/cppcheck/traceability
(emit just 'diagrams/<file>.svg').

Also translates two remaining German comments in release.yml
('CI-generierte Artefakte', 'Source-Code zum Anklicken...').
This commit is contained in:
Stefan Lohmaier
2026-05-12 23:51:15 -07:00
parent 39b7182e0b
commit 2167c100e8
2 changed files with 4 additions and 4 deletions
+2 -2
View File
@@ -59,7 +59,7 @@ jobs:
# Landing page in the bundle root
cp build/index.html "$BUNDLE/index.html"
# CI-generierte Artefakte
# CI-generated artefacts
cp -r build/coverage-html/* "$BUNDLE/coverage/" 2>/dev/null || true
cp -r docs/traceability/* "$BUNDLE/traceability/"
cp -r docs/diagrams/* "$BUNDLE/diagrams/"
@@ -69,7 +69,7 @@ jobs:
cp build/test-report.html "$BUNDLE/reports/" 2>/dev/null || true
cp build/test-report.md "$BUNDLE/reports/" 2>/dev/null || true
# Source-Code zum Anklicken aus dem Bundle (begrenzt auf das wichtigste)
# Source code from the bundle (limited to the essentials)
cp -r src/*.c src/*.h "$BUNDLE/src/" 2>/dev/null || true
cp -r src/stubs "$BUNDLE/src/" 2>/dev/null || true
+2 -2
View File
@@ -228,12 +228,12 @@ footer {{ text-align: center; color: #888; padding: 30px; font-size: 13px; }}
"Machine-readable format for your own tools")
html_body += "</ul></section>"
# Diagrams
# Diagrams (bundle layout: SVGs are at <bundle>/diagrams/, not docs/diagrams/)
diagrams = sorted((REPO / "docs" / "diagrams").glob("*.svg"))
if diagrams:
html_body += "<section><h2>Architecture Diagrams (PlantUML)</h2><ul>"
for d in diagrams:
href = os.path.relpath(d, REPO)
href = f"diagrams/{d.name}"
html_body += f" <li><a href='{html.escape(href)}'>{html.escape(d.stem)}</a></li>\n"
html_body += "</ul></section>"