3
0
Fork 0
mirror of https://github.com/YosysHQ/yosys synced 2025-11-23 06:01:27 +00:00

Docs: Fix cell option_spec inheritance

Doesn't actually resolve the `:noindex:` failure, which is how I discovered the option wasn't being inherited, but it is a step in the right direction.
This commit is contained in:
Krystine Sherwin 2025-11-22 15:39:22 +13:00
parent 39e3e39241
commit 069f6ef348
No known key found for this signature in database
2 changed files with 7 additions and 5 deletions

View file

@ -41,12 +41,13 @@ class YosysCellGroupDocumenter(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,
}
})
__cell_lib: dict[str, list[str] | dict[str]] | None = None
@property

View file

@ -246,11 +246,12 @@ class CellNode(TocNode):
name = 'cell'
option_spec = {
option_spec = TocNode.option_spec.copy()
option_spec.update({
'title': directives.unchanged,
'ports': directives.unchanged,
'properties': directives.unchanged,
}
})
doc_field_types = [
CellGroupedField('props', label='Properties', rolename='prop',