statmech icon indicating copy to clipboard operation
statmech copied to clipboard

AttributeError: 'Sphinx' object has no attribute 'override_domain'

Open misakadam97 opened this issue 3 years ago • 2 comments

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)

misakadam97 avatar Dec 31 '22 03:12 misakadam97

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.

peastman avatar Jan 02 '23 19:01 peastman

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)

djoshea avatar Mar 14 '24 21:03 djoshea