make documentation sphinx 3.x compatible
This commit is contained in:
parent
2eb9e3bc56
commit
3c558af0cb
@ -51,7 +51,7 @@ extlinks = {
|
|||||||
# Links used for cross-referencing stuff in other documentation
|
# Links used for cross-referencing stuff in other documentation
|
||||||
intersphinx_mapping = {
|
intersphinx_mapping = {
|
||||||
'py': ('https://docs.python.org/3', None),
|
'py': ('https://docs.python.org/3', None),
|
||||||
'aio': ('https://aiohttp.readthedocs.io/en/stable/', None),
|
'aio': ('https://docs.aiohttp.org/en/stable/', None),
|
||||||
'req': ('http://docs.python-requests.org/en/latest/', 'requests.inv')
|
'req': ('http://docs.python-requests.org/en/latest/', 'requests.inv')
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -319,6 +319,6 @@ texinfo_documents = [
|
|||||||
#texinfo_no_detailmenu = False
|
#texinfo_no_detailmenu = False
|
||||||
|
|
||||||
def setup(app):
|
def setup(app):
|
||||||
app.add_javascript('custom.js')
|
app.add_js_file('custom.js')
|
||||||
if app.config.language == 'ja':
|
if app.config.language == 'ja':
|
||||||
app.config.intersphinx_mapping['py'] = ('https://docs.python.org/ja/3', None)
|
app.config.intersphinx_mapping['py'] = ('https://docs.python.org/ja/3', None)
|
||||||
|
@ -107,7 +107,8 @@ def build_lookup_table(env):
|
|||||||
ignored = {
|
ignored = {
|
||||||
'data', 'exception', 'module', 'class',
|
'data', 'exception', 'module', 'class',
|
||||||
}
|
}
|
||||||
for (fullname, (docname, objtype)) in domain.objects.items():
|
|
||||||
|
for (fullname, _, objtype, docname, _, _) in domain.get_objects():
|
||||||
if objtype in ignored:
|
if objtype in ignored:
|
||||||
continue
|
continue
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user