mirror of
https://github.com/sphinx-doc/sphinx.git
synced 2025-02-25 18:55:22 -06:00
local options handling
This commit is contained in:
@@ -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))
|
||||
|
||||
|
||||
Reference in New Issue
Block a user