From 5869ba64c8b77edaacfc2eba84afe9bcb6e4730d Mon Sep 17 00:00:00 2001 From: myk002 Date: Fri, 23 Sep 2022 10:21:53 -0700 Subject: [PATCH] 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

%s

' % (tag, desc) so the final html looks like

adventure

...

this may not play nice with the pdf builder.. --- docs/sphinx_extensions/dfhack/tool_docs.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/sphinx_extensions/dfhack/tool_docs.py b/docs/sphinx_extensions/dfhack/tool_docs.py index 412a332b8..fef6ca15a 100644 --- a/docs/sphinx_extensions/dfhack/tool_docs.py +++ b/docs/sphinx_extensions/dfhack/tool_docs.py @@ -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

%s

' % (tag, desc)) def register(app):