Skip to content

Commit 6784655

Browse files
committed
doc: Fix initdb option xreflabels
Generally, we don't want any overriding xreflabels in the options list, so that we can link to options and the link renders as the option name. The -g option did this differently and config.sgml made use of that for a link. The new --no-data-checksums option (commit 983a588) apparently copied this pattern, but that seems like the wrong direction, as a future patch revealed. To fix, remove the two xreflabels and rewrite the link in config.sgml with an explicit link text.
1 parent d5ca15e commit 6784655

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

doc/src/sgml/config.sgml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11042,7 +11042,9 @@ dynamic_library_path = 'C:\tools\postgresql;H:\my_project\lib;$libdir'
1104211042
had at server startup.
1104311043
(On Microsoft Windows this parameter will always display
1104411044
<literal>0700</literal>.) See
11045-
<xref linkend="app-initdb-allow-group-access"/> for more information.
11045+
<link linkend="app-initdb-allow-group-access">the
11046+
<application>initdb</application> <option>-g</option> option</link>
11047+
for more information.
1104611048
</para>
1104711049
</listitem>
1104811050
</varlistentry>

doc/src/sgml/ref/initdb.sgml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -227,7 +227,7 @@ PostgreSQL documentation
227227
</listitem>
228228
</varlistentry>
229229

230-
<varlistentry id="app-initdb-allow-group-access" xreflabel="group access">
230+
<varlistentry id="app-initdb-allow-group-access">
231231
<term><option>-g</option></term>
232232
<term><option>--allow-group-access</option></term>
233233
<listitem>
@@ -260,7 +260,7 @@ PostgreSQL documentation
260260
</listitem>
261261
</varlistentry>
262262

263-
<varlistentry id="app-initdb-data-checksums" xreflabel="data checksums">
263+
<varlistentry id="app-initdb-data-checksums">
264264
<term><option>-k</option></term>
265265
<term><option>--data-checksums</option></term>
266266
<listitem>

0 commit comments

Comments
 (0)