diff options
author | pbudzyns <pawel.budzynski@cern.ch> | 2021-01-25 13:15:13 +0100 |
---|---|---|
committer | pbudzyns <pawel.budzynski@cern.ch> | 2021-01-25 13:15:13 +0100 |
commit | 7348ba8d60f17c746732fb2387fa8d71cf8f4f2a (patch) | |
tree | 80d73cce5fb4d306356e2e03777a251afafe7580 /sphinx/ext/autodoc/directive.py | |
parent | 0a85b4148e272a5ec91abdb53b1a710891db2899 (diff) | |
download | sphinx-git-7348ba8d60f17c746732fb2387fa8d71cf8f4f2a.tar.gz |
add more extendable options and tests
Diffstat (limited to 'sphinx/ext/autodoc/directive.py')
-rw-r--r-- | sphinx/ext/autodoc/directive.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/sphinx/ext/autodoc/directive.py b/sphinx/ext/autodoc/directive.py index dfac5e0e6..32adc342d 100644 --- a/sphinx/ext/autodoc/directive.py +++ b/sphinx/ext/autodoc/directive.py @@ -87,7 +87,8 @@ def process_documenter_options(documenter: "Type[Documenter]", config: Config, o negated = options.pop('no-' + name, True) is None if name in config.autodoc_default_options and not negated: if name in options: - # take value from options if present or extend it with autodoc_default_options if necessary + # take value from options if present or extend it + # with autodoc_default_options if necessary if name in AUTODOC_EXTENDABLE_OPTIONS: if options[name] is not None and options[name].startswith('+'): options[name] = ','.join([config.autodoc_default_options[name], |