mirror of
https://github.com/YosysHQ/yosys
synced 2025-04-25 01:55:33 +00:00
cmd_documenter: Fix option_spec
Need to copy parent class `option_spec` to retain default options (e.g. `:noindex:`).
This commit is contained in:
parent
07b6a35553
commit
97b9a4c095
1 changed files with 3 additions and 2 deletions
|
@ -82,12 +82,13 @@ class YosysCmdGroupDocumenter(Documenter):
|
|||
object: tuple[str, list[str]]
|
||||
lib_key = 'groups'
|
||||
|
||||
option_spec = {
|
||||
option_spec = Documenter.option_spec.copy()
|
||||
option_spec.update({
|
||||
'caption': autodoc.annotation_option,
|
||||
'members': autodoc.members_option,
|
||||
'source': autodoc.bool_option,
|
||||
'linenos': autodoc.bool_option,
|
||||
}
|
||||
})
|
||||
|
||||
__cmd_lib: dict[str, list[str] | dict[str]] | None = None
|
||||
@property
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue