summaryrefslogtreecommitdiff
path: root/tools/make-directive-index.py
diff options
context:
space:
mode:
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>2020-05-07 15:05:29 +0200
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>2020-05-07 16:30:10 +0200
commit6dbf40256bd88f1c74657bd9ffbd9eaa06c08706 (patch)
tree536780929a0f4d24d6dd44a65b3571ac49e60af9 /tools/make-directive-index.py
parent655287450600681c06d7717deca5b295a7facaa5 (diff)
downloadsystemd-6dbf40256bd88f1c74657bd9ffbd9eaa06c08706.tar.gz
man: put all pages which mention a specifier in the index
I wasn't 100% convinced that this is the right thing to do, hence the separate commit. But e.g. for paths we index all mentions, so I think it's reasonable to do the same here.
Diffstat (limited to 'tools/make-directive-index.py')
-rwxr-xr-xtools/make-directive-index.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/tools/make-directive-index.py b/tools/make-directive-index.py
index c6b2173b2e..b04281490d 100755
--- a/tools/make-directive-index.py
+++ b/tools/make-directive-index.py
@@ -95,6 +95,9 @@ def _extract_directives(directive_groups, formatting, page):
continue
storfile[name.text].append((pagename, section))
formatting[name.text] = name
+ for name in t.iterfind(".//literal[@class='specifiers']"):
+ storfile[name.text].append((pagename, section))
+ formatting[name.text] = name
def _make_section(template, name, directives, formatting):
varlist = template.find(".//*[@id='{}']".format(name))