I'm getting two warning messages when trying to build my docs with Sphinx v2.1.2
and sphinx-rtd-theme 0.4.3
.
The first one is:
/docs/numsec.py:50: RemovedInSphinx30Warning: app.override_domain() is deprecated. Use app.add_domain() with override option instead.
app.override_domain(CustomStandardDomain)
That section of my numsec.py
looks like:
def setup(app):
app.override_domain(CustomStandardDomain)
app.connect('doctree-resolved', doctree_resolved)
I don't know what override option
means. I've tried replacing that line with app.add_domain()
and app.add_domain(CustomStandardDomain)
but neither works.
The second warning message is:
/miniconda3/envs/py3/lib/python3.7/site-packages/sphinx_rtd_theme/search.html:20: RemovedInSphinx30Warning: To modify script_files in the theme is deprecated. Please insert a <script> tag directly in your theme instead.
{{ super() }}
and I have no idea of to fix this one. Should I just remove the {{ super() }}
line?