X-Git-Url: https://git.distorted.org.uk/~mdw/stgit/blobdiff_plain/a1e0467d1262ac793a63a650d547cded11f74fe7..53388a712669bc5db72030fb5fe7addb5da0716e:/Documentation/asciidoc.conf diff --git a/Documentation/asciidoc.conf b/Documentation/asciidoc.conf index 69447ab..f2c0ede 100644 --- a/Documentation/asciidoc.conf +++ b/Documentation/asciidoc.conf @@ -44,9 +44,23 @@ template::[header-declarations] endif::backend-docbook[] endif::doctype-manpage[] -## link: macro +## htmllink: macro # -# Usage: link:command[manpage-section] +# Usage: htmllink:url[text] + +ifdef::backend-docbook[] +[htmllink-inlinemacro] +{0} +endif::backend-docbook[] + +ifdef::backend-xhtml11[] +[htmllink-inlinemacro] +{0} +endif::backend-xhtml11[] + +## manlink: macro +# +# Usage: manlink:command[manpage-section] # # Note, {0} is the manpage section, while {target} is the command. # @@ -54,7 +68,7 @@ endif::doctype-manpage[] # show the command. ifdef::backend-docbook[] -[link-inlinemacro] +[manlink-inlinemacro] {0%{target}} {0#} {0#{target}{0}} @@ -62,7 +76,7 @@ ifdef::backend-docbook[] endif::backend-docbook[] ifdef::backend-xhtml11[] -[link-inlinemacro] +[manlink-inlinemacro] {target}{0?({0})} endif::backend-xhtml11[] @@ -84,3 +98,20 @@ ifdef::backend-xhtml11[] [stglink-inlinemacro] stg {target} endif::backend-xhtml11[] + +## stgsublink: macro +# +# Usage: stgsublink:command[] +# +# Show StGit link as: in man pages, stg in +# html. + +ifdef::backend-docbook[] +[stgsublink-inlinemacro] +{target} +endif::backend-docbook[] + +ifdef::backend-xhtml11[] +[stgsublink-inlinemacro] +{target} +endif::backend-xhtml11[]