mirror of
https://github.com/systemd/systemd.git
synced 2025-03-28 02:50:16 +03:00
man: add CONSTANTS section to systemd.directives(7)
This commit is contained in:
parent
74d005783e
commit
785a51eb68
@ -138,6 +138,14 @@ TEMPLATE = '''\
|
||||
<variablelist id='options' />
|
||||
</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>
|
||||
|
||||
@ -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()):
|
||||
|
Loading…
x
Reference in New Issue
Block a user