mirror of
https://github.com/sphinx-doc/sphinx.git
synced 2025-02-25 18:55:22 -06:00
run make check
and correct errors.
This commit is contained in:
parent
45cfb42864
commit
b7629471e5
3
setup.py
3
setup.py
@ -136,7 +136,8 @@ else:
|
||||
|
||||
jscatalog = {}
|
||||
for message in catalog:
|
||||
if any(x[0].endswith(('.js', '.js_t', '.html')) for x in message.locations):
|
||||
if any(x[0].endswith(('.js', '.js_t', '.html'))
|
||||
for x in message.locations):
|
||||
msgid = message.id
|
||||
if isinstance(msgid, (list, tuple)):
|
||||
msgid = msgid[0]
|
||||
|
@ -269,12 +269,14 @@ class Autosummary(Directive):
|
||||
|
||||
# try to also get a source code analyzer for attribute docs
|
||||
try:
|
||||
documenter.analyzer = ModuleAnalyzer.for_module(documenter.get_real_modname())
|
||||
documenter.analyzer = ModuleAnalyzer.for_module(
|
||||
documenter.get_real_modname())
|
||||
# parse right now, to get PycodeErrors on parsing (results will
|
||||
# be cached anyway)
|
||||
documenter.analyzer.find_attr_docs()
|
||||
except PycodeError, err:
|
||||
documenter.env.app.debug('[autodoc] module analyzer failed: %s', err)
|
||||
documenter.env.app.debug(
|
||||
'[autodoc] module analyzer failed: %s', err)
|
||||
# no source file -- e.g. for builtin and C modules
|
||||
documenter.analyzer = None
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user