mirror of
https://github.com/saltstack/salt.git
synced 2025-04-17 10:10:20 +00:00
Skip mod_init when running autodoc, #1282
This commit is contained in:
parent
02de3e9d60
commit
a3507abe49
1 changed files with 11 additions and 0 deletions
11
doc/conf.py
11
doc/conf.py
|
@ -2,6 +2,7 @@
|
|||
|
||||
import sys
|
||||
import os
|
||||
import types
|
||||
|
||||
class Mock(object):
|
||||
'''
|
||||
|
@ -188,3 +189,13 @@ epub_scheme = 'URL'
|
|||
epub_identifier = 'http://saltstack.org/'
|
||||
|
||||
#epub_tocdepth = 3
|
||||
|
||||
|
||||
def skip_mod_init_member(app, what, name, obj, skip, options):
|
||||
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