From e8cb9cceb7a93fdc57be2b8eba4129090896d0eb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Petr=20=C5=A0pa=C4=8Dek?= Date: Thu, 30 Jun 2022 17:29:18 +0200 Subject: [PATCH] Cleanup tag filtering code for statementlist:: RST directive Technically this is fixup for 33931c97faaa0f728b4194b8077825e75c351e12 but that commit is already merged. (cherry picked from commit f5faddd08ad5aa8f95c647559e3529e0e3f16ed9) --- doc/arm/_ext/iscconf.py | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/doc/arm/_ext/iscconf.py b/doc/arm/_ext/iscconf.py index 809445ec50..4380a8c4c1 100644 --- a/doc/arm/_ext/iscconf.py +++ b/doc/arm/_ext/iscconf.py @@ -442,20 +442,13 @@ def domain_factory(domainname, domainlabel, todolist, grammar): TableColumn("ref", "Statement"), TableColumn("short", "Description"), ] - table_b = DictToDocutilsTableBuilder(table_header) - table_b.append_iterable( - sorted( - iscconf.list_all(fromdocname), - key=lambda x: x["fullname"], - ) - ) tag_header = [] - if len(acceptable_tags) != 1: # tags column only if tag filter is not applied tag_header = [ TableColumn("tags_txt", "Tags"), ] + table_b = DictToDocutilsTableBuilder(table_header + tag_header) table_b.append_iterable( sorted(