chiark / gitweb /
bus-driverd: properly reply to UpdateActivationEnvironment call
[elogind.git] / make-directive-index.py
index 468d14da75c53677a02588deca607c4343772217..2ff304fddc1ca14f743c58409b1d6d24f5ae5779 100755 (executable)
@@ -86,6 +86,16 @@ TEMPLATE = '''\
                 <variablelist id='udev-directives' />
         </refsect1>
 
+        <refsect1>
+                <title>Network directives</title>
+
+                <para>Directives for configuring network links through the
+                net-setup-link udev builtin and networks through
+                systemd-networkd.</para>
+
+                <variablelist id='network-directives' />
+        </refsect1>
+
         <refsect1>
                 <title>Journal fields</title>
 
@@ -138,6 +148,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 +240,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()):