RFC add support for diagrams generated from SVG sources
Get series with b4
b4 am [email protected]Versions newest first
- v1 RFC Latest3 patches 10 repliesIn review
Patches in v1 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/3 | Makefile: allow epub and latexpdf outputs to use diagrams from SVG sourcesdocumentation/ documentation/ | +28 | 5 replies | |
| 2/3 | conf.py: prefer PNG to SVG in EPUB outputdocumentation/ | +4 | 2 replies | |
| 3/3 | overview-manual: SVG diagram for the git workflowdocumentation/ documentation/ documentation/ | +1207 | 0 replies |
Reviews trailers per patch
No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.
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