From f5313af72fcfefdfb67cc76a001008d530fbf908 Mon Sep 17 00:00:00 2001 From: Anders T Fagerli Date: Mon, 24 Mar 2025 09:03:20 +0100 Subject: [PATCH 1/2] Make configuration file explicit Read the Docs has deprecated the use of Sphinx projects without an explicit path to the configuration file. This adds the path to `.readthedocs.yaml`. Read more about this at https://about.readthedocs.com/blog/2024/12/deprecate-config-files-without-sphinx-or-mkdocs-config/. --- .readthedocs.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.readthedocs.yml b/.readthedocs.yml index cbff46a..89fe28c 100644 --- a/.readthedocs.yml +++ b/.readthedocs.yml @@ -15,6 +15,7 @@ python: sphinx: builder: html fail_on_warning: true + configuration: docs/conf.py # Also build PDF & ePub formats: From 83e2b36d21813c59f8ab5c2067f2a62de1339e35 Mon Sep 17 00:00:00 2001 From: Anders T Fagerli Date: Mon, 24 Mar 2025 08:52:48 +0100 Subject: [PATCH 2/2] Remove debug output A number is printed every time Sphinx runs into a subfigure in the build process. This appears as verbose, and can be confusing without further context. --- src/sphinx_subfigure/main.py | 1 - 1 file changed, 1 deletion(-) diff --git a/src/sphinx_subfigure/main.py b/src/sphinx_subfigure/main.py index 377449c..fc12da4 100644 --- a/src/sphinx_subfigure/main.py +++ b/src/sphinx_subfigure/main.py @@ -90,7 +90,6 @@ def run(self) -> list[nodes.Element]: f"item {idx + 1} is neither (line {child.line})" ) - print(number_of_images) layout_string = self.arguments[0] if self.arguments else 1 figure_node["layout"] = {} figure_node["layout"]["default"] = self.generate_layout(