From 03190acf63fcb6a71922d20a864b7846a79dcfac Mon Sep 17 00:00:00 2001 From: Silvio Rhatto Date: Sun, 28 Jan 2018 15:27:57 -0200 Subject: TOC --- conf.py | 14 ++++++++++++++ 1 file changed, 14 insertions(+) (limited to 'conf.py') 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) -- cgit v1.2.3