X-Git-Url: https://git.tokkee.org/?a=blobdiff_plain;f=asciidoc.conf;h=90fdb6ad71cc437f0cce15d77d879fd2ba200cb3;hb=2e02e650f57d1760fe4dd0576eeaa0664416b18d;hp=a23a8f49090f338af38f33a7e403032d19da4704;hpb=a643fbd72dc16eb863c4a564c23e7a54a5e9dd73;p=tig.git diff --git a/asciidoc.conf b/asciidoc.conf index a23a8f4..90fdb6a 100644 --- a/asciidoc.conf +++ b/asciidoc.conf @@ -1,25 +1,52 @@ 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 @@ -29,4 +56,7 @@ ifdef::readme[] [footer] + +[replacements] +(^|[^-\\])--($|[^-])=\1--\2 endif::readme[]