mirror of
https://github.com/fmtlib/fmt.git
synced 2024-11-02 11:28:20 +00:00
Switch to JavaScript syntax highlighter
This commit is contained in:
parent
d2ecfcfc45
commit
aafdde7ef8
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
|
||||
- toc.integrate
|
||||
|
||||
extra_javascript:
|
||||
- https://cdnjs.cloudflare.com/ajax/libs/highlight.js/10.7.2/highlight.min.js
|
||||
- fmt.js
|
||||
|
||||
extra_css:
|
||||
- https://cdnjs.cloudflare.com/ajax/libs/highlight.js/10.7.2/styles/default.min.css
|
||||
- fmt.css
|
||||
|
||||
markdown_extensions:
|
||||
- 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
|
||||
line_spans: __span
|
||||
pygments_lang_class: true
|
||||
- pymdownx.inlinehilite
|
||||
- pymdownx.snippets
|
||||
- pymdownx.superfences
|
||||
|
||||
plugins:
|
||||
- mkdocstrings:
|
||||
|
Loading…
Reference in New Issue
Block a user