Registry Mirror
Skip to content

Conversation

@Malcolmnixon

Copy link
Copy Markdown
Member

The architecture diagram added to docs/design/introduction.md was missing from the design PDF: the generated HTML referenced architecture.svg relative to docs/design/generated/, where it doesn't exist, and WeasyPrint only logs ERROR: Failed to load image without failing the build. This sets embed-resources: true in docs/design/definition.yaml (as the user guide already does) and adds docs/design/generated to the resource path so the rendered SysML2 views are embedded too. Verified locally: design HTML builds with no unresolved resources and no external image references; the PDF shows the architecture diagram.

…he PDF

The design HTML referenced docs/images/architecture.svg by a relative path that
does not exist next to the generated HTML, so WeasyPrint dropped the diagram from
the PDF. Embed resources (as the user guide already does) and add
docs/design/generated to the resource path for the rendered SysML2 views.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Copilot AI lite review requested due to automatic review settings November 11, 2026 16:31

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟢 Approval recommended

No active review issues remain, and the configuration changes address missing generated images by resolving diagram assets and embedding document resources for PDF generation.

No open issues 🎉

What changed in this PR

This pull request fixes missing images in the generated design PDF by resolving generated diagram assets and embedding document resources into the HTML used by WeasyPrint.

Changes:

  • Adds docs/design/generated to the resource search paths.
  • Enables embedded resources for the design document.
File Description
docs/​design/​definition.yaml Configures generated image lookup and resource embedding for the design HTML and PDF.

Review effort: Lite

@Malcolmnixon
Malcolmnixon merged commit 4e61a0a into main Nov 11, 2026
13 checks passed
@Malcolmnixon
Malcolmnixon deleted the design-embed-images branch November 11, 2026 16:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants