Skip to content

Commit

Permalink
sphinx doc: add plugin for svg conversion
Browse files Browse the repository at this point in the history
sphinx pdf can not handle svg images without converting them first.
There are a few options available. I am using CairosSVG here.
  • Loading branch information
tjhei committed Dec 10, 2024
1 parent 27bc577 commit b60f799
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
3 changes: 2 additions & 1 deletion doc/sphinx/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,8 @@
extensions = [
"myst_parser",
"sphinxcontrib.bibtex",
"sphinxcontrib.tikz"
"sphinxcontrib.tikz",
"sphinxcontrib.cairosvgconverter"
]
myst_enable_extensions = [
"colon_fence",
Expand Down
1 change: 1 addition & 0 deletions doc/sphinx/environment.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,3 +9,4 @@ dependencies:
- pip>=20.1
- pip:
- sphinxcontrib-tikz
- sphinxcontrib-svg2pdfconverter[CairoSVG]

0 comments on commit b60f799

Please sign in to comment.