[elbe-devel] [PATCH] sphinx: migrate source_suffix to dict

Thomas Weißschuh thomas.weissschuh at linutronix.de
Thu Jul 25 08:55:51 CEST 2024


This has been a dictionary since sphinx 1.8.
Newer versions of sphinx emit a warning.

Signed-off-by: Thomas Weißschuh <thomas.weissschuh at linutronix.de>
---
 docs/conf.py    | 7 +++----
 website/conf.py | 7 +++----
 2 files changed, 6 insertions(+), 8 deletions(-)

diff --git a/docs/conf.py b/docs/conf.py
index 7bb2ad9c4485..70e24db88af8 100644
--- a/docs/conf.py
+++ b/docs/conf.py
@@ -46,10 +46,9 @@ extensions = [
 templates_path = ['_templates']
 
 # The suffix(es) of source filenames.
-# You can specify multiple suffix as a list of string:
-#
-# source_suffix = ['.rst', '.md']
-source_suffix = '.rst'
+source_suffix = {
+    '.rst': 'restructuredtext',
+}
 
 # The master toctree document.
 master_doc = 'index'
diff --git a/website/conf.py b/website/conf.py
index f043ebbcc4a9..736fc43fae23 100644
--- a/website/conf.py
+++ b/website/conf.py
@@ -30,10 +30,9 @@ intersphinx_disabled_reftypes = ['*']
 templates_path = ['_templates']
 
 # The suffix(es) of source filenames.
-# You can specify multiple suffix as a list of string:
-#
-# source_suffix = ['.rst', '.md']
-source_suffix = '.rst'
+source_suffix = {
+    '.rst': 'restructuredtext',
+}
 
 # The master toctree document.
 master_doc = 'index'

---
base-commit: 6085e245520afc3b98edcdc03349b44e47d455b3
change-id: 20240725-sphinx-source_suffix-84e52a1c6bcd

Best regards,
-- 
Thomas Weißschuh <thomas.weissschuh at linutronix.de>



More information about the elbe-devel mailing list