Skip to content

Commit 4dcef0a

Browse files
committed
fix local Sphinx build which was not parsing Markdown any more
1 parent ef1eda9 commit 4dcef0a

File tree

1 file changed

+7
-5
lines changed

1 file changed

+7
-5
lines changed

sphinx/conf.py

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@
1515
import sys
1616
import os
1717
import sphinx_readable_theme
18+
from recommonmark.parser import CommonMarkParser
1819

1920
# If extensions (or modules to document with autodoc) are in another directory,
2021
# add these directories to sys.path here. If the directory is relative to the
@@ -32,6 +33,7 @@
3233
extensions = [
3334
'sphinx.ext.autodoc',
3435
'sphinx.ext.viewcode',
36+
'recommonmark'
3537
]
3638

3739
# Add any paths that contain templates here, relative to this directory.
@@ -48,7 +50,7 @@
4850

4951
# General information about the project.
5052
project = u'pyowm'
51-
copyright = u'2018, Claudio Sparpaglione'
53+
copyright = u'2020, Claudio Sparpaglione'
5254

5355
# The version info for the project you're documenting, acts as replacement for
5456
# |version| and |release|, also used in various other places throughout the
@@ -132,7 +134,7 @@
132134
# Add any paths that contain custom static files (such as style sheets) here,
133135
# relative to this directory. They are copied after the builtin static files,
134136
# so a file named "default.css" will overwrite the builtin "default.css".
135-
html_static_path = ['_static']
137+
html_static_path = []
136138

137139
# Add any extra paths that contain custom files (such as robots.txt or
138140
# .htaccess) here, relative to this directory. These files are copied
@@ -269,7 +271,7 @@
269271
epub_title = u'pyowm'
270272
epub_author = u'Claudio Sparpaglione'
271273
epub_publisher = u'Claudio Sparpaglione'
272-
epub_copyright = u'2018, Claudio Sparpaglione'
274+
epub_copyright = u'2020, Claudio Sparpaglione'
273275

274276
# The basename for the epub file. It defaults to the project name.
275277
#epub_basename = u'pyowm'
@@ -334,5 +336,5 @@
334336

335337

336338
source_parsers = {
337-
'.md': 'recommonmark.parser.CommonMarkParser',
338-
}
339+
'.md': CommonMarkParser,
340+
}

0 commit comments

Comments
 (0)