Skip to content

Commit 5f50731

Browse files
authored
Merge pull request #6 from subnyquist/node-name-in-heading
Use RDL name as heading if it is set
2 parents 3937f53 + a7e3503 commit 5f50731

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

src/sphinx_peakrdl/directives/docnode.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -200,8 +200,7 @@ def make_rdl_node_doc(self, rdl_node: Node) -> Sequence[nodes.Element]:
200200
ref_id = rdl_node.get_path(array_suffix="", empty_array_suffix="")
201201
heading = nodes.section()
202202
heading.attributes["ids"] = [ref_id]
203-
# TODO: Include RDL name in title if it was set.
204-
heading.append(nodes.title(text=rdl_node.inst_name))
203+
heading.append(nodes.title(text=rdl_node.get_property("name")))
205204
heading.extend(doc_nodes)
206205
doc_nodes = [heading]
207206

0 commit comments

Comments
 (0)