ASCIIDOC(1)
β¨ ASCIIDOC(1): the asciidoc command, bestie β¨
Okay so welcome to the ASCIIDOC(1) manual page π β this is literally the glow-up guide for the asciidoc command, and weβre gonna get through every flag together. No cap, itβs giving βsmall tool, big main character energyβ π.
β¨ NAME β¨
asciidoc β converts an AsciiDoc text file to HTML or DocBook π
πΈ SYNOPSIS πΈ
asciidoc [OPTIONS] FILE
π¦ DESCRIPTION π¦
The asciidoc(1) command translates the AsciiDoc text file FILE to DocBook or HTML. If FILE is - then the standard input is used. Thatβs the vibe check, periodt β¨.
π OPTIONS π
Every option, no skips, bestie β this is the whole menu π«Ά.
-a,--attribute=ATTRIBUTEβ Define or delete document attribute.ATTRIBUTEis formatted likeNAME=VALUE. Command-line attributes take precedence over document and configuration file attributes. Alternate acceptable forms areNAME(theVALUEdefaults to an empty string);NAME!(delete theNAMEattribute);NAME=VALUE@(do not override document or configuration file attributes). Values containing spaces should be enclosed in double-quote characters. This option may be specified more than once. A special attribute namedtracecontrols the output of diagnostic information.-b,--backend=BACKENDβ Backend output file format:docbook45,docbook5,xhtml11,html4,html5,slidy,wordpressorlatex(thelatexbackend is experimental). You can also use the backend alias nameshtml(aliased toxhtml11) ordocbook(aliased todocbook45). Defaults tohtml. The--backendoption is also used to manage backend plugins (see PLUGIN COMMANDS).-f,--conf-file=CONF_FILEβ Use configuration fileCONF_FILE. Configuration files processed in command-line order (after implicit configuration files). This option may be specified more than once.--doctestβ Run Python doctests in asciidoc module.-d,--doctype=DOCTYPEβ Document type:article,manpageorbook. Thebookdocument type is only supported by the docbook backends. Default document type isarticle.-c,--dump-confβ Dump configuration to stdout.--filter=FILTERβ Specify the name of a filter to be loaded (used to load filters that are not auto-loaded). This option may be specified more than once. The--filteroption is also used to manage filter plugins (see PLUGIN COMMANDS).-h,--help [TOPIC]β Print helpTOPIC.--help topicswill print a list of help topics,--help syntaxsummarizes AsciiDoc syntax,--help manpageprints the AsciiDoc manpage.-e,--no-confβ Exclude implicitly loaded configuration files except for those named like the input file (infile.confandinfile-backend.conf).-s,--no-header-footerβ Suppress document header and footer output.-o,--out-file=OUT_FILEβ Write output to fileOUT_FILE. Defaults to the base name of input file with backend extension. If the input is stdin then the outfile defaults to stdout. IfOUT_FILEis-then the standard output is used.-n,--section-numbersβ Auto-number HTML article section titles. Synonym for--attribute numbered.--safeβ Enable safe mode. Safe mode is disabled by default. AsciiDoc safe mode skips potentially dangerous scripted sections in AsciiDoc source files.--theme=THEMEβ Specify a theme name. Synonym for--attribute theme=THEME. The--themeoption is also used to manage theme plugins (see PLUGIN COMMANDS).-v,--verboseβ Verbosely print processing information and configuration file checks to stderr.--versionβ Print program version number.
π§ PLUGIN COMMANDS π§
The asciidoc(1) --filter, --backend and --theme options are used to install, remove and list AsciiDoc filter, backend and theme plugins. Syntax:
asciidoc OPTION install ZIP_FILE [PLUGINS_DIR]
asciidoc OPTION remove PLUGIN_NAME [PLUGINS_DIR]
asciidoc OPTION list
asciidoc OPTION build ZIP_FILE PLUGIN_SOURCE
Where:
OPTIONβasciidoc(1)--filter,--backendor--themeoption specifying the type of plugin.PLUGIN_NAMEβ A unique plugin name containing only alphanumeric or underscore characters.ZIP_FILEβ A Zip file containing plugin resources, the name must start with the plugin name e.g.my_filter-1.0.zippackages filtermy_filter.PLUGINS_DIRβ The directory containing installed plugins. Each plugin is contained in its own separate subdirectory which has the same name as the plugin.PLUGINS_DIRdefaults to the$HOME/.asciidoc/filters(for filter plugins) or$HOME/.asciidoc/backends(for backend plugins) or$HOME/.asciidoc/themes(for theme plugins).PLUGIN_SOURCEβ The name of a directory containing the plugin source files or the name of a single source file.
The plugin commands perform as follows:
installβ Create a subdirectory inPLUGINS_DIRwith the same name as the plugin then extract theZIP_FILEinto it.removeβ Delete thePLUGIN_NAMEplugin subdirectory and all its contents from thePLUGINS_DIR.listβ List the names and locations of all installed filter or theme plugins (including standard plugins installed in the global configuration directory).buildβ Create a plugin file namedZIP_FILEcontaining the files and subdirectories specified byPLUGIN_SOURCE. File and directory names starting with a period are skipped.
π ENVIRONMENT VARIABLES π
SOURCE_DATE_EPOCHβ If theSOURCE_DATE_EPOCHenvironment variable is set to a UNIX timestamp, then the{docdate},{doctime},{localdate}, and{localtime}attributes are computed in the UTC time zone, with any timestamps newer thanSOURCE_DATE_EPOCHreplaced bySOURCE_DATE_EPOCH. (This helps software using AsciiDoc to build reproducibly.)
π EXAMPLES π
Copy these exactly, bestie β theyβre literal π .
asciidoc asciidoc_file_name.txtβ Simply generate an html file from theasciidoc_file_name.txtthat is in current directory using asciidoc.asciidoc -b html5 asciidoc_file_name.txtβ Use the-bswitch to use one of the proposed backend or another one you installed on your computer.asciidoc -a data-uri -a icons -a toc -a max-width=55em article.txtβ Use the-aswitch to set attributes from command-line. AsciiDoc generated its stand-alone HTML user guide containing embedded CSS, JavaScript and images from the AsciiDoc article template with this command.asciidoc -b html5 -d manpage asciidoc.1.txtβ Generating the asciidoc manpage using the html5 backend.
β EXIT STATUS β
0β Success1β Failure (syntax or usage error; configuration error; document processing failure; unexpected error).
π BUGS π
See the AsciiDoc distribution BUGS file.
π AUTHOR π
AsciiDoc was originally written by Stuart Rackham. Many people have contributed to it.
π₯ RESOURCES π₯
- GitHub:
https://github.com/asciidoc/asciidoc-py3/ - Main web site:
https://asciidoc.org/
πΈ SEE ALSO πΈ
π COPYING π
Copyright (C) 2002-2013 Stuart Rackham.
Copyright (C) 2013-2022 AsciiDoc Contributors.
Free use of this software is granted under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
Cute sign-off π«Ά: this is the ASCIIDOC(1) manual page, dated 07/17/2024 β source/version vibes included, periodt β¨π
.
π¦ where this page comes from
- alpine 3.22: asciidoc-doc 10.2.1-r0 Β· GPL-2.0-or-later AND MIT
- alpine 3.23: asciidoc-doc 10.2.1-r0 Β· GPL-2.0-or-later AND MIT
- alpine 3.24: asciidoc-doc 10.2.1-r1 Β· GPL-2.0-or-later AND MIT
- arch rolling: asciidoc 10.2.1-3 Β· GPL-2.0-or-later
- opensuse-leap 16.0: asciidoc 10.2.1-160000.2.2 Β· GPL-2.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms