3
0
Fork 0
mirror of https://github.com/YosysHQ/yosys synced 2025-07-26 22:17:55 +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:
Krystine Sherwin 2025-07-21 10:35:57 +12:00
parent 2e5b029ba5
commit 726a30fe37
No known key found for this signature in database

View file

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