diff options
author | Silvio Rhatto <rhatto@riseup.net> | 2018-01-28 15:27:57 -0200 |
---|---|---|
committer | Silvio Rhatto <rhatto@riseup.net> | 2018-01-28 15:27:57 -0200 |
commit | 03190acf63fcb6a71922d20a864b7846a79dcfac (patch) | |
tree | c0f336c1c9a91d7a3aa782c13686229313760e9e /conf.py | |
parent | 918c7f25f7020b01dc124600c17271d10deb54ee (diff) | |
download | templates-03190acf63fcb6a71922d20a864b7846a79dcfac.tar.gz templates-03190acf63fcb6a71922d20a864b7846a79dcfac.tar.bz2 |
TOC
Diffstat (limited to 'conf.py')
-rw-r--r-- | conf.py | 14 |
1 files changed, 14 insertions, 0 deletions
@@ -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) |