mirror of
https://github.com/saltstack/salt.git
synced 2025-04-17 10:10:20 +00:00
Fixed including functions beginning with underscores in autodoc output
This commit is contained in:
parent
6c770e3d44
commit
d389f162da
1 changed files with 2 additions and 2 deletions
|
@ -189,12 +189,12 @@ epub_identifier = 'http://saltstack.org/'
|
|||
|
||||
#epub_tocdepth = 3
|
||||
|
||||
|
||||
def skip_mod_init_member(app, what, name, obj, skip, options):
|
||||
if name.startswith('_'):
|
||||
return True
|
||||
if isinstance(obj, types.FunctionType) and obj.__name__ == 'mod_init':
|
||||
return True
|
||||
return False
|
||||
|
||||
|
||||
def setup(app):
|
||||
app.connect('autodoc-skip-member', skip_mod_init_member)
|
||||
|
|
Loading…
Add table
Reference in a new issue