This commit is contained in:
Mouse
2018-05-19 18:45:00 +08:00
parent 58e6b66dd4
commit 6c07fc2fac
4 changed files with 105 additions and 29 deletions

View File

@@ -16,6 +16,11 @@
# import sys
# sys.path.insert(0, os.path.abspath('.'))
from recommonmark.parser import CommonMarkParser
source_parsers = {
'.md': CommonMarkParser,
}
# -- Project information -----------------------------------------------------
@@ -43,13 +48,13 @@ extensions = [
]
# Add any paths that contain templates here, relative to this directory.
templates_path = ['.templates']
templates_path = ['_templates']
# The suffix(es) of source filenames.
# You can specify multiple suffix as a list of string:
#
# source_suffix = ['.rst', '.md']
source_suffix = '.md'
source_suffix = ['.rst', '.md']
# The master toctree document.
master_doc = 'index'
@@ -69,6 +74,8 @@ exclude_patterns = []
# The name of the Pygments (syntax highlighting) style to use.
pygments_style = 'sphinx'
highlight_language = 'java'
# -- Options for HTML output -------------------------------------------------
@@ -86,7 +93,7 @@ html_theme = 'sphinx_rtd_theme'
# 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']
# Custom sidebar templates, must be a dictionary that maps document names
# to template names.
@@ -156,9 +163,4 @@ texinfo_documents = [
]
# -- Extension configuration -------------------------------------------------
from recommonmark.parser import CommonMarkParser
source_parsers = {
'.md': CommonMarkParser,
}
# -- Extension configuration -------------------------------------------------