From 0304f677ca32bc4f046e986a86844e4d03e7beea Mon Sep 17 00:00:00 2001 From: David Smith Date: Thu, 25 Jul 2024 08:26:17 +0100 Subject: [PATCH] Updated Sphinx source_suffix setting to use a mapping. Since Sphinx 1.8 this setting should be a mapping of file extensions to file types. Before this change, Sphinx 8+ would show the following when building docs: Converting `source_suffix = '.txt'` to `source_suffix = {'.txt': 'restructuredtext'}` --- docs/conf.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/conf.py b/docs/conf.py index c36a9a2022..0c633397ac 100644 --- a/docs/conf.py +++ b/docs/conf.py @@ -94,7 +94,7 @@ spelling_warning = True # templates_path = [] # The suffix of source filenames. -source_suffix = ".txt" +source_suffix = {".txt": "restructuredtext"} # The encoding of source files. # source_encoding = 'utf-8-sig'