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.
🟢 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/generatedto 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
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.