forked from fmtlib/fmt
Switch to JavaScript syntax highlighter
This commit is contained in:
3
doc/fmt.js
Normal file
3
doc/fmt.js
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
document$.subscribe(() => {
|
||||||
|
hljs.highlightAll()
|
||||||
|
})
|
@ -13,17 +13,24 @@ theme:
|
|||||||
- navigation.tabs
|
- navigation.tabs
|
||||||
- toc.integrate
|
- toc.integrate
|
||||||
|
|
||||||
|
extra_javascript:
|
||||||
|
- https://cdnjs.cloudflare.com/ajax/libs/highlight.js/10.7.2/highlight.min.js
|
||||||
|
- fmt.js
|
||||||
|
|
||||||
extra_css:
|
extra_css:
|
||||||
|
- https://cdnjs.cloudflare.com/ajax/libs/highlight.js/10.7.2/styles/default.min.css
|
||||||
- fmt.css
|
- fmt.css
|
||||||
|
|
||||||
markdown_extensions:
|
markdown_extensions:
|
||||||
- pymdownx.highlight:
|
- pymdownx.highlight:
|
||||||
|
# Use JavaScript syntax highlighter instead of Pygments because it
|
||||||
|
# automatically applies to code blocks extracted through Doxygen.
|
||||||
|
use_pygments: false
|
||||||
anchor_linenums: true
|
anchor_linenums: true
|
||||||
line_spans: __span
|
line_spans: __span
|
||||||
pygments_lang_class: true
|
pygments_lang_class: true
|
||||||
- pymdownx.inlinehilite
|
- pymdownx.inlinehilite
|
||||||
- pymdownx.snippets
|
- pymdownx.snippets
|
||||||
- pymdownx.superfences
|
|
||||||
|
|
||||||
plugins:
|
plugins:
|
||||||
- mkdocstrings:
|
- mkdocstrings:
|
||||||
|
Reference in New Issue
Block a user