From 063572bbcbaf3d36612b0dbe81369914ccc650f2 Mon Sep 17 00:00:00 2001 From: Bruce Merry Date: Thu, 7 Nov 2024 09:20:14 +0200 Subject: [PATCH] Fix PDF docs build Use sphinxcontrib-svg2pdfconverter to convert SVG images to PDF for inclusion in the PDF build. --- .readthedocs.yml | 1 + doc/conf.py | 1 + requirements-readthedocs.in | 1 + requirements-readthedocs.txt | 1 + 4 files changed, 4 insertions(+) diff --git a/.readthedocs.yml b/.readthedocs.yml index b127f9c13..8cd806dfe 100644 --- a/.readthedocs.yml +++ b/.readthedocs.yml @@ -6,6 +6,7 @@ build: - libboost-dev - libdivide-dev - pdf2svg + - inkscape tools: python: "3.12" python: diff --git a/doc/conf.py b/doc/conf.py index 59c7b5498..60e5fafd2 100644 --- a/doc/conf.py +++ b/doc/conf.py @@ -52,6 +52,7 @@ def get_version(): "sphinx.ext.mathjax", "sphinx.ext.napoleon", "sphinxcontrib.tikz", + "sphinxcontrib.inkscapeconverter", "sphinx_design", "sphinx_rtd_theme", "breathe", diff --git a/requirements-readthedocs.in b/requirements-readthedocs.in index 773f08603..17912a071 100644 --- a/requirements-readthedocs.in +++ b/requirements-readthedocs.in @@ -2,5 +2,6 @@ sphinx sphinx-design sphinx-rtd-theme sphinxcontrib-tikz +sphinxcontrib-svg2pdfconverter breathe -r requirements.txt diff --git a/requirements-readthedocs.txt b/requirements-readthedocs.txt index a48b6975c..7bd7b8291 100644 --- a/requirements-readthedocs.txt +++ b/requirements-readthedocs.txt @@ -40,6 +40,7 @@ sphinxcontrib-jquery==4.1 sphinxcontrib-jsmath==1.0.1 sphinxcontrib-qthelp==2.0.0 sphinxcontrib-serializinghtml==2.0.0 +sphinxcontrib-svg2pdfconverter==1.2.3 sphinxcontrib-tikz==0.4.20 tomli==2.0.2 urllib3==2.2.2