# This file is an AsciiDoc configuration file that makes
# AsciiDoc conform with Asciidoctor's fixes and customizations.
#
# Place this file in the same directory as your AsciiDoc document and the
# AsciiDoc processor (asciidoc) will automatically use it.
[miscellaneous]
newline=\n
[attributes]
# make html5 the default html backend
backend-alias-html=html5
linkcss=
apostrophe='
asterisk=*
caret=^
backtick=`
# plus introduced in AsciiDoc 8.6.9
plus=+
space=" "
tilde=~
# enables fenced code blocks
# I haven't sorted out yet how to do syntax highlighting
[blockdef-fenced-code]
delimiter=^```\w*$
template::[blockdef-listing]
# enables literal block to be used as code block
[blockdef-literal]
template::[source-filter-style]
ifdef::basebackend-html[]
[literal-inlinemacro]
{passtext}
[tags]
monospaced=|
[monospacedwords]
{words}
[tabletags-monospaced]
paragraph=
|
# support for document title in embedded documents
ifeval::[not config.header_footer]
[preamble]
{title={doctitle}}
{set:title-rendered:}
[sect1]
{title-rendered%}{doctitle}
{numbered?{sectnum} }{title}
|
endif::[]
# override to add the admonition name to the class attribute of the outer element
[admonitionblock]
{data-uri%}{icons#}
{data-uri#}{icons#}
{icons%} {caption}
|
{title}
|
|
# a common template for emitting the attribute for a quote or verse block
# don't output attribution div if attribution or citetitle are both empty
[attribution]
{attribution,citetitle#}
{citetitle}{attribution?
}
— {attribution}
{attribution,citetitle#}
# override to use blockquote element for content and cite element for cite title
[quoteblock]
{title}
|
template::[attribution]
# override to use cite element for cite title
[verseblock]
{title}
|
template::[attribution]
endif::basebackend-html[]
# Override docinfo to support subtitle
ifdef::basebackend-docbook[]
[docinfo]
ifndef::notitle[]
{set2:subtitle_offset:{eval:'{doctitle}'.rfind(': ')}}
{eval:{subtitle_offset} != -1} {eval:'{doctitle}'[0:{subtitle_offset}]}
{eval:{subtitle_offset} != -1} {eval:'{doctitle}'[{subtitle_offset} + 2:]}
{eval:{subtitle_offset} < 0} {doctitle}
endif::notitle[]
{revdate}
# To ensure valid articleinfo/bookinfo when there is no AsciiDoc header.
{doctitle%}{revdate%}{docdate}
{authored#}
{firstname}
{middlename}
{lastname}
{email}
{authored#}
{authorinitials}
{revnumber?{revnumber}}{revdate}{authorinitials?{authorinitials}}{revremark?{revremark}}
{docinfo1,docinfo2#}{include:{docdir}/docinfo.xml}
{docinfo,docinfo2#}{include:{docdir}/{docname}-docinfo.xml}
{orgname}
endif::basebackend-docbook[]