Skip to content

Embed design document images so the architecture diagram appears in the PDF - #81

Merged
Malcolmnixon merged 2 commits into
mainfrom
design-embed-images
Nov 11, 2026
Merged

Malcolmnixon merged 2 commits into
mainfrom
design-embed-images

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:32

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.

🟡 Changes recommended

An active moderate issue remains because the resource path omits docs/design/generated, leaving images in generated design content unresolved and potentially omitted by WeasyPrint.

1 open issue
What changed in this PR

Updates the design-document build configuration to embed referenced images in the generated HTML for PDF output.

Changes:

  • Enables embed-resources for the design document.
  • The resource path does not include docs/design/generated, so generated view images may remain unresolved.
File Description
docs/​design/​definition.yaml Enables embedded resource handling for the design document build while retaining the existing resource paths.

Review effort: Lite

Comment thread docs/design/definition.yaml Resolved
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Copilot AI lite review requested due to automatic review settings November 11, 2026 17:00

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 images by making generated assets discoverable and embedding them in the design PDF.

No open issues 🎉

1 resolved since last review

Review effort: Lite

@Malcolmnixon
Malcolmnixon merged commit 25a9534 into main Nov 11, 2026
10 checks passed
@Malcolmnixon
Malcolmnixon deleted the design-embed-images branch November 11, 2026 17:21
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