summaryrefslogtreecommitdiffstats
path: root/llvm/docs/conf.py
diff options
context:
space:
mode:
authorMichael J. Spencer <bigcheesegs@gmail.com>2018-07-19 23:40:58 +0000
committerMichael J. Spencer <bigcheesegs@gmail.com>2018-07-19 23:40:58 +0000
commit326ffb702acc7a2f9bd870e59af89faaedb680e3 (patch)
treef7039218f2538eb18cbe933d90a8e6a762db3900 /llvm/docs/conf.py
parent4c6568869e8a362f544d1c7996fe7be2c738a64b (diff)
[docs] Add support for Markdown documentation in Sphinx
Differential Revision: https://reviews.llvm.org/D44910 llvm-svn: 337509
Diffstat (limited to 'llvm/docs/conf.py')
-rw-r--r--llvm/docs/conf.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/llvm/docs/conf.py b/llvm/docs/conf.py
index ce7df14ac3af..0fccb50c46b2 100644
--- a/llvm/docs/conf.py
+++ b/llvm/docs/conf.py
@@ -31,7 +31,9 @@ extensions = ['sphinx.ext.intersphinx', 'sphinx.ext.todo']
templates_path = ['_templates']
# The suffix of source filenames.
-source_suffix = '.rst'
+source_suffix = ['.rst', '.md']
+
+source_parsers = {'.md': 'recommonmark.parser.CommonMarkParser'}
# The encoding of source files.
#source_encoding = 'utf-8-sig'