Commit d7e10b5
fix(docs): upgrade pymdown-extensions to 10.21.3 for pygments 2.20.0 compat (#514)
* fix(docs): pin pygments below 2.20 to fix mkdocstrings source-highlight crash
The CD docs build crashed in mkdocstrings source highlighting:
html.escape('NoneType') via pygments 2.20.0's HtmlFormatter, which
escapes the 'filename' option (None for mkdocstrings source blocks)
without guarding None. Pin pygments < 2.20 (resolves to 2.19.2) in the
docs group to restore the build.
Validated locally: full CD docs sequence (vrg-docs-stage +
vrg-docs-patch-nav + mkdocs build) completes cleanly.
The pin is technical debt; revisit/unpin tracked in #513 (records the
broken version and how to validate a fix). Refs #512.
* fix(docs): upgrade pymdown-extensions for pygments 2.20.0 compatibility
Supersedes the previous pygments<2.20 pin on this branch. Pinning
pygments down was a dead end: pygments 2.19.2 carries CVE-2026-4539
(fixed in 2.20.0), so pip-audit blocks it.
The actual incompatibility is pymdown-extensions < 10.21.3 passing
filename=None into pygments' HtmlFormatter, which crashes mkdocstrings
source highlighting on pygments >= 2.20.0. pymdown-extensions 10.21.3
fixes that. So: stay on pygments 2.20.0 (CVE-safe) and floor
pymdown-extensions >= 10.21.3.
Result: docs build is green AND audit is clean; no pinned-down
dependency, so no tech debt (closes the need for #513). Validated locally
via the full CD docs sequence (stage + patch-nav + mkdocs build) and
vrg-validate (incl. pip-audit). Refs #512.
---------
Co-authored-by: Phillip Moore <w.phillip.moore@gmail.com>1 parent 2014630 commit d7e10b5
2 files changed
Lines changed: 13 additions & 6 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
49 | 49 | | |
50 | 50 | | |
51 | 51 | | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
52 | 57 | | |
53 | 58 | | |
54 | 59 | | |
| |||
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
0 commit comments