mirror of
https://github.com/sphinx-doc/sphinx.git
synced 2025-02-25 18:55:22 -06:00
local exclude-members option fix
This commit is contained in:
parent
0476e1cea9
commit
6f78f0b164
@ -84,7 +84,12 @@ def process_documenter_options(documenter: "Type[Documenter]", config: Config, o
|
||||
else:
|
||||
negated = options.pop('no-' + name, True) is None
|
||||
if name in config.autodoc_default_options and not negated:
|
||||
options[name] = config.autodoc_default_options[name]
|
||||
if name == "exclude-members":
|
||||
if config.autodoc_default_options[name]:
|
||||
options[name] = config.autodoc_default_options[name] \
|
||||
+ options.get(name, '')
|
||||
else:
|
||||
options[name] = config.autodoc_default_options[name]
|
||||
|
||||
return Options(assemble_option_dict(options.items(), documenter.option_spec))
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user