mirror of
https://github.com/mkdocs/mkdocs.git
synced 2026-03-27 09:58:31 +07:00
Highlight.js style declaration in readthedocs theme (#3199)
Co-authored-by: Oleh Prypin <oleh@pryp.in>
This commit is contained in:
@@ -128,6 +128,7 @@ class ConfigTests(unittest.TestCase):
|
||||
'analytics': {'anonymize_ip': False, 'gtag': None},
|
||||
'highlightjs': True,
|
||||
'hljs_languages': [],
|
||||
'hljs_style': 'github',
|
||||
'include_homepage_in_sidebar': True,
|
||||
'prev_next_buttons_location': 'bottom',
|
||||
'navigation_depth': 4,
|
||||
@@ -148,6 +149,7 @@ class ConfigTests(unittest.TestCase):
|
||||
'analytics': {'anonymize_ip': False, 'gtag': None},
|
||||
'highlightjs': True,
|
||||
'hljs_languages': [],
|
||||
'hljs_style': 'github',
|
||||
'include_homepage_in_sidebar': True,
|
||||
'prev_next_buttons_location': 'bottom',
|
||||
'navigation_depth': 4,
|
||||
@@ -173,6 +175,7 @@ class ConfigTests(unittest.TestCase):
|
||||
'analytics': {'anonymize_ip': False, 'gtag': None},
|
||||
'highlightjs': True,
|
||||
'hljs_languages': [],
|
||||
'hljs_style': 'github',
|
||||
'include_homepage_in_sidebar': True,
|
||||
'prev_next_buttons_location': 'bottom',
|
||||
'navigation_depth': 4,
|
||||
|
||||
@@ -23,7 +23,7 @@
|
||||
<link rel="stylesheet" href="{{ 'css/theme.css'|url }}" />
|
||||
<link rel="stylesheet" href="{{ 'css/theme_extra.css'|url }}" />
|
||||
{%- if config.theme.highlightjs %}
|
||||
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/10.5.0/styles/github.min.css" />
|
||||
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/10.5.0/styles/{{ config.theme.hljs_style }}.min.css" />
|
||||
{%- endif %}
|
||||
{%- for path in extra_css %}
|
||||
<link href="{{ path }}" rel="stylesheet" />
|
||||
|
||||
@@ -10,6 +10,7 @@ search_index_only: false
|
||||
|
||||
highlightjs: true
|
||||
hljs_languages: []
|
||||
hljs_style: github
|
||||
|
||||
analytics:
|
||||
gtag: null
|
||||
|
||||
Reference in New Issue
Block a user