Changeset ea93c11


Ignore:
Timestamp:
01/25/2024 05:59:06 PM (3 months ago)
Author:
Xi Ruoyao <xry111@…>
Branches:
12.1, 12.1-rc1, multilib, trunk, xry111/arm64, xry111/clfs-ng, xry111/loongarch, xry111/loongarch-12.1, xry111/mips64el, xry111/update-glibc
Children:
31a18d02, 44850bb
Parents:
9ac6ff5
git-author:
Xi Ruoyao <xry111@…> (01/25/2024 05:49:29 PM)
git-committer:
Xi Ruoyao <xry111@…> (01/25/2024 05:59:06 PM)
Message:

treewide: Use <ulink> instead of <filename> for man pages

"gcc(1)" is really not a file name.

Use <ulink> and link to the online man page on
https://man.archlinux.org/ so the user can refer to the man pages more
easily.

The change is done via a sed command and long lines are wrapped
manually.

Files:
16 edited

Legend:

Unmodified
Added
Removed
  • chapter02/creatingpartition.xml

    r9ac6ff5 rea93c11  
    4141  disk drive. Create a Linux native partition and a
    4242  <systemitem class="filesystem">swap</systemitem> partition, if needed. Please
    43   refer to <filename>cfdisk(8)</filename> or <filename>fdisk(8)</filename> if
     43  refer to <ulink role='man' url='&man;cfdisk.8'>cfdisk(8)</ulink> or
     44  <ulink role='man' url='&man;fdisk.8'>fdisk(8)</ulink> if
    4445  you do not yet know how to use the programs.</para>
    4546
  • chapter04/addinguser.xml

    r9ac6ff5 rea93c11  
    100100  <command>su</command> to start a login shell as opposed to a non-login shell.
    101101  The difference between these two types of shells is described in detail in
    102   <filename>bash(1)</filename> and <command>info bash</command>.</para>
     102  <ulink role='man' url='&man;bash.1'>bash(1)</ulink> and <command>info
     103  bash</command>.</para>
    103104
    104105</sect1>
  • chapter04/settingenviron.xml

    r9ac6ff5 rea93c11  
    8080  created files and directories are only writable by their owner, but are
    8181  readable and executable by anyone (assuming default modes are used by the
    82   <filename>open(2)</filename> system call, new files will end up with
    83   permission mode 644 and directories with mode 755).</para>
     82  <ulink role='man' url='&man;open.2'>open(2)</ulink> system call, new files
     83  will end up with permission mode 644 and directories with mode 755).</para>
    8484      </listitem>
    8585    </varlistentry>
  • chapter05/glibc.xml

    r9ac6ff5 rea93c11  
    6060        The above command is correct.  The <command>ln</command> command has
    6161        several syntactic versions, so be sure to check
    62         <command>info coreutils ln</command> and <filename>ln(1)</filename>
    63         before reporting what may appear to be an error.
     62        <command>info coreutils ln</command> and <ulink role='man'
     63        url='&man;ln.1'>ln(1)</ulink> before reporting what may appear to be
     64        an error.
    6465      </para>
    6566    </note>
  • chapter08/e2fsprogs.xml

    r9ac6ff5 rea93c11  
    160160
    161161    <para>
    162       Read the man page <filename>mke2fs.conf(5)</filename> for details.
     162      Read the man page <ulink role='man'
     163      url='&man;mke2fs.conf.5'>mke2fs.conf(5)</ulink> for details.
    163164    </para>
    164165  </sect2>
  • chapter08/openssl.xml

    r9ac6ff5 rea93c11  
    164164            of <application>OpenSSL</application>'s crypto library from the
    165165            shell. It can be used for various functions which are documented in
    166             <filename>openssl(1)</filename>
     166            <ulink role='man' url='&man;openssl.1'>openssl(1)</ulink>
    167167          </para>
    168168          <indexterm zone="ch-system-openssl openssl-prog">
     
    196196            implements the Transport Layer Security (TLS v1) protocol.
    197197            It provides a rich API, documentation
    198             on which can be found in <filename>ssl(7)</filename>
     198            on which can be found in <ulink role='man'
     199            url='&man;ssl.7'>ssl(7)</ulink>
    199200          </para>
    200201          <indexterm zone="ch-system-openssl libssl">
  • chapter08/shadow.xml

    r9ac6ff5 rea93c11  
    204204    parameter to <command>useradd</command>, or else change the setting of
    205205    <parameter>USERGROUPS_ENAB</parameter> in
    206     <filename>/etc/login.defs</filename>. See <filename>useradd(8)</filename>
    207     for more information.</para>
     206    <filename>/etc/login.defs</filename>. See <ulink role='man'
     207    url='&man;useradd.8'>useradd(8)</ulink> for more information.</para>
    208208
    209209    <para>Second, to change the default parameters, the file
  • chapter08/util-linux.xml

    r9ac6ff5 rea93c11  
    585585        <listitem>
    586586          <para>Displays kernel interrupt counter information in
    587           <filename>top(1)</filename> style view</para>
     587          <ulink role='man' url='&man;top.1'>top(1)</ulink> style
     588          view</para>
    588589          <indexterm zone="ch-system-util-linux irqtop">
    589590            <primary sortas="b-irqtop">irqtop</primary>
  • chapter09/networkd.xml

    r9ac6ff5 rea93c11  
    5151    <filename class="extension">.network</filename> files. For detailed
    5252    descriptions and example contents of these configuration files, consult
    53     the <filename>systemd-link(5)</filename>,
    54     <filename>systemd-netdev(5)</filename> and
    55     <filename>systemd-network(5)</filename> manual pages.</para>
     53    the <ulink role='man' url='&man;systemd-link.5'>systemd-link(5)</ulink>,
     54    <ulink role='man' url='&man;systemd-netdev.5'>systemd-netdev(5)</ulink>,
     55    and <ulink role='man'
     56    url='&man;systemd-network.5'>systemd-network(5)</ulink> manual
     57    pages.</para>
    5658
    5759    <sect3 id="systemd-network-devices">
     
    114116
    115117          <para>
    116             See <filename>systemd.link(5)</filename> for more information.
     118            See <ulink role='man' url='&man;systemd.link.5'>systemd.link(5)</ulink> for more information.
    117119          </para>
    118120        </listitem>
     
    358360     domain) because they are handled by the
    359361     <systemitem class='library'>myhostname</systemitem> NSS module, read
    360      the man page <filename>nss-myhostname(8)</filename> for details.</para>
     362     the man page <ulink role='man'
     363     url='&man;nss-myhostname.8'>nss-myhostname(8)</ulink> for
     364     details.</para>
    361365
    362366     <para>The ::1 entry is the IPv6 counterpart of 127.0.0.1 and represents
  • chapter09/systemd-custom.xml

    r9ac6ff5 rea93c11  
    2222    entries commented out with the default settings indicated. This file is
    2323    where the log level may be changed as well as some basic logging settings.
    24     See the <filename>systemd-system.conf(5)</filename> manual page for details
    25     on each configuration option.</para>
     24    See the <ulink role='man'
     25    url='&man;systemd-system.conf.5'>systemd-system.conf(5)</ulink> manual
     26    page for details on each configuration option.</para>
    2627
    2728  </sect2>
     
    9091    files with the same name in
    9192    <filename class="directory">/usr/lib/tmpfiles.d</filename>. See
    92     <filename>tmpfiles.d(5)</filename> manual page for file format
    93     details.</para>
     93    <ulink role='man' url='&man;tmpfiles.d.5'>tmpfiles.d(5)</ulink> manual
     94    page for file format details.</para>
    9495
    9596    <para>
     
    136137EOF</userinput></screen>
    137138
    138      <para>See <filename>systemd.unit(5)</filename> manual page for more
     139     <para>See <ulink role='man'
     140     url='&man;systemd.unit.5'>systemd.unit(5)</ulink> manual page for more
    139141     information. After creating the configuration file, run
    140142     <userinput>systemctl daemon-reload</userinput> and <userinput>systemctl
     
    252254EOF</userinput></screen>
    253255
    254     <para>See the <filename>systemd-coredump(8)</filename>,
    255     <filename>coredumpctl(1)</filename>, and
    256     <filename>coredump.conf.d(5)</filename> manual pages for more
    257     information.</para>
     256    <para>See the <ulink role='man' url='&man;systemd-coredump.8'>systemd-coredump(8)</ulink>,
     257    <ulink role='man' url='&man;coredumpctl.1'>coredumpctl(1)</ulink>, and
     258    <ulink role='man'
     259    url='&man;coredump.conf.d.5'>coredump.conf.d(5)</ulink> manual pages for
     260    more information.</para>
    258261  </sect2>
    259262
  • chapter09/udev.xml

    r9ac6ff5 rea93c11  
    226226      <literal>pre:</literal> dependencies, or a mixture of both
    227227      <literal>pre:</literal> and <literal>post:</literal> dependencies.  See
    228       the <filename>modprobe.d(5)</filename> manual page for more information
    229       on <quote>softdep</quote> syntax and capabilities.</para>
     228      the <ulink role='man' url='&man;modprobe.d.5'>modprobe.d(5)</ulink>
     229      manual page for more information on <quote>softdep</quote> syntax and
     230      capabilities.</para>
    230231
    231232      <para revision="sysv">If the module in question is not a wrapper and is
  • chapter09/usage.xml

    r9ac6ff5 rea93c11  
    3333    uses a run levels scheme. There are seven run levels, numbered 0 to 6.
    3434    (Actually, there are more run levels, but the others are for special cases and are
    35     generally not used. See <filename>init(8)</filename> for more details.)
     35    generally not used. See <ulink role='man'
     36    url='&man;init.8'>init(8)</ulink> for more details.)
    3637    Each one of the seven corresponds to actions the computer is supposed to
    3738    perform when it starts up or shuts down. The default run level is 3. Here are the
     
    342343  doubt, look in the <filename class="directory">/usr/share/keymaps</filename>
    343344  and <filename class="directory">/usr/share/consolefonts</filename> directories
    344   for valid keymaps and screen fonts. Read the <filename>loadkeys(1)</filename> and
    345   <filename>setfont(8)</filename> manual pages to determine the correct
    346   arguments for these programs.</para>
     345  for valid keymaps and screen fonts. Read the <ulink role='man'
     346  url='&man;loadkeys.1'>loadkeys(1)</ulink> and <ulink role='man'
     347  url='&man;setfont.8'>setfont(8)</ulink> manual pages to determine the
     348  correct arguments for these programs.</para>
    347349
    348350  <para>The <filename>/etc/sysconfig/console</filename> file should contain lines
  • chapter10/fstab.xml

    r9ac6ff5 rea93c11  
    5757  class="partition">sda5</filename>, and <systemitem
    5858  class="filesystem">ext4</systemitem>. For details on the six
    59   fields in this file, see <filename>fstab(5)</filename>.</para>
     59  fields in this file, see <ulink role='man' url='&man;fstab.5'>fstab(5)</ulink>.</para>
    6060
    6161  <para>Filesystems with MS-DOS or Windows origin (i.e. vfat, ntfs, smbfs,
  • chapter10/kernel.xml

    r9ac6ff5 rea93c11  
    325325    documentation in the <filename
    326326    class="directory">linux-&linux-version;/Documentation</filename> directory.
    327     Also, <filename>modprobe.d(5)</filename> may be of interest.</para>
     327    Also, <ulink role='man' url='&man;modprobe.d.5'>modprobe.d(5)</ulink>
     328    may be of interest.</para>
    328329
    329330    <para>Unless module support has been disabled in the kernel configuration,
  • general.ent

    r9ac6ff5 rea93c11  
    126126<!ENTITY pypi-home       "https://pypi.org/project">
    127127<!ENTITY pypi-src        "https://pypi.org/packages/source">
     128<!ENTITY man             "https://man.archlinux.org/man/">
    128129
    129130<!ENTITY root            "<systemitem class='username'>root</systemitem>">
  • prologue/typography.xml

    r9ac6ff5 rea93c11  
    7575  <para>This format is used to encapsulate text that is optional.</para>
    7676
    77   <para><filename>passwd(5)</filename></para>
     77  <para><ulink role='man' url='&man;passwd.5'>passwd(5)</ulink></para>
    7878
    7979  <para>This format is used to refer to a specific manual (man) page. The number inside parentheses
     
    8282  those two man pages will be located at
    8383  <filename>/usr/share/man/man1/passwd.1</filename> and
    84   <filename>/usr/share/man/man5/passwd.5</filename>. When the book uses <filename>passwd(5)</filename> it is
     84  <filename>/usr/share/man/man5/passwd.5</filename>. When the book uses
     85  <ulink role='man' url='&man;/passwd.5'>passwd(5)</ulink> it is
    8586  specifically referring to <filename>/usr/share/man/man5/passwd.5</filename>.
    8687  <command>man passwd</command> will print the first man page it finds that
     
    9091  being specified. Note that most man pages do not have duplicate
    9192  page names in different sections. Therefore, <command>man <replaceable>&lt;program
    92   name&gt;</replaceable></command> is generally sufficient.</para>
     93  name&gt;</replaceable></command> is generally sufficient.  In the LFS
     94  book these references to man pages are also hyperlinks, so clicking on
     95  such a reference will open the man page rendered in HTML from
     96  <ulink url='https://man.archlinux.org/'>Arch Linux manual
     97  pages</ulink>.</para>
    9398
    9499</sect1>
Note: See TracChangeset for help on using the changeset viewer.