table of contents
ASCIIDOCTOR(1) | Asciidoctor Manual | ASCIIDOCTOR(1) |
NAME¶
asciidoctor - converts AsciiDoc source files to HTML, DocBook, and other formats
SYNOPSIS¶
asciidoctor [OPTION]... FILE...
DESCRIPTION¶
The asciidoctor(1) command converts the AsciiDoc source file(s) FILE to HTML5, DocBook 5, man(ual) page, and other custom output formats.
If FILE is - then the AsciiDoc source is read from standard input.
OPTIONS¶
Security Settings¶
-B, --base-dir=DIR
-S, --safe-mode=SAFE_MODE
--safe
Document Settings¶
-a, --attribute=ATTRIBUTE
ATTRIBUTE is normally formatted as a key-value pair, in the form NAME=VALUE. Alternate forms are NAME (where the VALUE defaults to an empty string), NAME! (unsets the NAME attribute), and NAME=VALUE@ (or NAME@=VALUE) (where VALUE does not override the NAME attribute if it’s already defined in the source document). A value containing spaces must be enclosed in quotes, in the form NAME="VALUE WITH SPACES".
This option may be specified more than once.
-b, --backend=BACKEND
-d, --doctype=DOCTYPE
Document Conversion¶
-D, --destination-dir=DIR
-E, --template-engine=NAME
-e, --embedded
-I, --load-path=DIRECTORY
-n, --section-numbers
-o, --out-file=OUT_FILE
-R, --source-dir=DIR
-r, --require=LIBRARY
-s, --no-header-footer
-T, --template-dir=DIR
If there is a subfolder that matches the engine name (if specified), that folder is appended to the template directory path. Similarly, if there is a subfolder in the resulting template directory that matches the name of the backend, that folder is appended to the template directory path.
This option may be specified more than once. Matching templates found in subsequent directories override ones previously discovered.
Processing Information¶
--failure-level=LEVEL
-q, --quiet
--trace
-v, --verbose
-w, --warnings
-t, --timings
Program Information¶
-h, --help [TOPIC]
-V, --version
-v can also be used if no source files are specified.
ENVIRONMENT¶
Asciidoctor honors the SOURCE_DATE_EPOCH environment variable. If this variable is assigned an integer value, that value is used as the epoch of all input documents and as the local date and time. See <https://reproducible-builds.org/specs/source-date-epoch/> for more information about this environment variable.
EXIT STATUS¶
0
1
BUGS¶
Refer to the Asciidoctor issue tracker at <https://github.com/asciidoctor/asciidoctor/issues?q=is%3Aopen>.
AUTHORS¶
Asciidoctor is led and maintained by Dan Allen and Sarah White and has received contributions from many individuals in the Asciidoctor community. The project was started in 2012 by Ryan Waldron based on a prototype written by Nick Hengeveld for the Git website. Jason Porter wrote the first implementation of the CLI interface provided by this command.
AsciiDoc.py was created by Stuart Rackham and has received contributions from many individuals in the AsciiDoc.py community.
RESOURCES¶
Project website: <https://asciidoctor.org>
Project documentation: <https://docs.asciidoctor.org>
Community chat: <https://chat.asciidoctor.org>
Source repository: <https://github.com/asciidoctor/asciidoctor>
Mailing list archive: <https://discuss.asciidoctor.org>
COPYING¶
Copyright (C) 2012-present Dan Allen, Sarah White, Ryan Waldron, and the individual contributors to Asciidoctor. Use of this software is granted under the terms of the MIT License.
2018-03-20 | Asciidoctor 2.0.23 |