Skip to content

Commit

Permalink
doc: fixup asciidoc config
Browse files Browse the repository at this point in the history
(just grab Git's and fix it up)

Signed-off-by: Josef 'Jeff' Sipek <[email protected]>
  • Loading branch information
jeffpc committed Sep 18, 2010
1 parent 938674e commit 9f356a2
Showing 1 changed file with 47 additions and 9 deletions.
56 changes: 47 additions & 9 deletions Documentation/asciidoc.conf
Original file line number Diff line number Diff line change
Expand Up @@ -4,14 +4,23 @@
#
# Note, {0} is the manpage section, while {target} is the command.
#
# Show guilt link as: <command>(<section>); if section is defined, else just show
# the command.
# Show guilt link as: <command>(<section>); if section is defined, else just
# show the command.

[macros]
(?su)[\\]?(?P<name>linkguilt):(?P<target>\S*?)\[(?P<attrlist>.*?)\]=

[attributes]
caret=^
asterisk=&#42;
plus=&#43;
caret=&#94;
startsb=&#91;
endsb=&#93;
backslash=&#92;
tilde=&#126;
apostrophe=&#39;
backtick=&#96;
litdd=&#45;&#45;

ifdef::backend-docbook[]
[linkguilt-inlinemacro]
Expand All @@ -21,21 +30,45 @@ ifdef::backend-docbook[]
{0#</citerefentry>}
endif::backend-docbook[]


ifdef::backend-docbook[]
ifndef::guilt-asciidoc-no-roff[]
# "unbreak" docbook-xsl v1.68 for manpages. v1.69 works with or without this.
# v1.72 breaks with this because it replaces dots not in roff requests.
[listingblock]
<example><title>{title}</title>
<literallayout>
ifdef::doctype-manpage[]
&#10;.ft C&#10;
endif::doctype-manpage[]
|
ifdef::doctype-manpage[]
&#10;.ft&#10;
endif::doctype-manpage[]
</literallayout>
{title#}</example>
endif::backend-docbook[]
endif::guilt-asciidoc-no-roff[]

ifdef::backend-xhtml11[]
[linkguilt-inlinemacro]
<a href="{target}.html">{target}{0?({0})}</a>
endif::backend-xhtml11[]
ifdef::guilt-asciidoc-no-roff[]
ifdef::doctype-manpage[]
# The following two small workarounds insert a simple paragraph after screen
[listingblock]
<example><title>{title}</title>
<literallayout>
|
</literallayout><simpara></simpara>
{title#}</example>

[verseblock]
<formalpara{id? id="{id}"}><title>{title}</title><para>
{title%}<literallayout{id? id="{id}"}>
{title#}<literallayout>
|
</literallayout>
{title#}</para></formalpara>
{title%}<simpara></simpara>
endif::doctype-manpage[]
endif::guilt-asciidoc-no-roff[]
endif::backend-docbook[]

ifdef::doctype-manpage[]
ifdef::backend-docbook[]
Expand All @@ -55,3 +88,8 @@ template::[header-declarations]
</refnamediv>
endif::backend-docbook[]
endif::doctype-manpage[]

ifdef::backend-xhtml11[]
[linkguilt-inlinemacro]
<a href="{target}.html">{target}{0?({0})}</a>
endif::backend-xhtml11[]

0 comments on commit 9f356a2

Please sign in to comment.