Skip to content

Commit 9f7c537

Browse files
StaticRocketpraneethbajjuri
authored andcommitted
chore(conf): switch to new source_suffix syntax
Switch to the new source_suffix definition. Silences the following warning: Converting `source_suffix = '.rst'` to `source_suffix = {'.rst': 'restructuredtext'}`. Signed-off-by: Randolph Sapp <[email protected]>
1 parent f794df0 commit 9f7c537

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

conf.py

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -48,10 +48,11 @@
4848
# Add any paths that contain templates here, relative to this directory.
4949
templates_path = ['_templates']
5050

51-
# The suffix(es) of source filenames.
52-
# You can specify multiple suffix as a list of string:
53-
# source_suffix = ['.rst', '.md']
54-
source_suffix = '.rst'
51+
# A dictionary mapping the file extensions (suffixes) of source files to their file types. Sphinx
52+
# considers all files files with suffixes in source_suffix to be source files.
53+
source_suffix = {
54+
'.rst': 'restructuredtext'
55+
}
5556

5657
# The encoding of source files.
5758
#source_encoding = 'utf-8-sig'

0 commit comments

Comments
 (0)