Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: support for sphinx v8.1.0 #393

Merged
merged 2 commits into from
Oct 11, 2024
Merged

fix: support for sphinx v8.1.0 #393

merged 2 commits into from
Oct 11, 2024

Conversation

2bndy5
Copy link
Collaborator

@2bndy5 2bndy5 commented Oct 11, 2024

Originally raised in #392 about Math domain. This adds type inference for monkey patched domain merge functions.

Offending commits in sphinx v8.1.0:

Novakov and others added 2 commits October 11, 2024 01:38
Sphinx 8.1.0 removed import of MathDomain into sphinx.ext.mathjax
that resulted in sphinx-immaterial crashing with ImportError. Replaced
with import from actual package that defines MathDomain.

Sphinx seems to be moving away from using get_domain to get domain
instances, however it is available only from versions >=8.1.0, so I left
get_domain call as it is currently.

Verified to work with Sphinx 8.0.2 and 8.1.0 but I'm not using mathjax
domain.
@2bndy5 2bndy5 added the bug Something isn't working label Oct 11, 2024
@2bndy5 2bndy5 requested a review from jbms October 11, 2024 09:03
Copy link

codecov bot commented Oct 11, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 81.46%. Comparing base (0aabb88) to head (e60af92).
Report is 4 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main     #393      +/-   ##
==========================================
+ Coverage   81.38%   81.46%   +0.08%     
==========================================
  Files          68       68              
  Lines        8674     8675       +1     
==========================================
+ Hits         7059     7067       +8     
+ Misses       1615     1608       -7     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@2bndy5 2bndy5 linked an issue Oct 11, 2024 that may be closed by this pull request
@2bndy5 2bndy5 merged commit da75ebe into main Oct 11, 2024
26 checks passed
@2bndy5 2bndy5 deleted the fix-sphinx-8.1.0 branch October 11, 2024 20:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Theme broken with Sphinx 8.1.0
3 participants