diff options
| author | 2019-07-03 05:08:22 -0400 | |
|---|---|---|
| committer | 2019-07-03 05:08:22 -0400 | |
| commit | 1907d1037c2e5d98b8b55b563d7b0ce8cd4b408a (patch) | |
| tree | d704c14acf3b6dd56a482dc30c730aea6eafa734 /doc/asciidoc.conf | |
| parent | ad1be39ef1dc25f2fe3a2f41a931d8e734cbeb76 (diff) | |
| parent | 0d2edecb2be14c0ed92a33c7508358d648cd3d2f (diff) | |
Update upstream source from tag 'upstream/22'
Update to upstream version '22'
with Debian dir 76cf8a8f0842846234438b4170eb5cf1a638e775
Diffstat (limited to 'doc/asciidoc.conf')
| -rw-r--r-- | doc/asciidoc.conf | 37 |
1 files changed, 37 insertions, 0 deletions
diff --git a/doc/asciidoc.conf b/doc/asciidoc.conf new file mode 100644 index 0000000..c675a20 --- /dev/null +++ b/doc/asciidoc.conf @@ -0,0 +1,37 @@ +## linkman: macro +# Inspired by/borrowed from the GIT source tree at Documentation/asciidoc.conf +# +# Usage: linkman:command[manpage-section] +# +# Note, {0} is the manpage section, while {target} is the command. +# +# Show man link as: <command>(<section>); if section is defined, else just show +# the command. + +[macros] +(?su)[\\]?(?P<name>linkman):(?P<target>\S*?)\[(?P<attrlist>.*?)\]= + +[attributes] +asterisk=* +plus=+ +caret=^ +startsb=[ +endsb=] +backslash=\ +tilde=~ +apostrophe=' +backtick=` +litdd=-- + +ifdef::backend-docbook[] +[linkman-inlinemacro] +{0%{target}} +{0#<citerefentry>} +{0#<refentrytitle>{target}</refentrytitle><manvolnum>{0}</manvolnum>} +{0#</citerefentry>} +endif::backend-docbook[] + +ifdef::backend-xhtml11[] +[linkman-inlinemacro] +<a href="{target}.{0}.html">{target}{0?({0})}</a> +endif::backend-xhtml11[] |
