Skip to content

Commit

Permalink
docs/asciidoc.conf: support anchors in PDF
Browse files Browse the repository at this point in the history
Signed-off-by: Jim Klimov <[email protected]>
  • Loading branch information
jimklimov committed Oct 22, 2024
1 parent dde1b76 commit f5bcf5a
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions docs/asciidoc.conf
Original file line number Diff line number Diff line change
Expand Up @@ -121,16 +121,15 @@ ifdef::chunked_format[]
endif::chunked_format[]

# PDF output points online versions
# FIXME: linkdoc and linksingledoc don't support 'anchor'
ifdef::pdf_format[]
[linkman-inlinemacro]
<ulink url="https://www.networkupstools.org/docs/man/{target}.html">{target}{0?({0})}</ulink>
[linkman2-inlinemacro]
<ulink url="https://www.networkupstools.org/docs/man/{target}.html">{1={target}}{2?({2})}</ulink>
[linkdoc-inlinemacro]
<ulink url="{target}.pdf">{1}</ulink>{3?suggestsrcdoc:{3}[]}
<ulink url="{target}.pdf{2?#{2}}">{1}</ulink>{3?suggestsrcdoc:{3}[]}
[linksingledoc-inlinemacro]
<ulink url="{target}.pdf">{1}</ulink>{3?suggestsrcdoc:{3}[]}
<ulink url="{target}.pdf{2?#{2}}">{1}</ulink>{3?suggestsrcdoc:{3}[]}
[linksrcdoc-inlinemacro]
<code>{target}</code>
endif::pdf_format[]
Expand Down

0 comments on commit f5bcf5a

Please sign in to comment.