|
|
@ -21,7 +21,7 @@ class DFHackToolDirective(sphinx.directives.ObjectDescription):
|
|
|
|
tool_name = self.get_signatures()[0]
|
|
|
|
tool_name = self.get_signatures()[0]
|
|
|
|
|
|
|
|
|
|
|
|
tag_nodes = [nodes.strong(text='Tags: ')]
|
|
|
|
tag_nodes = [nodes.strong(text='Tags: ')]
|
|
|
|
for tag in self.options['tags']:
|
|
|
|
for tag in self.options.get('tags', []):
|
|
|
|
tag_nodes += [
|
|
|
|
tag_nodes += [
|
|
|
|
nodes.literal(tag, tag),
|
|
|
|
nodes.literal(tag, tag),
|
|
|
|
nodes.inline(text=' | '),
|
|
|
|
nodes.inline(text=' | '),
|
|
|
@ -29,7 +29,7 @@ class DFHackToolDirective(sphinx.directives.ObjectDescription):
|
|
|
|
tag_nodes.pop()
|
|
|
|
tag_nodes.pop()
|
|
|
|
|
|
|
|
|
|
|
|
return [
|
|
|
|
return [
|
|
|
|
nodes.section('', nodes.title(text=tool_name)),
|
|
|
|
nodes.section('', nodes.title(text=tool_name), ids=[tool_name]),
|
|
|
|
nodes.paragraph('', '', *tag_nodes),
|
|
|
|
nodes.paragraph('', '', *tag_nodes),
|
|
|
|
]
|
|
|
|
]
|
|
|
|
|
|
|
|
|
|
|
|