diff options
| author | Scott Shawcroft <scott@chickadee.tech> | 2016-10-19 10:22:31 -0700 |
|---|---|---|
| committer | Scott Shawcroft <scott@chickadee.tech> | 2016-10-19 10:53:37 -0700 |
| commit | 4c9fcd6d2193abe45add192663195a929a57858c (patch) | |
| tree | e96c648a3c40111fa0c12ad3b7c605a7533cdb7c /conf.py | |
| parent | d28b456b319f911c5c7707527706c7075ff1b0e2 (diff) | |
Support markdown.
Diffstat (limited to 'conf.py')
| -rw-r--r-- | conf.py | 5 |
1 files changed, 4 insertions, 1 deletions
@@ -16,6 +16,8 @@ import sys import os +from recommonmark.parser import CommonMarkParser + # If extensions (or modules to document with autodoc) are in another directory, # add these directories to sys.path here. If the directory is relative to the # documentation root, use os.path.abspath to make it absolute, like shown here. @@ -47,7 +49,8 @@ templates_path = ['templates'] # The suffix of source filenames. source_suffix = ['.rst', '.md', '.c', '.h'] -source_parsers = {'.c': "c2rst.CStrip", '.h': "c2rst.CStrip"} +source_parsers = {'.md': CommonMarkParser, + '.c': "c2rst.CStrip", '.h': "c2rst.CStrip"} # The encoding of source files. #source_encoding = 'utf-8-sig' |
