Skip to content

Commit 0e0de5f

Browse files
committed
BUG: Transform SVG files in Sphinx
Transform the Binder badge SVG's for Latex / PDF generation, which does not support SVG's.
1 parent f5e029f commit 0e0de5f

File tree

3 files changed

+4
-1
lines changed

3 files changed

+4
-1
lines changed

.github/workflows/build-test-publish.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -278,6 +278,7 @@ jobs:
278278
sudo apt-get install gnuplot dvipng
279279
sudo apt-get install texlive-full
280280
sudo apt-get install pandoc
281+
sudo apt-get install imagemagick
281282
282283
python -m pip install --upgrade pip
283284
python -m pip install ninja

Formatting/conf.py.in

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ primary_domain = 'cpp'
4242
# Add any Sphinx extension module names here, as strings. They can be extensions
4343
# coming with Sphinx (named 'sphinx.ext.*') or your custom ones.
4444
extensions = ['sphinx.ext.todo', 'sphinx.ext.imgmath', 'sphinx.ext.ifconfig',
45-
'sphinx.ext.viewcode', 'breathe', 'doxylink', 'breathelink', 'nbsphinx']
45+
'sphinx.ext.viewcode', 'sphinx.ext.imgconverter', 'breathe', 'doxylink', 'breathelink', 'nbsphinx']
4646

4747
# Add any paths that contain templates here, relative to this directory.
4848
templates_path = ['templates']

README.rst

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,7 @@ If building the documentation:
7272
- nbsphinx_
7373
- gnuplot_
7474
- dvipng_ ( for rendered equations )
75+
- imagemagick_
7576

7677
PDF generation requires a TeX distribution like `TeX Live`_ or MiKTeX_.
7778

@@ -96,3 +97,4 @@ Run the bash script ``SetupForDevelopment.sh``::
9697
.. _dvipng: https://sourceforge.net/projects/dvipng/
9798
.. _Pandoc: https://pandoc.org/
9899
.. _nbsphinx: https://nbsphinx.readthedocs.io/
100+
.. _imagemagick: https://www.imagemagick.org/

0 commit comments

Comments
 (0)