Add and configure recommonmark

This commit is contained in:
benjamin melançon 2018-07-22 11:55:35 -04:00
parent addd8b6d14
commit a4f34252a5

12
conf.py
View file

@ -16,6 +16,8 @@
# import sys
# sys.path.insert(0, os.path.abspath('.'))
import recommonmark
from recommonmark.transform import AutoStructify
# -- Project information -----------------------------------------------------
@ -198,3 +200,13 @@ epub_exclude_files = ['search.html']
# If true, `todo` and `todoList` produce output, else they produce nothing.
todo_include_todos = True
# App set-up hook to enable embedding ReStructuredText in Markdown.
def setup(app):
app.add_config_value('recommonmark_config', {
'enable_auto_toc_tree': True,
'auto_toc_tree_section': 'Contents',
'enable_eval_rst': True,
'enable_auto_doc_ref': False,
}, True)
app.add_transform(AutoStructify)