Skip to content
Snippets Groups Projects
Commit a839786e authored by mazenovi's avatar mazenovi
Browse files

fix pygment integration with extract_toc plugin

parent 2762c8af
No related branches found
No related tags found
No related merge requests found
......@@ -95,8 +95,17 @@ THEME = os.path.dirname(os.path.abspath(__file__)) + "/themes/limos"
JINJA_ENVIRONMENT = {'extensions': ['jinja2.ext.i18n']}
PLUGIN_PATHS = [os.path.dirname(os.path.abspath(__file__)) + '/plugins']
# @todo https://github.com/getpelican/pelican-plugins/tree/master/assets
PLUGINS = ['i18n_subsites', 'tag_cloud', 'tipue_search', 'extract_toc', 'math_render']
MARKDOWN = {'extensions': ['toc']}
PLUGINS = ['i18n_subsites', 'tag_cloud', 'tipue_search', 'math_render', 'extract_toc']
# MARKDOWN = {'extensions': ['toc']} # collision with pygment
MARKDOWN = {
'extensions': ['toc'],
'extension_configs': {
'markdown.extensions.codehilite': {'css_class': 'highlight'},
'markdown.extensions.extra': {},
'markdown.extensions.meta': {},
},
'output_format': 'html5',
}
I18N_TEMPLATES_LANG = 'en'
I18N_SUBSITES = {
'fr': {
......
......@@ -6,6 +6,7 @@ setup(
include_package_data=True,
install_requires=[
'pelican',
'pygments',
'markdown',
'beautifulsoup4',
'typogrify'
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment