Skip to content

Conversation

@kdeldycke
Copy link
Contributor

There's an issue that was introduced in #2442 that breaks the Sphinx build. This is a hotfix.

Follow up on #2442
@kdeldycke kdeldycke changed the title Fix Sphinx build Fix Sphinx build and check example file existence May 18, 2024
@kdeldycke
Copy link
Contributor Author

Sorry @Anteru, but an issue was introduced with the #2442 PR you just merged. Which breaks the building of the Sphinx documentation. This PR fixes this.

And also, to prevent the problem to be triggered again, I added a safeguard in the unit tests.

@Anteru
Copy link
Collaborator

Anteru commented May 18, 2024

Good catch, thanks!

@Anteru Anteru merged commit d90b25d into pygments:master May 18, 2024
@kdeldycke kdeldycke deleted the fix-sphinx-build branch May 18, 2024 15:42
@Anteru Anteru added the A-docs area: changes to documentation/docstrings label Jan 5, 2025
@Anteru Anteru added this to the 2.19.0 milestone Jan 5, 2025
yselkowitz added a commit to yselkowitz/pygments that referenced this pull request Jan 13, 2026
"Test the existence of the example file" (commit afd62f5, pygments#2712) caused
the test to search for the example files relative to the import location of
pygments rather than relative to the tests.  In normal in-tree usage there
may be no practical difference, but in downstream packaging there may be.

Resolves: pygments#2992
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

A-docs area: changes to documentation/docstrings

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants