DAPS(1)
π¦ DAPS β the manual page, bestie edition π¦
okay so. this is daps, from the DAPS manual section (that's section 1, the "user commands" girlies π
). Sit down, grab a strawberry π, and let me tell you about the single most iconic way to turn DocBook XML into literally everything else.
β¨ NAME β¨
daps β a whole entire environment to build HTML, PDF, ePUB and other formats from DocBook XML. no cap, it does all of it. π
β¨ SYNOPSIS β¨
daps -d DC-file [GLOBAL OPTIONS] subcommand [COMMAND OPTIONS]
daps --main MAIN-file [GLOBAL OPTIONS] subcommand [COMMAND OPTIONS]
likeβ¦ pick a DC-file, or pick a main file, throw your global options in, then tell it what to actually do. that's the whole vibe. π
β¨ DESCRIPTION β¨
So DAPS is a little bundle of stylesheets, scripts and Makefiles that lets you make HTML, PDF, ePUB and other formats out of DocBook XML with one single command. one. literally one. πβ¨ It also ships tools that generate profiled source tarballs so you can hand your XML sources off for translation or review. queen behavior.
And it doesn't stop there β DAPS also has tools that help you while you're writing the DocBook XML: linkchecker, validator, spellchecker, editor macros, and stylesheets for converting DocBook XML. it's giving full-service. π
Most of DAPS' functionality lives behind the command daps. Run daps help to get at the built-in tool documentation. And if you want the tea on one specific command, run daps subcommand help and it'll spill. π«Ά
β¨ GLOBAL OPTIONS β¨
okay this is the big one, stay with me. π§
--adocattr="NAME=VALUE"β Overwrite, define or delete an AsciiDoc document attribute.>Tooverwrite an attribute that's already defined in the AsciiDoc document, useNAME=VALUE, or justNAMEfor attributes that have no value. To delete a value that's set in the document, useNAME!. And to set a value that isn't already set in the document, useNAME=VALUE@. Default: unset. This option can be specified multiple times. It only works with AsciiDoc sources, and is ignored otherwise. π--adocimgdir=IMAGE_DIRβ Specify a directory for the images used in the AsciiDoc sources. It must contain all the images, subdirectories are ignored. Not required if the images live in the directory structure required for DocBook projects (see the DAPS manual). Default: unset. Only works with AsciiDoc sources, ignored otherwise. πΌοΈ--builddir=BUILDDIRβ The directory where every output DAPS generates will end up. Default:DOC DIR/build/--color=(0|1)β By default, errors, results, warnings and certain info messages get printed in color using bash color codes. Set it to'0'to turn the colors off. Default:1(and when the output doesn't go to a terminal, colored output is disabled automatically). π--commandsβ Show a list of the available DAPS sub commands. like a lil menu, slay.--debugβ Print debugging messages. Or, alternatively, go look at the--verbosityoptions for an output that's better readable. π--docconfig=DC-FILE,-d DC-FILEβ Path to the doc config file to use. Mandatory unless there's only a single DC-FILE in the current directory, or unless you've configured a default value (DOCCONF_DEFAULT) in~/.config/daps/dapsrc. Default: unset. Note: the options--docconfigand--mainexclude each other. they do NOT play nice together, pick one. π ββοΈ--fb_styleroot=PATH_TO_STYLESHEETβ Fallback styleroot directories. Can only be used together with--styleroot. By default the DocBook stylesheets are used as a fallback if custom styles for an output format aren't present. With this option you can specify a list of alternative fallbacks (space separated absolute paths). The directories get tested in the order you specify them, and the first one that applies to the requested format gets used. The original DocBook stylesheets are used as a last resort. Super useful if you've got forks of your custom stylesheets. π΄ Default: unset.--forceβ Force a rebuild of the document even when an up-to-date version already exists. no patience, just build it again bestie. π₯--help,-hβ Help π--jobsβ Specify how many parallel jobs to use. Higher numbers will significantly increase the processing speed, but will also set your machine under heavy load β up to a point where it may become (temporarily) unresponsive. π it will absolutely eat your CPU. Default: Use as many jobs as CPU cores are available.--main=FILE,-m FILEβ Path to the main file defining your document. Note: the options--mainand--docconfigexclude each other. again β one or the other, not both. β--schema=URNβ URN to a DocBook 5 schema that's to be used for validation. It'll be ignored when validating DocBook 4 documents. Note: to validate with a local schema, specify an absolute path with thefile://prefix (e.g.file:///foo/schema.rnc). π--styleroot=PATH_TO_STYLESHEETβ By default, DAPS uses the DocBook Stylesheets to create output. If you've got your own set of stylesheets, specify the absolute path to the stylesheet directory right here. The DocBook stylesheets get used as a fallback in case styles aren't defined for all output formats. π--verbosity=0,-v0β Verbosity Level 0 (print 1 line of results)--verbosity=1,-v1,-vβ Verbosity Level 1 (print intermediate results)--verbosity=2,-v2,-vvβ Verbosity Level 2 (print all files created)--verbosity=3,-v3,-vvvβ Verbosity Level 3 (print all commands, very verbose). Parallelization of jobs will be turned off, to increase the readability. π£οΈ so much talking but honestly so readable.--versionβ Print the version number β--xsltprocessor=PROCESSORβ Specify an XSLT processor that's used to transform the XML files. Currently supported are"xsltproc"and"saxon"(version 6). Default:xsltproc
β¨ SUBCOMMANDS β¨
help
Print this help. π«Ά
π Generate Documents
epubβ Generates an ePUB book πhtmlβ Generates an HTML book (chunked or single file HTML) πmanβ Generates a man page (yesss, the snake eats its tail, iconic π)mobiβ Generates an Amazon Kindle eBook πpdfβ Generates a PDF book (color, grayscale, printable) πtextβ Generates an ASCII bookwebhelpβ Generates an HTML book with collapsible TOC and search (experimental) β οΈ
π File Lists
list-fileβ Lists the filename that contains the ID specified with the mandatory parameter--rootid.list-srcfilesβ List source files (XML sources, images, entity declarations, DC-file) used by the document reference by the DC-file.list-srcfiles-unusedβ List files from thexml/andimages/src/directories not used by the document reference by the DC-file.list-images-missingβ List images referenced in the XML sources but missing in the images' source directory.list-images-multisrcβ List images for which have the same basename (e.g.foo.svgandfoo.png). Refer to the DAPS manual for more information.
π Cleaning up
cleanβ Remove all profiled sources and temporary files π§Ήclean-imagesβ Remove all generated imagesclean-packageβ Remove all generated package data for the given DC-file. Generated images and profiled sources will not be deleted.clean-resultsβ Remove all generated books, archives, and log files for the given DC-file. Generated images and profiled sources will not be deleted.clean-all,real-cleanβ Remove everything generated by DAPS. π³ the nuclear option, fr fr.
π Packaging
package-htmlβ Provide an HTML tarball (chunked HTML or single HTML), desktop, document, and/or page files (for KDE and GNOME).package-pdfβ Provide a PDF, desktop, document, and/or page files (for KDE and GNOME)package-srcβ Provide a TAR archive with profiled XML sources or AsciiDoc sources and graphics files. π¦
π Deploying
locdropβ Provide everything that is needed to translate the sources. βοΈunpack-locdropβ Unpack a localization drop packages source. Not supported for AsciiDoc projects.
π Other Commands
getimagesβ List or display images from a profiled DocBook XML file.linkcheckβ Checks URLs within<ulink>and<link>tags. πoptipngβ Optimize (size) source PNGs.profileβ Profile XML sources.spellcheckβ Spellchecks the file specified with--fileor the document specified by--rootid. βstylecheckβ Performs a style check on the given DC-file or rootid. Not supported for AsciiDoc projects.validateβ Validate profiled XML sources. Automatically profiles the XML sources if needed. Not supported for AsciiDoc projects.xmlformatβ Prettify the XML source files usingdaps-xmlformat. Not supported for AsciiDoc projects.
π File and Directory Names
target-nameβ Print resulting file name for target. target may be one ofpdf,epub,pdf,txttarget-dir-nameβ Print resulting directory name for target. target may behtml,manorwebhelp
π Debugging
bigfileβ Creates a single "big" XML file by resolvingxi:includes. Useful for detecting validation errors that cannot be found otherwise. Not supported for AsciiDoc projects.dapsenvβ Print a list of the most important make variables and their valueimagesβ Generates all images for the given DC-file or rootidshowvariableβ Print value of a given make variable:daps showvariable VARIABLE=VARIABLE_NAME
β¨ EXAMPLES β¨
Generate a single HTML page:
daps -d DC-example html --single
Generate ePUB using custom stylesheets:
daps -d DC-example --styleroot
/usr/share/xml/docbook/stylesheets/daps2013 epub
Generate PDF for the print shop using the XEP formatter
daps -d DC-example pdf --formmatter=xep --grayscale --cropmarks
Check links and show the result in a browser
daps -d DC-example linkcheck --show
periodt. copy paste those and go πββοΈπ¨
β¨ FILES β¨
/etc/daps/configβ The system wide configuration file. See the file's inline documentation for detailed information.~/.config/daps/dapsrcβ The per user configuration file. See the inline documentation of/etc/daps/configfor detailed information.
β¨ SEE ALSO β¨
https://opensuse.github.io/daps/β DAPS project homepage π- DAPS Quick Start[1] β Contains an overview of basic concepts and how to create your documents.
- DAPS User Guide[2] β Is intended for users who want to make efficient use of DocBook XML for editing and publishing their documentation. Key knowledge of XML and DocBook is expected, as well as key knowledge of using the Bash Shell (or command line interfaces in general). π
β¨ AUTHORS β¨
- Frank Sundermeyer
<fsundermeyer@opensuse.org>β Developer - Thomas Schraitle
<toms@opensuse.org>β Developer - Stefan Knorr β Developer
- Berthold Gunreben β Previous Developer of susedoc
- Jana Jaeger β Previous Developer of susedoc
we stan every single one of them π«Άπ
β¨ NOTES β¨
- DAPS Quick Start β
https://opensuse.github.io/daps/doc/art.daps.quick.html - DAPS User Guide β
https://opensuse.github.io/daps/doc/book.daps.user.html
okay that's the whole page bestie!! this one's daps @DAPS_VERSION@, dated 11/06/2025, and it lives in the DAPS(1) section of the manual. now go build something cute π
β¨π¦πΈ
π¦ where this page comes from
- ubuntu resolute: daps 3.3.2+cleaned1-7 Β· GPL-2.0-or-later
- ubuntu stonking: daps 3.3.2+cleaned1-7 Β· GPL-2.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms