[patch v1] manual: make @manpageurl more specific to each output
DJ Delorie
dj@redhat.com
Tue Dec 10 22:09:47 GMT 2024
Tweak the @manpageurl macro to customize the output for
each of html, info, and pdf output. HTML and PDF (at
least, these days) support clicking on the link title,
whereas info does not so needs to print the full url.
diff --git a/manual/macros.texi b/manual/macros.texi
index f48dd4ec22..a74b497582 100644
--- a/manual/macros.texi
+++ b/manual/macros.texi
@@ -282,9 +282,16 @@ cwd\comments\
@macro standardsx {element, standard, header}
@end macro
+@ifnotinfo
@macro manpageurl {func, sec}
-@url{https://man7.org/linux/man-pages/man\sec\/\func\.\sec\.html}
+``\func\(\sec\)'' (@url{https://man7.org/linux/man-pages/man\sec\/\func\.\sec\.html,,Latest: \func\(\sec\)})
@end macro
+@end ifnotinfo
+@ifinfo
+@macro manpageurl {func, sec}
+``\func\(\sec\)'' (Latest: @url{https://man7.org/linux/man-pages/man\sec\/\func\.\sec\.html})
+@end macro
+@end ifinfo
@macro manpagefunctionstub {func,sec}
This documentation is a stub. For additional information on this
More information about the Libc-alpha
mailing list