Skip to content

fix(docs): pin pygments to 2.19.2 and keep syntax highlighting#5854

Open
lafirm wants to merge 2 commits into
SQLMesh:mainfrom
lafirm:fix/docs-build-error
Open

fix(docs): pin pygments to 2.19.2 and keep syntax highlighting#5854
lafirm wants to merge 2 commits into
SQLMesh:mainfrom
lafirm:fix/docs-build-error

Conversation

@lafirm

@lafirm lafirm commented Jun 20, 2026

Copy link
Copy Markdown
Contributor

Description

Closes #5853

Fixes the docs build failure by pinning pygments to 2.19.2 (prior to buggy version 2.20.0) in the docs dependency set, instead of disabling pygments globally (by updating mkdocs.yml)

# alternate fix by disabling pygments
  - pymdownx.highlight:
      anchor_linenums: true
      use_pygments: false

Problem

  • Builds started failing with a pymdownx highlight to pygments HTML formatter error after dependency resolution moved to pygments 2.20.0.
  • Pinning to 2.19.2 restores stable builds while preserving code-block highlighting and related formatting behaviour.
  • This is a lower-impact fix than turning highlighting off globally.

What changed

  • Pinned pygments to 2.19.2 (below 2.20.0) in docs dependencies to keep syntax-highlighting behaviour enabled

Related Links

Checklist

  • I have run make style and fixed any issues
  • I have added tests for my changes (if applicable)
  • All existing tests pass (make fast-test)
  • My commits are signed off (git commit -s) per the DCO

lafirm added 2 commits June 20, 2026 11:50
Signed-off-by: lafirm <136463254+lafirm@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Docs build has been failing

1 participant