Skip to content

Commit 9354d1f

Browse files
authored
[Docs] Use extension:filetype mapping in sphinx configuration (#1075)
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
1 parent eb96748 commit 9354d1f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/conf.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ def filter(self, record: pylogging.LogRecord) -> bool:
6565
# The suffix(es) of source filenames.
6666
# You can specify multiple suffix as a list of string:
6767
# source_suffix = ['.rst', '.md']
68-
source_suffix = ".rst"
68+
source_suffix = {".rst": "restructuredtext"}
6969

7070
# The encoding of source files.
7171
# source_encoding = 'utf-8-sig'

0 commit comments

Comments
 (0)