Pandoc, Markdown
This commit is contained in:
parent
caf090e2c1
commit
9ed0a3d3ba
@ -59,7 +59,10 @@ MARKDOWN = {
|
|||||||
'markdown.extensions.codehilite': {'css_class': 'highlight'},
|
'markdown.extensions.codehilite': {'css_class': 'highlight'},
|
||||||
'markdown.extensions.extra': {},
|
'markdown.extensions.extra': {},
|
||||||
'markdown.extensions.meta': {},
|
'markdown.extensions.meta': {},
|
||||||
},
|
'markdown.extensions.toc': {
|
||||||
|
'title': 'Содержание'
|
||||||
|
},
|
||||||
|
} ,
|
||||||
'output_format': 'html5',
|
'output_format': 'html5',
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -77,9 +80,27 @@ I18N_GETTEXT_DOMAIN = 'messages'
|
|||||||
JINJA_ENVIRONMENT = {'extensions': ['jinja2.ext.i18n']}
|
JINJA_ENVIRONMENT = {'extensions': ['jinja2.ext.i18n']}
|
||||||
|
|
||||||
PLUGIN_PATHS = ["plugins/official", "plugins/thirdparty"]
|
PLUGIN_PATHS = ["plugins/official", "plugins/thirdparty"]
|
||||||
PLUGINS = [i18n(), "md-metayaml", "render_math", "series", "subcategory", "tag_cloud", "tipue_search", "pelican-css"]
|
PLUGINS = [i18n(), "pelidoc", "md-metayaml", "render_math", "series", "subcategory", "tag_cloud", "tipue_search", "pelican-css"]
|
||||||
#PLUGINS = ["better_tables", "just_table"]
|
#PLUGINS = ["better_tables", "just_table"]
|
||||||
|
|
||||||
|
PDF_PROCESSOR = True
|
||||||
|
|
||||||
|
PANDOC_OUTPUTS = {
|
||||||
|
'pdf': 'pdf',
|
||||||
|
}
|
||||||
|
|
||||||
|
PANDOC_EXTRA_OPTIONS = [
|
||||||
|
"--toc",
|
||||||
|
"-V", "toc-title:Содержание",
|
||||||
|
"-F", "skip-toc-tag",
|
||||||
|
"--template=wiki",
|
||||||
|
"--pdf-engine=xelatex"
|
||||||
|
]
|
||||||
|
|
||||||
|
PANDOC_MARKDOWN_EXTENSIONS = [
|
||||||
|
"+smart"
|
||||||
|
]
|
||||||
|
|
||||||
#YUICOMPRESSOR_EXECUTABLE = "yui-compressor"
|
#YUICOMPRESSOR_EXECUTABLE = "yui-compressor"
|
||||||
#PLUGINS += ["yuicompressor"]
|
#PLUGINS += ["yuicompressor"]
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user