Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 5869ba6

Browse files
committed
add tag description to the tag index page
this is a terrible hack that only works because sphinx doesn't sanitize its input for the html builder. we set the title to '%s<h4>%s</h4>' % (tag, desc) so the final html looks like <h1>adventure<h4>...</h4></h1> this may not play nice with the pdf builder..
1 parent 1b9cd83 commit 5869ba6

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

docs/sphinx_extensions/dfhack/tool_docs.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -265,7 +265,7 @@ def init_tag_indices(app):
265265
tag, desc = tag_tuple[0], tag_tuple[1]
266266
topidx.write(('- `{name} <{name}-tag-index>`\n').format(name=tag))
267267
topidx.write((' {desc}\n').format(desc=desc))
268-
register_index(app, tag, '"%s" tag index' % tag)
268+
register_index(app, tag, '%s<h4>%s</h4>' % (tag, desc))
269269

270270

271271
def register(app):

0 commit comments

Comments
 (0)