From d080734dcb047a890885781b6a3c154ba19e3a8e Mon Sep 17 00:00:00 2001 From: =?utf8?q?Zbigniew=20J=C4=99drzejewski-Szmek?= Date: Sun, 27 Jun 2021 16:33:12 +0200 Subject: [PATCH] man: add "DNS resource record types" section --- man/directives-template.xml | 8 +++++++- tools/make-directive-index.py | 3 ++- 2 files changed, 9 insertions(+), 2 deletions(-) diff --git a/man/directives-template.xml b/man/directives-template.xml index 34b103de404..f28bd98d25f 100644 --- a/man/directives-template.xml +++ b/man/directives-template.xml @@ -132,11 +132,17 @@ Constants - Various constant used and/or defined by systemd. + Various constants used and/or defined by systemd. + + DNS resource record types + + + + Miscellaneous options and directives diff --git a/tools/make-directive-index.py b/tools/make-directive-index.py index bbdc5572f53..8a2939959be 100755 --- a/tools/make-directive-index.py +++ b/tools/make-directive-index.py @@ -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 -- 2.47.3