summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatthew Peveler <matt.peveler@gmail.com>2021-01-29 13:52:56 +0000
committerMatthew Peveler <matt.peveler@gmail.com>2021-01-29 13:52:56 +0000
commitfa5d6fcc451da8ccf7678329b10c392c17c3a414 (patch)
tree91816bab5ffc8c690409443e7e86fe2513cf729c
parentd9d29331890097705a18020977874b6550f34986 (diff)
downloadasciidoc-py3-fa5d6fcc451da8ccf7678329b10c392c17c3a414.tar.gz
replace asciidoc-file attribute with asciidoc-module
Signed-off-by: Matthew Peveler <matt.peveler@gmail.com>
-rw-r--r--asciidoc/asciidoc.py1
-rw-r--r--asciidoc/resources/asciidoc.conf4
2 files changed, 3 insertions, 2 deletions
diff --git a/asciidoc/asciidoc.py b/asciidoc/asciidoc.py
index da5769f..f55d629 100644
--- a/asciidoc/asciidoc.py
+++ b/asciidoc/asciidoc.py
@@ -1432,6 +1432,7 @@ class Document(object):
"""
t = time.time()
self.attributes['localdate'], self.attributes['localtime'] = date_time_str(t)
+ self.attributes['asciidoc-module'] = 'asciidoc'
self.attributes['asciidoc-version'] = VERSION
self.attributes['asciidoc-confdir'] = CONF_DIR
self.attributes['user-dir'] = USER_DIR
diff --git a/asciidoc/resources/asciidoc.conf b/asciidoc/resources/asciidoc.conf
index d1ca3fd..bee8603 100644
--- a/asciidoc/resources/asciidoc.conf
+++ b/asciidoc/resources/asciidoc.conf
@@ -550,7 +550,7 @@ emphasis-style=tags="emphasis"
strong-style=tags="strong"
monospaced-style=tags="monospaced"
header-style=tags="header"
-asciidoc-style=tags="asciidoc",subs=(),filter='"{python}" "{asciidoc-file}" -b {backend} {asciidoc-args}{lang? -a "lang={lang}@"}{icons? -a icons -a "iconsdir={iconsdir}"}{imagesdir? -a "imagesdir={imagesdir}"}{data-uri? -a data-uri} -a "indir={indir}"{trace? -a "trace={trace}"}{blockname? -a "blockname={blockname}"} -s -'
+asciidoc-style=tags="asciidoc",subs=(),filter='"{python}" -m "{asciidoc-module}" -b {backend} {asciidoc-args}{lang? -a "lang={lang}@"}{icons? -a icons -a "iconsdir={iconsdir}"}{imagesdir? -a "imagesdir={imagesdir}"}{data-uri? -a data-uri} -a "indir={indir}"{trace? -a "trace={trace}"}{blockname? -a "blockname={blockname}"} -s -'
[tabledef-nested]
# Same as [tabledef-default] but with different delimiter and separator.
@@ -564,7 +564,7 @@ emphasis-style=tags="emphasis"
strong-style=tags="strong"
monospaced-style=tags="monospaced"
header-style=tags="header"
-asciidoc-style=tags="asciidoc",subs=(),filter='"{python}" "{asciidoc-file}" -b {backend} {asciidoc-args}{lang? -a "lang={lang}@"}{icons? -a icons -a "iconsdir={iconsdir}"}{imagesdir? -a "imagesdir={imagesdir}"}{data-uri? -a data-uri} -a "indir={indir}"{trace? -a "trace={trace}"}{blockname? -a "blockname={blockname}"} -s -'
+asciidoc-style=tags="asciidoc",subs=(),filter='"{python}" -m "{asciidoc-module}" -b {backend} {asciidoc-args}{lang? -a "lang={lang}@"}{icons? -a icons -a "iconsdir={iconsdir}"}{imagesdir? -a "imagesdir={imagesdir}"}{data-uri? -a data-uri} -a "indir={indir}"{trace? -a "trace={trace}"}{blockname? -a "blockname={blockname}"} -s -'
#----------------------------------------
# Common block and macro markup templates