Documentation (#6937)

This is consistent with how we fetch Mermaid.js and automatically picks
the latest minor version.
This commit is contained in:
Dr. Vedran Miletić 2024-05-05 11:47:08 +02:00 committed by GitHub
parent 05661a1562
commit 0de8be26f8
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 7 additions and 7 deletions

View File

@ -387,7 +387,7 @@ external assets for different origins:
plugins: plugins:
- privacy: - privacy:
assets_exclude: # (1)! assets_exclude: # (1)!
- cdn.jsdelivr.net/npm/mathjax@3/* - unpkg.com/mathjax@3/*
- giscus.app/* - giscus.app/*
``` ```

View File

@ -65,7 +65,7 @@ to your `mkdocs.yml`.
extra_javascript: extra_javascript:
- javascripts/mathjax.js - javascripts/mathjax.js
- https://polyfill.io/v3/polyfill.min.js?features=es6 - https://polyfill.io/v3/polyfill.min.js?features=es6
- https://cdn.jsdelivr.net/npm/mathjax@3/es5/tex-mml-chtml.js - https://unpkg.com/mathjax@3/es5/tex-mml-chtml.js
``` ```
See additional configuration options: See additional configuration options:
@ -76,7 +76,7 @@ See additional configuration options:
[instant loading]: ../setup/setting-up-navigation.md#instant-loading [instant loading]: ../setup/setting-up-navigation.md#instant-loading
<script src="https://polyfill.io/v3/polyfill.min.js?features=es6"></script> <script src="https://polyfill.io/v3/polyfill.min.js?features=es6"></script>
<script id="MathJax-script" async src="https://cdn.jsdelivr.net/npm/mathjax@3/es5/tex-mml-chtml.js"></script> <script id="MathJax-script" async src="https://unpkg.com/mathjax@3/es5/tex-mml-chtml.js"></script>
<script> <script>
window.MathJax = { window.MathJax = {
tex: { tex: {
@ -124,11 +124,11 @@ supports a subset of LaTeX syntax and can render math to HTML and SVG. To use
extra_javascript: extra_javascript:
- javascripts/katex.js - javascripts/katex.js
- https://cdnjs.cloudflare.com/ajax/libs/KaTeX/0.16.7/katex.min.js - https://unpkg.com/katex@0/dist/katex.min.js
- https://cdnjs.cloudflare.com/ajax/libs/KaTeX/0.16.7/contrib/auto-render.min.js - https://unpkg.com/katex@0/dist/contrib/auto-render.min.js
extra_css: extra_css:
- https://cdnjs.cloudflare.com/ajax/libs/KaTeX/0.16.7/katex.min.css - https://unpkg.com/katex@0/dist/katex.min.css
``` ```
## Usage ## Usage

View File

@ -70,7 +70,7 @@ of [additional JavaScript]:
extra_javascript: extra_javascript:
- javascripts/mathjax.js - javascripts/mathjax.js
- https://polyfill.io/v3/polyfill.min.js?features=es6 - https://polyfill.io/v3/polyfill.min.js?features=es6
- https://cdn.jsdelivr.net/npm/mathjax@3/es5/tex-mml-chtml.js - https://unpkg.com/mathjax@3/es5/tex-mml-chtml.js
``` ```
The other configuration options of this extension are not officially supported The other configuration options of this extension are not officially supported