Skip to content

Commit

Permalink
🔧 Minor fix for sphinx 8.2 compat (#1013)
Browse files Browse the repository at this point in the history
closes #1010
  • Loading branch information
chrisjsewell authored Jan 13, 2025
1 parent 0437558 commit fbb7f1d
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 2 deletions.
1 change: 1 addition & 0 deletions .readthedocs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,5 +14,6 @@ python:
- rtd

sphinx:
configuration: docs/conf.py
builder: html
fail_on_warning: true
5 changes: 3 additions & 2 deletions myst_parser/mdit_to_docutils/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -716,8 +716,9 @@ def render_fence(self, token: SyntaxTreeNode) -> None:
if not name and self.sphinx_env is not None:
# use the current highlight setting, via the ``highlight`` directive,
# or ``highlight_language`` configuration.
name = self.sphinx_env.temp_data.get(
"highlight_language", self.sphinx_env.config.highlight_language
name = (
self.sphinx_env.temp_data.get("highlight_language")
or self.sphinx_env.config.highlight_language
)

lineno_start = 1
Expand Down
1 change: 1 addition & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,7 @@ testing = [
"pytest-regressions",
"pytest-param-files~=0.6.0",
"sphinx-pytest",
"pygments<2.19", # TODO fix test regression with 2.19"
]
testing-docutils = [
"pygments",
Expand Down

0 comments on commit fbb7f1d

Please sign in to comment.