aboutsummaryrefslogtreecommitdiff
path: root/manual
diff options
context:
space:
mode:
authorFlorian Weimer <fweimer@redhat.com>2024-09-11 10:05:08 +0200
committerFlorian Weimer <fweimer@redhat.com>2024-09-11 10:05:08 +0200
commit298bc488fdc047da37482f4003023cb9adef78f8 (patch)
treeab18a241f3646dbc03ce41a08019682310c0c7df /manual
parent8ecb477ea16a387a44ace5bf59d39a7e270b238b (diff)
downloadglibc-298bc488fdc047da37482f4003023cb9adef78f8.zip
glibc-298bc488fdc047da37482f4003023cb9adef78f8.tar.gz
glibc-298bc488fdc047da37482f4003023cb9adef78f8.tar.bz2
manual: Extract the @manpageurl{func,sec} macro
From the existing @manpagefunctionstub{func,sec} macro, so that URLs can be included in the manual without the stub text. Reviewed-by: Carlos O'Donell <carlos@redhat.com>
Diffstat (limited to 'manual')
-rw-r--r--manual/macros.texi7
1 files changed, 5 insertions, 2 deletions
diff --git a/manual/macros.texi b/manual/macros.texi
index 579da3f..f48dd4e 100644
--- a/manual/macros.texi
+++ b/manual/macros.texi
@@ -282,10 +282,13 @@ cwd\comments\
@macro standardsx {element, standard, header}
@end macro
+@macro manpageurl {func, sec}
+@url{https://man7.org/linux/man-pages/man\sec\/\func\.\sec\.html}
+@end macro
+
@macro manpagefunctionstub {func,sec}
This documentation is a stub. For additional information on this
-function, consult the manual page
-@url{https://man7.org/linux/man-pages/man\sec\/\func\.\sec\.html}.
+function, consult the manual page @manpageurl{\func\,\sec\}.
@xref{Linux Kernel}.
@end macro