diff options
author | Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> | 2013-06-26 19:48:19 -0400 |
---|---|---|
committer | Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> | 2013-06-26 19:52:00 -0400 |
commit | 785a51eb682136b2c7ee33fabe64c72d20fa37db (patch) | |
tree | f6cd780138ceb86dc262ef0a2f2dec8a41871be0 /make-directive-index.py | |
parent | 74d005783e355acc784d123024e33bbb66ef9ef1 (diff) |
man: add CONSTANTS section to systemd.directives(7)
Diffstat (limited to 'make-directive-index.py')
-rwxr-xr-x | make-directive-index.py | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/make-directive-index.py b/make-directive-index.py index 468d14da75..b43fea0b99 100755 --- a/make-directive-index.py +++ b/make-directive-index.py @@ -139,6 +139,14 @@ TEMPLATE = '''\ </refsect1> <refsect1> + <title>Constants</title> + + <para>Various constant used and/or defined by systemd.</para> + + <variablelist id='constants' /> + </refsect1> + + <refsect1> <title>Miscellaneous options and directives</title> <para>Other configuration elements which don't fit in @@ -222,6 +230,16 @@ def _extract_directives(directive_groups, formatting, page): storfile[text].append((pagename, section)) formatting[text] = name + storfile = directive_groups['constants'] + for name in t.iterfind('.//constant'): + if name.attrib.get('noindex'): + continue + name.tail = '' + if name.text.startswith('('): # a cast, strip it + name.text = name.text.partition(' ')[2] + storfile[name.text].append((pagename, section)) + formatting[name.text] = name + def _make_section(template, name, directives, formatting): varlist = template.find(".//*[@id='{}']".format(name)) for varname, manpages in sorted(directives.items()): |