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..
develop
myk002 2022-09-23 10:21:53 -07:00
parent 1b9cd83009
commit 5869ba64c8
No known key found for this signature in database
GPG Key ID: 8A39CA0FA0C16E78
1 changed files with 1 additions and 1 deletions

@ -265,7 +265,7 @@ def init_tag_indices(app):
tag, desc = tag_tuple[0], tag_tuple[1]
topidx.write(('- `{name} <{name}-tag-index>`\n').format(name=tag))
topidx.write((' {desc}\n').format(desc=desc))
register_index(app, tag, '"%s" tag index' % tag)
register_index(app, tag, '%s<h4>%s</h4>' % (tag, desc))
def register(app):