diff options
author | pbudzyns <pawel.budzynski@cern.ch> | 2021-01-29 12:34:05 +0300 |
---|---|---|
committer | pbudzyns <pawel.budzynski@cern.ch> | 2021-01-29 12:34:05 +0300 |
commit | 28a37c29369c9065c3df3104c42407b6fbd48aaa (patch) | |
tree | 6c002224b02c42156a1888d7b55233b0146a4881 /sphinx/ext | |
parent | ac5079ed851585acb754ce5fb1c8c486de60d6f6 (diff) |
local options handling
Diffstat (limited to 'sphinx/ext')
-rw-r--r-- | sphinx/ext/autodoc/directive.py | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/sphinx/ext/autodoc/directive.py b/sphinx/ext/autodoc/directive.py index 2c82122fc..5f1db2ebb 100644 --- a/sphinx/ext/autodoc/directive.py +++ b/sphinx/ext/autodoc/directive.py @@ -93,13 +93,12 @@ def process_documenter_options(documenter: "Type[Documenter]", config: Config, o if options[name] is not None and options[name].startswith('+'): options[name] = ','.join([config.autodoc_default_options[name], options[name][1:]]) - print(options[name]) else: options[name] = config.autodoc_default_options[name] elif isinstance(options.get(name), str) and options[name].startswith('+'): # remove '+' from option argument if there's nothing to merge it with - options[name] = options[name][1:] + options[name] = options[name].strip('+') return Options(assemble_option_dict(options.items(), documenter.option_spec)) |