Skip to content

Commit

Permalink
Remove pygments pin (#15404)
Browse files Browse the repository at this point in the history
## Summary

The recent release of Pygments
([2.19.1](https://github.com/pygments/pygments/releases/tag/2.19.1))
allows the pinned version to be removed as the PYI alias for Python
syntax highlighting has been removed.

## Test Plan

- Follow the steps outlined in
https://github.com/astral-sh/ruff/blob/main/CONTRIBUTING.md#mkdocs to
get the documentation site running locally.
- Spot test rules pages that have PYI code blocks to ensure that syntax
highlighting remains e.g.
[http://127.0.0.1:8000/ruff/rules/complex-if-statement-in-stub/](http://127.0.0.1:8000/ruff/rules/complex-if-statement-in-stub/).

**Note:** I am unable to test the insiders build but would assume that
it functions locally as I do not have access to MkDocs Insiders, but I
would like to assume that it functions in the same way as the
non-insiders build.
  • Loading branch information
calumy authored Jan 10, 2025
1 parent 6b98a26 commit adca7bd
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 6 deletions.
3 changes: 0 additions & 3 deletions docs/requirements-insiders.txt
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,3 @@ mkdocs-material @ git+ssh://[email protected]/astral-sh/mkdocs-material-insiders.gi
mkdocs-redirects==1.2.2
mdformat==0.7.21
mdformat-mkdocs==4.1.1
# Using a commit from pygments main branch so we get
# https://github.com/pygments/pygments/pull/2773 before it's been released
pygments @ git+https://github.com/pygments/pygments.git@67b460fdde6d9a00342b5102b37b3a8399f0e8ef
3 changes: 0 additions & 3 deletions docs/requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,3 @@ mkdocs-material==9.5.38
mkdocs-redirects==1.2.2
mdformat==0.7.21
mdformat-mkdocs==4.1.1
# Using a commit from pygments main branch so we get
# https://github.com/pygments/pygments/pull/2773 before it's been released
pygments @ git+https://github.com/pygments/pygments.git@67b460fdde6d9a00342b5102b37b3a8399f0e8ef

0 comments on commit adca7bd

Please sign in to comment.