fix(landing-page): diagram links - use bundle path, not docs/diagrams/
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:
@@ -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
|
||||
|
||||
|
||||
@@ -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>"
|
||||
|
||||
|
||||
Reference in New Issue
Block a user