From 6b473199321830170ab1a647a976a7f39b12ba35 Mon Sep 17 00:00:00 2001 From: Elliott Sales de Andrade Date: Fri, 19 Jun 2020 20:48:44 -0400 Subject: [PATCH] DOC: Add svg2pdf converter for generating PDF docs. This is needed in order to build a PDF, as the Zenodo citation images are SVGs. The specified minimum version supports Inkscape 1. --- doc/conf.py | 2 ++ requirements/doc/doc-requirements.txt | 1 + 2 files changed, 3 insertions(+) diff --git a/doc/conf.py b/doc/conf.py index 584e23060dbb..deb22096df2f 100644 --- a/doc/conf.py +++ b/doc/conf.py @@ -48,6 +48,7 @@ 'sphinx_gallery.gen_gallery', 'matplotlib.sphinxext.mathmpl', 'matplotlib.sphinxext.plot_directive', + 'sphinxcontrib.inkscapeconverter', 'sphinxext.custom_roles', 'sphinxext.github', 'sphinxext.math_symbol_table', @@ -69,6 +70,7 @@ def _check_dependencies(): "PIL.Image": 'pillow', "sphinx_copybutton": 'sphinx_copybutton', "sphinx_gallery": 'sphinx_gallery', + "sphinxcontrib.inkscapeconverter": 'sphinxcontrib-svg2pdfconverter', } missing = [] for name in names: diff --git a/requirements/doc/doc-requirements.txt b/requirements/doc/doc-requirements.txt index df54a5bcbfc0..193c888b2f95 100644 --- a/requirements/doc/doc-requirements.txt +++ b/requirements/doc/doc-requirements.txt @@ -12,6 +12,7 @@ colorspacious ipython ipywidgets numpydoc>=0.8 +sphinxcontrib-svg2pdfconverter>=1.1.0 sphinx-gallery>=0.7 sphinx-copybutton scipy