[patch v1] manual: make @manpageurl more specific to each output

Florian Weimer fweimer@redhat.com
Wed Dec 11 09:08:57 GMT 2024


* DJ Delorie:

> 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

Would it make sense to move the Latest: out of the linked part?

Thanks,
Florian



More information about the Libc-alpha mailing list