statmech
statmech copied to clipboard
AttributeError: 'Sphinx' object has no attribute 'override_domain'
Exception occurred: File "/home/miska/repos/statmech/source/numsec.py", line 50, in setup app.override_domain(CustomStandardDomain) AttributeError: 'Sphinx' object has no attribute 'override_domain'
works w/: app.add_domain(CustomStandardDomain, override=True)
You probably need to use an older version of Sphinx. It's been a long time since I generated the text. I used 1.3.1 at the time. An update since then has probably broken compatibility.
FYI, the only change this required to use Sphinx 5.3.0 was to edit source/numsec.py:
def setup(app):
- app.override_domain(CustomStandardDomain)
+ app.add_domain(CustomStandardDomain, override=True)
app.connect('doctree-resolved', doctree_resolved)