[llvm] 9989e81 - [Sphinx] Adjust for source_parsers deprecation in Sphinx 3.0

Jonas Devlieghere via llvm-commits llvm-commits at lists.llvm.org
Thu Jun 18 14:05:18 PDT 2020


Author: Jonas Devlieghere
Date: 2020-06-18T14:05:11-07:00
New Revision: 9989e81679580012054811d9106345fcde68c11f

URL: https://github.com/llvm/llvm-project/commit/9989e81679580012054811d9106345fcde68c11f
DIFF: https://github.com/llvm/llvm-project/commit/9989e81679580012054811d9106345fcde68c11f.diff

LOG: [Sphinx] Adjust for source_parsers deprecation in Sphinx 3.0

Update the Sphinx configuration for the removal of source_parsers in
Sphinx 3.0. The variable has been deprecated since version 1.8.

> Version 1.8 deprecates and version 3.0 removes the source_parsers
> configuration variable that was used by older recommonmark versions.

https://www.sphinx-doc.org/en/master/usage/markdown.html

Differential revision: https://reviews.llvm.org/D75284

Added: 
    

Modified: 
    llvm/docs/conf.py

Removed: 
    


################################################################################
diff  --git a/llvm/docs/conf.py b/llvm/docs/conf.py
index c92ede3ea44b..13bbc826de86 100644
--- a/llvm/docs/conf.py
+++ b/llvm/docs/conf.py
@@ -26,15 +26,16 @@
 
 # Add any Sphinx extension module names here, as strings. They can be extensions
 # coming with Sphinx (named 'sphinx.ext.*') or your custom ones.
-extensions = ['sphinx.ext.intersphinx', 'sphinx.ext.todo']
+extensions = ['sphinx.ext.intersphinx', 'sphinx.ext.todo', 'recommonmark']
 
 # Add any paths that contain templates here, relative to this directory.
 templates_path = ['_templates']
 
 # The suffix of source filenames.
-source_suffix = ['.rst', '.md']
-
-source_parsers = {'.md': 'recommonmark.parser.CommonMarkParser'}
+source_suffix = {
+    '.rst': 'restructuredtext',
+    '.md': 'markdown',
+}
 
 # The encoding of source files.
 #source_encoding = 'utf-8-sig'


        


More information about the llvm-commits mailing list