local exclude-members option fix

This commit is contained in:
root 2020-10-06 08:39:13 +02:00
parent 0476e1cea9
commit 6f78f0b164

View File

@ -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))