From 6eb18df91bd78c474b423d0544a10c685269ed8e Mon Sep 17 00:00:00 2001 From: M Bussonnier Date: Sun, 5 Oct 2025 14:13:50 +0200 Subject: [PATCH] [Docs] Use extension:filetype mapping in sphinx configuration This is possible since sphinx 1.8, and avoid the message: > "Converting `source_suffix = '.rst'` to `source_suffix = {'.rst': 'restructuredtext'}`" at docs build time. See https://www.sphinx-doc.org/en/master/usage/configuration.html\#confv --- docs/conf.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/conf.py b/docs/conf.py index 7ebc8079..a147ff18 100644 --- a/docs/conf.py +++ b/docs/conf.py @@ -65,7 +65,7 @@ def filter(self, record: pylogging.LogRecord) -> bool: # 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 encoding of source files. # source_encoding = 'utf-8-sig'