mirror of
https://github.com/systemd/systemd.git
synced 2024-11-23 18:23:32 +08:00
man: put all pages which mention a specifier in the index
I wasn't 100% convinced that this is the right thing to do, hence the separate commit. But e.g. for paths we index all mentions, so I think it's reasonable to do the same here.
This commit is contained in:
parent
6552874506
commit
6dbf40256b
@ -444,9 +444,9 @@
|
||||
created. (See
|
||||
<citerefentry><refentrytitle>systemd.device</refentrytitle><manvolnum>5</manvolnum></citerefentry>
|
||||
for more information.) This option is mandatory. Note that the usual specifier expansion is applied
|
||||
to this setting, literal percent characters should hence be written as <literal>%%</literal>. If this
|
||||
mount is a bind mount and the specified path does not exist yet it is created as
|
||||
directory.</para></listitem>
|
||||
to this setting, literal percent characters should hence be written as <literal
|
||||
class='specifiers'>%%</literal>. If this mount is a bind mount and the specified path does not exist
|
||||
yet it is created as directory.</para></listitem>
|
||||
</varlistentry>
|
||||
|
||||
<varlistentry>
|
||||
@ -469,7 +469,7 @@
|
||||
|
||||
<listitem><para>Mount options to use when mounting. This takes a comma-separated list of options. This setting
|
||||
is optional. Note that the usual specifier expansion is applied to this setting, literal percent characters
|
||||
should hence be written as <literal>%%</literal>.</para></listitem>
|
||||
should hence be written as <literal class='specifiers'>%%</literal>.</para></listitem>
|
||||
</varlistentry>
|
||||
|
||||
<varlistentry>
|
||||
|
@ -184,11 +184,13 @@
|
||||
project='man-pages'><refentrytitle>swapon</refentrytitle><manvolnum>8</manvolnum></citerefentry> for
|
||||
details. If this refers to a device node, a dependency on the respective device unit is automatically
|
||||
created. (See
|
||||
<citerefentry><refentrytitle>systemd.device</refentrytitle><manvolnum>5</manvolnum></citerefentry> for more
|
||||
information.) If this refers to a file, a dependency on the respective mount unit is automatically
|
||||
created. (See <citerefentry><refentrytitle>systemd.mount</refentrytitle><manvolnum>5</manvolnum></citerefentry>
|
||||
for more information.) This option is mandatory. Note that the usual specifier expansion is applied to this
|
||||
setting, literal percent characters should hence be written as <literal>%%</literal>.</para></listitem>
|
||||
<citerefentry><refentrytitle>systemd.device</refentrytitle><manvolnum>5</manvolnum></citerefentry>
|
||||
for more information.) If this refers to a file, a dependency on the respective mount unit is
|
||||
automatically created. (See
|
||||
<citerefentry><refentrytitle>systemd.mount</refentrytitle><manvolnum>5</manvolnum></citerefentry> for
|
||||
more information.) This option is mandatory. Note that the usual specifier expansion is applied to
|
||||
this setting, literal percent characters should hence be written as
|
||||
<literal class='specifiers'>%%</literal>.</para></listitem>
|
||||
</varlistentry>
|
||||
|
||||
<varlistentry>
|
||||
|
@ -95,6 +95,9 @@ def _extract_directives(directive_groups, formatting, page):
|
||||
continue
|
||||
storfile[name.text].append((pagename, section))
|
||||
formatting[name.text] = name
|
||||
for name in t.iterfind(".//literal[@class='specifiers']"):
|
||||
storfile[name.text].append((pagename, section))
|
||||
formatting[name.text] = name
|
||||
|
||||
def _make_section(template, name, directives, formatting):
|
||||
varlist = template.find(".//*[@id='{}']".format(name))
|
||||
|
Loading…
Reference in New Issue
Block a user