Skip to content

Commit 8ea00c1

Browse files
committed
try fix svgs in pdf in rtd build
1 parent 69b0b47 commit 8ea00c1

File tree

4 files changed

+102
-1
lines changed

4 files changed

+102
-1
lines changed

doc/.readthedocs.yaml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,11 @@ build:
1010
os: ubuntu-22.04
1111
tools:
1212
python: "3.12"
13+
apt_packages:
14+
- libcairo2
15+
- libpango-1.0-0
16+
- libgdk-pixbuf2.0-0
17+
- libffi-dev
1318
jobs:
1419
post_install:
1520
- pip install uv

doc/source/conf.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,9 +53,12 @@
5353
'sphinxcontrib.typer',
5454
'sphinx_tabs.tabs',
5555
"sphinx.ext.viewcode",
56-
'sphinx.ext.intersphinx'
56+
'sphinx.ext.intersphinx',
57+
'sphinxcontrib.cairosvgconverter', # this is the package’s module name
5758
]
5859

60+
svg2pdf_converter = ("cairosvg",)
61+
5962
# Add any paths that contain templates here, relative to this directory.
6063
templates_path = ['_templates']
6164

pyproject.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -198,6 +198,7 @@ docs = [
198198
"sphinx-autobuild>=2024.10.3",
199199
"sphinx-tabs>=3.4.7",
200200
"sphinxcontrib-django>=2.5",
201+
"sphinxcontrib-svg2pdfconverter[cairosvg]>=1.3.0",
201202
"sphinxcontrib-typer[png]>=0.5.1",
202203
]
203204
profiling = [

uv.lock

Lines changed: 92 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)