|
|
@ -85,3 +85,17 @@ source_suffix = { |
|
|
|
'.rst': 'restructuredtext', |
|
|
|
'.md': 'markdown', |
|
|
|
} |
|
|
|
|
|
|
|
# Autodoc má ignorovat některé moduly |
|
|
|
# Ref: https://www.sphinx-doc.org/en/master/usage/extensions/autodoc.html#event-autodoc-skip-member |
|
|
|
# Kudos: https://stackoverflow.com/a/21449475/ |
|
|
|
def ignorovat(app, what, name. obj, skip, options): |
|
|
|
blacklist = ( |
|
|
|
# typ (what), name |
|
|
|
('module', 'settings.mamweb_prod'), |
|
|
|
) |
|
|
|
ignore = (what, name) in blacklist |
|
|
|
return True if ignore else None |
|
|
|
|
|
|
|
def setup(app): |
|
|
|
app.connect('autodoc-skip-member', ignorovat) |
|
|
|