X-Git-Url: https://git.tokkee.org/?p=tig.git;a=blobdiff_plain;f=asciidoc.conf;h=90fdb6ad71cc437f0cce15d77d879fd2ba200cb3;hp=ed87a261cd6d96937cc55251f47d633c2edb7f96;hb=HEAD;hpb=2bc4f7bd461405083a225b7d43b1ddc947670259 diff --git a/asciidoc.conf b/asciidoc.conf index ed87a26..90fdb6a 100644 --- a/asciidoc.conf +++ b/asciidoc.conf @@ -1,32 +1,62 @@ ifdef::backend-docbook[] -[gitlink-inlinemacro] +[manpage-inlinemacro] {0%{target}} {0#} {0#{target}{0}} {0#} endif::backend-docbook[] +ifdef::backend-xhtml11[] +[manpage-inlinemacro] +{target}{0?({0})} +endif::backend-xhtml11[] + +ifdef::doctype-manpage[] ifdef::backend-docbook[] -# "unbreak" docbook-xsl v1.68 for manpages. v1.69 works with or without this. +[header] +template::[header-declarations] + + +{mantitle} +{manvolnum} +Tig +{version} +Tig Manual + + + {manname} + {manpurpose} + + +# The following two small workarounds insert a simple paragraph after screen +# + [listingblock] {title} - + | - + {title#} -endif::backend-docbook[] -ifdef::backend-xhtml11[] -[gitlink-inlinemacro] -{target}{0?({0})} -endif::backend-xhtml11[] +[verseblock] +{title} +{title%} +{title#} +| + +{title#} +endif::backend-docbook[] +endif::doctype-manpage[] ifdef::readme[] # No header or footers for README.html [header] -
+

{doctitle}

[footer]
+ +[replacements] +(^|[^-\\])--($|[^-])=\1--\2 endif::readme[]