Add and configure recommonmark
This commit is contained in:
parent
addd8b6d14
commit
a4f34252a5
1 changed files with 12 additions and 0 deletions
12
conf.py
12
conf.py
|
@ -16,6 +16,8 @@
|
||||||
# import sys
|
# import sys
|
||||||
# sys.path.insert(0, os.path.abspath('.'))
|
# sys.path.insert(0, os.path.abspath('.'))
|
||||||
|
|
||||||
|
import recommonmark
|
||||||
|
from recommonmark.transform import AutoStructify
|
||||||
|
|
||||||
# -- Project information -----------------------------------------------------
|
# -- Project information -----------------------------------------------------
|
||||||
|
|
||||||
|
@ -198,3 +200,13 @@ epub_exclude_files = ['search.html']
|
||||||
|
|
||||||
# If true, `todo` and `todoList` produce output, else they produce nothing.
|
# If true, `todo` and `todoList` produce output, else they produce nothing.
|
||||||
todo_include_todos = True
|
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)
|
||||||
|
|
Loading…
Reference in a new issue