Skip to content

RFC add support for diagrams generated from SVG sources

Michael Opdenacker yocto-docs 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 RFC Latest3 patches 10 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/3Makefile: allow epub and latexpdf outputs to use diagrams from SVG sourcesdocumentation/.gitignore documentation/Makefile+28 -35 replies
2/3conf.py: prefer PNG to SVG in EPUB outputdocumentation/conf.py+4 -02 replies
3/3overview-manual: SVG diagram for the git workflowdocumentation/overview-manual/development-environment.rst documentation/overview-manual/figures/git-workflow.png documentation/overview-manual/svg/git-workflow.svg+1207 -20 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [RFC 0/3] add support for diagrams generated from SVG sources

This RFC proposes modifications to the Makefile and the Sphinx configuration (conf.py file) to support:

- The generation of PNG diagrams from SVG sources for the generation of the EPUB manual. Directly using SVG in EPUB shows at least font size and alignment issues.

The conf.py file has been modified to let the EPUB builder know that it should prefer PNG over SVG when both formats are available.

- The generation of PDF diagrams from SVG sources for the generation of the PDF manual. PDF output cannot use SVG, and needs PDF diagrams instead.

New diagrams are stored in separate "svg" directories so that generated .png and .pdf files can be "gitignored" without ignoring the original .png files that have no .svg source.

In the source .rst files, new diagrams can now be included as, for example:
image:: svg/git-workflow.*

Note that the way the Makefile was modified can most probably be improved, as my "make" skills are pretty limited. I'm interested in your suggestions!

My goal is to progressively replace PNG diagrams with SVG ones:
- To get high quality definition output documents, in all output formats
- To Have the ability to update diagrams
I would indeed do this very progressively, a little bit every week, not at the expense of other tasks.

Michael Opdenacker (3):
Makefile: allow epub and latexpdf outputs to use diagrams from SVG
sources
conf.py: prefer PNG to SVG in EPUB output
overview-manual: SVG diagram for the git workflow

 documentation/.gitignore                      |    2 +
 documentation/Makefile                        |   29 +-
 documentation/conf.py                         |    4 +
 .../development-environment.rst               |    4 +-
 .../overview-manual/figures/git-workflow.png  |  Bin 26586 -> 0 bytes
 .../overview-manual/svg/git-workflow.svg      | 1205 +++++++++++++++++
 6 files changed, 1239 insertions(+), 5 deletions(-)
 delete mode 100644 documentation/overview-manual/figures/git-workflow.png
 create mode 100644 documentation/overview-manual/svg/git-workflow.svg
Signature · 1 line
2.25.1