DAPS supports the following AsciiDoc-specific command line options. These are global options and need to be specified before the subcommand. Additional configuration settings can be made in the DAPS configuration files (for example in a DC file).
CLI Option | Config Setting | Explanation |
---|---|---|
|
| Define or delete AsciiDoc document attributes. To overwrite an attribute already
defined in the AsciiDoc document, use Examples:
You may specify this option multiple times to set more than one attribute. You may also specify these attributes in the Doc Config file (DC-file) using the following syntax. This way the attributes will always be applied whenever you call DAPS with a DC-file. This can be handy when creating different versions of a document from a single source by using attributes and AsciiDoc’s if-statements to decide whether to display parts of the document or not (see Awesome Asciidoctor: Using Conditional Directives (https://blog.mrhaki.com/2014/08/awesome-asciidoc-using-conditional.html) for more information). You can create a DC-file containing different attribute settings for each document version.
Note that when using the config file option, you always have to prefix the
KEY=VALUE pair with Displaying Attributes in the Resulting Document: All AsciiDoc attributes passed to DAPS on the command line or via the DC-file
can be displayed in the document by using the contents of the variable
|
|
| Specify a directory for the images used in the AsciiDoc sources. Must contain all images, subdirectories are ignored. Examples:
|
| Specify whether to use
| |
| If set to "yes", the XML produced from the AsciiDoc sources will be processed again before DAPS generates output.
This can be used to change or clean up the XML.
The stylesheet to be used can be specified via
| |
| Stylesheet to post-process the XML produced from the AsciiDoc sources.
Requires | |
| If set to "yes" a multipart book in AsciiDoc will be converted to a set in DocBook. Each part of the original sources will becaome a book in DocBook. Require the AsciiDoc sources to only contain parts (one for what is to become a book) and no extra contant. By default this is set to "no". Example:
| |
| Same option as you would set by --doctype with |
The following subcommands support AsciiDoc-specific commands:
list-srcfiles
This subcommand lists all files that are used to build the document, including images and the DC file.
It supports several options for filtering the output.
To restrict the results to only AsciiDoc files, use the option --adoconly
.
To exclude AsciiDoc files from the results, use the option --noadoc
.
Examples:
tux > daps -d DC-adoc_test list-srcfiles /home/doc/documents/DC-adoc_test /home/doc/documents/adoc/appendix.adoc /home/doc/documents/adoc/book.adoc /home/doc/documents/adoc/part_block.adoc /home/doc/documents/adoc/part_inlines.adoc /home/doc/documents/images/src/dia/dia_example.dia /home/doc/documents/images/src/jpg/jpg_example.jpg /home/doc/documents/images/src/png/png_example.png /home/doc/documents/images/src/png/png_example2.png /home/doc/documents/images/src/svg/svg_example.svg tux > daps -d DC-adoc_test list-srcfiles --adoconly /home/doc/documents/adoc/appendix.adoc /home/doc/documents/adoc/book.adoc /home/doc/documents/adoc/part_block.adoc /home/doc/documents/adoc/part_inlines.adoc tux > daps -d DC-adoc_test list-srcfiles /home/doc/documents/DC-adoc_test /home/doc/documents/images/src/dia/dia_example.dia /home/doc/documents/images/src/jpg/jpg_example.jpg /home/doc/documents/images/src/png/png_example.png /home/doc/documents/images/src/png/png_example2.png /home/doc/documents/images/src/svg/svg_example.svg