man: add "DNS resource record types" section

This commit is contained in:
Zbigniew Jędrzejewski-Szmek 2021-06-27 16:33:12 +02:00
parent 9a024bf18d
commit d080734dcb
2 changed files with 9 additions and 2 deletions

View file

@ -132,11 +132,17 @@
<refsect1>
<title>Constants</title>
<para>Various constant used and/or defined by systemd.</para>
<para>Various constants used and/or defined by systemd.</para>
<variablelist id='constants' />
</refsect1>
<refsect1>
<title>DNS resource record types</title>
<variablelist id='dns' />
</refsect1>
<refsect1>
<title>Miscellaneous options and directives</title>

View file

@ -77,13 +77,14 @@ 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('index') == 'false':
continue
name.tail = ''
if name.text.startswith('('): # a cast, strip it
name.text = name.text.partition(' ')[2]
klass = name.attrib.get('class') or 'constants'
storfile = directive_groups[klass]
storfile[name.text].append((pagename, section))
formatting[name.text] = name