Repository navigation
Embed design document images so the architecture diagram appears in the PDF - #81
Merged
Merged
Conversation
…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>
Contributor
There was a problem hiding this comment.
🟡 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-resourcesfor 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
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Contributor
There was a problem hiding this comment.
🟢 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
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.

The architecture diagram added to
docs/design/introduction.mdwas missing from the design PDF: the generated HTML referencedarchitecture.svgrelative todocs/design/generated/, where it doesn't exist, and WeasyPrint only logsERROR: Failed to load imagewithout failing the build. This setsembed-resources: trueindocs/design/definition.yaml(as the user guide already does) and addsdocs/design/generatedto 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.