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>
This commit is contained in:
Florian Weimer 2024-09-11 10:05:08 +02:00
parent 8ecb477ea1
commit 298bc488fd

View File

@ -282,10 +282,13 @@ cwd\comments\
@macro standardsx {element, standard, header} @macro standardsx {element, standard, header}
@end macro @end macro
@macro manpageurl {func, sec}
@url{https://man7.org/linux/man-pages/man\sec\/\func\.\sec\.html}
@end macro
@macro manpagefunctionstub {func,sec} @macro manpagefunctionstub {func,sec}
This documentation is a stub. For additional information on this This documentation is a stub. For additional information on this
function, consult the manual page function, consult the manual page @manpageurl{\func\,\sec\}.
@url{https://man7.org/linux/man-pages/man\sec\/\func\.\sec\.html}.
@xref{Linux Kernel}. @xref{Linux Kernel}.
@end macro @end macro