You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In my dabblings with AsciidoctorJ, I have found it convenient to use the gradle run task.
I'm not sure if this is generally useful, or even appropriate - but if so, it only requires a few lines of gradle.
To demonstrate what this looks like, I'll run the asciidoctor's --help
./gradlew run --args="--help"
which, on my computer outputs:
> Configure project :
No Signatory configured for project asciidoctorj. Skip signing! See https://docs.gradle.org/current/userguide/signing_plugin.html
No Signatory configured for project asciidoctorj-api. Skip signing! See https://docs.gradle.org/current/userguide/signing_plugin.html
No Signatory configured for project asciidoctorj-arquillian-extension. Skip signing! See https://docs.gradle.org/current/userguide/signing_plugin.html
No Signatory configured for project asciidoctorj-distribution. Skip signing! See https://docs.gradle.org/current/userguide/signing_plugin.html
No Signatory configured for project asciidoctorj-test-support. Skip signing! See https://docs.gradle.org/current/userguide/signing_plugin.html
> Task :asciidoctorj-distribution:run
Usage: asciidoctor [options] input files; use - to read from STDIN
Options:
-a, --attribute
a list of attributes, in the form key or key=value pair, to set on the
document
Default: []
-b, --backend
set output format backend (default: html5)
Default: html5
-B, --base-dir
base directory containing the document and resources (default: directory
of source file)
-cp, -classpath, --classpath
add a directory to the classpath may be specified more than once
-C, --compact
compact the output by removing blank lines (default: false)
Default: false
-D, --destination-dir
destination output directory (default: directory of source file)
-d, --doctype
document type to use when rendering output: [article, book, inline]
(default: article)
-e, --eruby
specify eRuby implementation to render built-in templates: [erb, erubis]
(default: erb)
Default: erb
-h, --help
show this message
-I, --load-path
add a directory to the $LOAD_PATH may be specified more than once
-s, --no-header-footer
suppress output of header and footer (default: false)
Default: false
-o, --out-file
output file (default: based on input file path); use - to output to
STDOUT
-q, --quiet
suppress warnings (default: false)
Default: false
-r, --require
require the specified library before executing the processor (using
require)
--safe
set safe mode level to safe (default: unsafe)
Default: false
-S, --safe-mode
set safe mode level explicitly: [unsafe, safe, server, secure] (default:
unsafe)
Default: UNSAFE
Possible Values: [UNSAFE, SAFE, SERVER, SECURE]
-n, --section-numbers
auto-number section titles in the HTML backend; disabled by default
Default: false
-R, --source-dir
source directory (requires destination directory)
-T, --template-dir
directory containing custom render templates the override the built-in
set
-E, --template-engine
template engine to use for the custom render templates (loads gem on
demand)
-t, --timings
enable timings mode (default: false)
Default: false
--trace
include backtrace information on errors (default: false)
Default: false
-v, --verbose
enable verbose mode (default: false)
Default: false
-V, --version
display the version and runtime environment
Default: false
BUILD SUCCESSFUL in 1s
10 actionable tasks: 1 executed, 9 up-to-date
[archives][0][archives][0][archives][0][archives][0][archives][0]
The text was updated successfully, but these errors were encountered:
In my dabblings with AsciidoctorJ, I have found it convenient to use the gradle
run
task.I'm not sure if this is generally useful, or even appropriate - but if so, it only requires a few lines of gradle.
To demonstrate what this looks like, I'll run the asciidoctor's
--help
./gradlew run --args="--help"
which, on my computer outputs:
The text was updated successfully, but these errors were encountered: