From 8893d1365571f03f7e7e7f75970fa20a798ab8ca Mon Sep 17 00:00:00 2001 From: TG Date: Mon, 27 Jan 2025 16:21:55 +0100 Subject: [PATCH 1/2] Use rsvgconverter sphinx extension to convert svg to pdf --- docs/source/conf.py | 4 +++- docs/source/requirements.txt | 1 + 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/docs/source/conf.py b/docs/source/conf.py index 6036d28..565663d 100644 --- a/docs/source/conf.py +++ b/docs/source/conf.py @@ -13,7 +13,9 @@ author = 'YosysHQ' # -- General configuration --------------------------------------------------- # https://www.sphinx-doc.org/en/master/usage/configuration.html#general-configuration -extensions = ['sphinx_rtd_theme'] +extensions = ['sphinx_rtd_theme', + 'sphinxcontrib.rsvgconverter' + ] templates_path = ['_templates'] exclude_patterns = [] diff --git a/docs/source/requirements.txt b/docs/source/requirements.txt index f2db166..0137505 100644 --- a/docs/source/requirements.txt +++ b/docs/source/requirements.txt @@ -1,2 +1,3 @@ sphinx sphinx_rtd_theme +sphinxcontrib-svg2pdfconverter From 213d116050410a9e83166c8f88965183396f32d8 Mon Sep 17 00:00:00 2001 From: TG Date: Mon, 27 Jan 2025 16:22:50 +0100 Subject: [PATCH 2/2] Use Lualatex instead of plain pdfatex --- docs/source/conf.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/docs/source/conf.py b/docs/source/conf.py index 565663d..1d22dbf 100644 --- a/docs/source/conf.py +++ b/docs/source/conf.py @@ -33,3 +33,5 @@ html_theme_options = { "titles_only": False } html_static_path = ['_static'] + +latex_engine = 'lualatex'