kopia lustrzana https://github.com/jupyterhub/repo2docker
Update recommonmark ocnfiguration
In new versions of SPhinx the way we were configuring the recommonmark extension has become deprecated. This switches us to the new way of configuring it.pull/640/head
rodzic
8d8c21e55e
commit
da9f8de0e3
|
@ -21,8 +21,6 @@
|
||||||
# import sys
|
# import sys
|
||||||
# sys.path.insert(0, os.path.abspath('.'))
|
# sys.path.insert(0, os.path.abspath('.'))
|
||||||
|
|
||||||
# For conversion from markdown to html
|
|
||||||
import recommonmark.parser
|
|
||||||
|
|
||||||
# -- General configuration ------------------------------------------------
|
# -- General configuration ------------------------------------------------
|
||||||
|
|
||||||
|
@ -35,6 +33,7 @@ import recommonmark.parser
|
||||||
# ones.
|
# ones.
|
||||||
extensions = ['sphinx.ext.extlinks',
|
extensions = ['sphinx.ext.extlinks',
|
||||||
'sphinxcontrib.autoprogram',
|
'sphinxcontrib.autoprogram',
|
||||||
|
'recommonmark',
|
||||||
]
|
]
|
||||||
|
|
||||||
extlinks = {
|
extlinks = {
|
||||||
|
@ -46,10 +45,6 @@ extlinks = {
|
||||||
# Add any paths that contain templates here, relative to this directory.
|
# Add any paths that contain templates here, relative to this directory.
|
||||||
templates_path = ['_templates']
|
templates_path = ['_templates']
|
||||||
|
|
||||||
# source parser
|
|
||||||
source_parsers = {
|
|
||||||
'.md': 'recommonmark.parser.CommonMarkParser',
|
|
||||||
}
|
|
||||||
|
|
||||||
from recommonmark.transform import AutoStructify
|
from recommonmark.transform import AutoStructify
|
||||||
|
|
||||||
|
|
Ładowanie…
Reference in New Issue