Commit d03ae727 authored by yann300's avatar yann300

fix Docs

parent 5a8112d8
...@@ -22,7 +22,6 @@ import os ...@@ -22,7 +22,6 @@ import os
# documentation root, use os.path.abspath to make it absolute, like shown here. # documentation root, use os.path.abspath to make it absolute, like shown here.
sys.path.insert(0, os.path.abspath('.')) sys.path.insert(0, os.path.abspath('.'))
from recommonmark.parser import CommonMarkParser from recommonmark.parser import CommonMarkParser
from recommonmark.transform import AutoStructify
source_parsers = {'.md': CommonMarkParser} source_parsers = {'.md': CommonMarkParser}
# -- General configuration ------------------------------------------------ # -- General configuration ------------------------------------------------
...@@ -294,11 +293,11 @@ texinfo_documents = [ ...@@ -294,11 +293,11 @@ texinfo_documents = [
#texinfo_no_detailmenu = False #texinfo_no_detailmenu = False
# app setup hook # app setup hook
def setup(app): # def setup(app):
app.add_config_value('recommonmark_config', { # app.add_config_value('recommonmark_config', {
'url_resolver': lambda url: github_doc_root + url, # 'url_resolver': lambda url: github_doc_root + url,
'enable_auto_toc_tree': True, # 'enable_auto_toc_tree': True,
'enable_eval_rst': True, # 'enable_eval_rst': True,
'enable_auto_doc_ref': True, # 'enable_auto_doc_ref': True,
}, True) # }, True)
app.add_transform(AutoStructify) # app.add_transform(AutoStructify)
\ No newline at end of file \ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment