@tduncan / Nvidia-Optimization-Stack-VLLM Mirror · read-only / commits / 6dab89b8ec
Fork 0

A high-throughput and memory-efficient inference and serving engine for LLMs

Mirrored from https://github.com/tduncan-lum/Nvidia-Optimization-Stack---VLLM.git

Synced Nov 14, 05:30 UTC

[Docs] Fix math rendering in docs (#23676)

Signed-off-by: Harry Mellor <19981378+hmellor@users.noreply.github.com>

Harry Mellor committed Aug 27, 2025 at 02:47 UTC 6dab89b8ece7e022bd3df5774c9ddf309e2eb2d9
3 files changed +24 -4
docs/mkdocs/javascript/mathjax.js new
+20
@@ -0,0 +1,20 @@
1 +// Enables MathJax rendering
2 +window.MathJax = {
3 + tex: {
4 + inlineMath: [["\\(", "\\)"]],
5 + displayMath: [["\\[", "\\]"]],
6 + processEscapes: true,
7 + processEnvironments: true
8 + },
9 + options: {
10 + ignoreHtmlClass: ".*|",
11 + processHtmlClass: "arithmatex"
12 + }
13 +};
14 +
15 +document$.subscribe(() => {
16 + MathJax.startup.output.clearCache()
17 + MathJax.typesetClear()
18 + MathJax.texReset()
19 + MathJax.typesetPromise()
20 +})
mkdocs.yaml
+4 -3
@@ -129,15 +129,16 @@ markdown_extensions:
129 - toc:
130 permalink: true
131 # For math rendering
132 - - mdx_math:
133 - enable_dollar_delimiter: true
132 + - pymdownx.arithmatex:
133 + generic: true
134
135 extra_css:
136 - mkdocs/stylesheets/extra.css
137
138 extra_javascript:
139 - mkdocs/javascript/run_llm_widget.js
140 - - https://cdn.mathjax.org/mathjax/latest/MathJax.js?config=TeX-AMS_HTML
140 + - mkdocs/javascript/mathjax.js
141 + - https://unpkg.com/mathjax@3.2.2/es5/tex-mml-chtml.js
142 - mkdocs/javascript/edit_and_feedback.js
143 - mkdocs/javascript/slack_and_forum.js
144
requirements/docs.txt
-1
@@ -7,7 +7,6 @@ mkdocs-awesome-nav
7 mkdocs-glightbox
8 mkdocs-git-revision-date-localized-plugin
9 mkdocs-minify-plugin
10 -python-markdown-math
10 regex
11 ruff
12