aboutsummaryrefslogtreecommitdiff
path: root/conf.py
diff options
context:
space:
mode:
Diffstat (limited to 'conf.py')
-rw-r--r--conf.py14
1 files changed, 14 insertions, 0 deletions
diff --git a/conf.py b/conf.py
index a605478..a8aa2d8 100644
--- a/conf.py
+++ b/conf.py
@@ -12,6 +12,8 @@
# serve to show the default.
import sys, os
+import recommonmark
+from recommonmark.transform import AutoStructify
# 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
@@ -291,3 +293,15 @@ epub_copyright = u'2016, Templates'
# Allow duplicate toc entries.
#epub_tocdup = True
+
+# See http://recommonmark.readthedocs.io
+#github_doc_root = 'https://github.com/rtfd/recommonmark/tree/master/doc/'
+def setup(app):
+ app.add_config_value('recommonmark_config', {
+ #'url_resolver': lambda url: github_doc_root + url,
+ 'auto_toc_tree_section': 'Index',
+ 'enable_auto_toc_tree' : True,
+ 'enable_auto_doc_ref' : True,
+ 'enable_eval_rst' : True,
+ }, True)
+ app.add_transform(AutoStructify)