Skip to content

Commit

Permalink
Update reCommonMark Sphinx integration according to https://www.sphin…
Browse files Browse the repository at this point in the history
  • Loading branch information
ntninja committed May 27, 2018
1 parent e337488 commit 7f85f16
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,13 +44,9 @@
'sphinx.ext.viewcode',
]

import recommonmark
from recommonmark.parser import CommonMarkParser
from recommonmark.transform import AutoStructify

# Use reCommonMark for parsing text documents as MarkDown
source_parsers = {
'.md': CommonMarkParser
'.md': 'recommonmark.parser.CommonMarkParser',
}

# Add any paths that contain templates here, relative to this directory.
Expand Down Expand Up @@ -162,7 +158,7 @@
# Add any paths that contain custom static files (such as style sheets) here,
# relative to this directory. They are copied after the builtin static files,
# so a file named "default.css" will overwrite the builtin "default.css".
html_static_path = ['_static']
#html_static_path = ['_static']

# Add any extra paths that contain custom files (such as robots.txt or
# .htaccess) here, relative to this directory. These files are copied
Expand Down Expand Up @@ -364,6 +360,7 @@

# app setup hook for reCommonMark's AutoStructify
def setup(app):
from recommonmark.transform import AutoStructify
app.add_config_value('recommonmark_config', {
'auto_toc_tree_section': 'Contents',
}, True)
Expand Down

0 comments on commit 7f85f16

Please sign in to comment.