= Document Attributes Reference // TODO use icons or emoji for y and n :y: Yes :n: No :endash: – :url-epoch: https://reproducible-builds.org/specs/source-date-epoch/ Document attributes are used either to configure behavior in the processor or to relay information about the document and its environment. This page catalogs all the built-in (i.e., reserved) document attributes in AsciiDoc. Unless otherwise marked, these attributes can be modified (set or unset) from the API using the `:attributes` option, from the CLI using the `-a` option, or in the document (often in the document header) using an attribute entry. Use the follow legend to understand the columns and values in the tables on this page. [horizontal] Set By Default:: The attribute is automatically set and assigned a default value by the AsciiDoc processor. The default value is indicated in *bold* (e.g., `*skip*`). Allowable Values:: Allowable values for the attribute. Numeric values and values shown in _italic_ are instructional and indicate a value type (e.g., _any_, _empty_, _number_, 1{endash}5, etc.). + * _any_ -- Any value is accepted. * _empty_ -- Indicates the attribute doesn't require an explicit value. The attribute is simply turned on by being set. * _empty_[=`effective`] -- In some cases, an empty value is interpreted by the processor as one of the allowable non-empty values. This effective value is prefixed with an equals sign and enclosed in square brackets (e.g., [=`auto`]). An attribute reference will resolve to an empty value rather than the effective value. * (`implied`) -- Built-in attributes that are not set may have an implied value. The implied value is enclosed in parentheses (e.g., (`attributes`)). An implied value can't be resolved using an attribute reference. + If the attribute doesn't accept _any_ or _empty_, than you must only assign one of the allowable values or specified value type. Header Only:: The attribute must be set or unset by the end of the document header (i.e., set by the API, CLI, or in the document header). Otherwise, the assignment won't have any effect on the document. If an attribute is not marked as _Header Only_, it can be set anywhere in the document, assuming the attribute is not locked by the API or CLI. However, changing an attribute only affects behavior for content that follows the assignment (in document order). == Intrinsic attributes Intrinsic attributes are set automatically by the processor. These attributes provide information about the document being processed (e.g., `docfile`), the security mode under which the processor is running (e.g., `safe-mode-name`), and information about the user's environment (e.g., `user-home`). Many of these attributes are read only, which means they can't be modified (with some exceptions). Attributes which are not are marked as modifiable. Attributes marked as both modifiable and API/CLI Only can only be set from the API or CLI. All other attributes marked as modifiable must be set by the end of the header (i.e., Header Only). [cols="30m,20,^10,^10,30"] |=== .>|Name .>|Allowable Values .>|Modifiable .>|API/CLI Only .>|Notes |backend |_any_ + _ex._ html5 |{y} |{n} |The backend used to select and activate the converter that creates the output file. Usually named according to the output format (e.g., `html5`) |basebackend |_any_ + _ex._ html |{n} |n/a |The generic backend on which the backend is based. Typically derived from the backend value minus trailing numbers (e.g., the basebackend for `docbook5` is `docbook`). May also indicate the internal backend employed by the converter (e.g., the basebackend for `pdf` is `html`). |docdate |_date (ISO)_ + _ex._ 2019-01-04 |{y} |{n} |Last modified date of the source document.^[<>,<>]^ |docdatetime |_datetime (ISO)_ + _ex._ 2019-01-04 19:26:06 UTC |{y} |{n} |Last modified date and time of the source document.^[<>,<>]^ |docdir |_directory path_ + _ex._ /home/user/docs |If input is a string |{y} |Full path of the directory that contains the source document. Empty if the safe mode is SERVER or SECURE (to conceal the file's location). |docfile |_file path_ + _ex._ /home/user/docs/userguide.adoc |If input is a string |{y} |Full path of the source document. Truncated to the basename if the safe mode is SERVER or SECURE (to conceal the file's location). |docfilesuffix |_file extension_ + _ex._ .adoc |If input is a string |{y} |File extension of the source document, including the leading period. |docname |_file stem basename_ + _ex._ userguide |If input is a string |{y} |Root name of the source document (no leading path or file extension). |doctime |_time (ISO)_ + _ex._ 19:26:06 UTC |{y} |{n} |Last modified time of the source document.^[<>,<>]^ |docyear |_integer_ + _ex._ {docyear} |{y} |{n} |Year that the document was last modified.^[<>,<>]^ |embedded |_empty_ |{n} |n/a |Only set if content is being converted to an embedded document (i.e., body of document only). |filetype |_any_ + _ex._ html |If input is a string |{y} |File extension of the output file name (without leading period). |htmlsyntax |`html` + `xml` |{n} |n/a |Syntax used when generating the HTML output. Controlled by and derived from the backend name (html=html or xhtml=html). |localdate |_date (ISO)_ + _ex._ 2019-02-17 |{y} |{n} |Date when the document was converted.^[<>]^ |localdatetime |_datetime (ISO)_ + _ex._ 2019-02-17 19:31:05 UTC |{y} |{n} |Date and time when the document was converted.^[<>]^ |localtime |_time (ISO)_ + _ex._ 19:31:05 UTC |{y} |{n} |Time when the document was converted.^[<>]^ |localyear |_integer_ + _ex._ {localyear} |{y} |{n} |Year when the document was converted.^[<>]^ |outdir |_directory path_ + _ex._ /home/user/docs/dist |{n} |n/a |Full path of the output directory. (Cannot be referenced in the content. Only available to the API once the document is converted). |outfile |_file path_ + _ex._ /home/user/docs/dist/userguide.html |{n} |n/a |Full path of the output file. (Cannot be referenced in the content. Only available to the API once the document is converted). |outfilesuffix |_file extension_ + _ex._ .html |{y} |{n} |File extension of the output file (starting with a period) as determined by the backend (`.html` for `html`, `.xml` for `docbook`, etc.). |safe-mode-level |`0` + `1` + `10` + `20` |{n} |n/a |Numeric value of the safe mode setting. (0=UNSAFE, 1=SAFE, 10=SERVER, 20=SECURE). |safe-mode-name |`UNSAFE` + `SAFE` + `SERVER` + `SECURE` |{n} |n/a |Textual value of the safe mode setting. |safe-mode-unsafe |_empty_ |{n} |n/a |Set if the safe mode is UNSAFE. |safe-mode-safe |_empty_ |{n} |n/a |Set if the safe mode is SAFE. |safe-mode-server |_empty_ |{n} |n/a |Set if the safe mode is SERVER. |safe-mode-secure |_empty_ |{n} |n/a |Set if the safe mode is SECURE. |user-home |_directory path_ + _ex._ /home/user |{n} |n/a |Full path of the home directory for the current user. Masked as `.` if the safe mode is SERVER or SECURE. |=== [[note-docdatetime]]^[1]^ Only reflects the last modified time of the source document file. It does not consider the last modified time of files which are included. [[note-sourcedateepoch]]^[2]^ If the SOURCE_DATE_EPOCH environment variable is set, the value assigned to this attribute is built from a UTC date object that corresponds to the timestamp (as an integer) stored in that environment variable. This override offers one way to make the conversion reproducible. See the {url-epoch}[source date epoch specification] for more information about the SOURCE_DATE_EPOCH environment variable. Otherwise, the date is expressed in the local time zone, which is reported as a time zone offset (e.g., `-0600`) or UTC if the time zone offset is 0). To force the use of UTC, set the `TZ=UTC` environment variable when invoking Asciidoctor. == Compliance attributes [cols="30m,20,^10,^10,30"] |=== .>|Name .>|Allowable Values .>|Set By Default .>|Header Only .>|Notes |attribute-missing |`drop` + `drop-line` + `*skip*` + `warn` |{y} |{n} |Controls how xref:unresolved-references.adoc#missing[missing attribute references] are handled. |attribute-undefined |`drop` + `*drop-line*` |{y} |{n} |Controls how xref:unresolved-references.adoc#undefined[attribute unassignments] are handled. |compat-mode |_empty_ |{n} |{n} |Controls when the legacy parsing mode is used to parse the document. |experimental |_empty_ |{n} |{y} |Enables xref:macros:ui-macros.adoc[] and the xref:macros:keyboard-macro.adoc[]. |reproducible |_empty_ |{n} |{y} |Prevents last-updated date from being added to HTML footer or DocBook info element. Useful for storing the output in a source code control system as it prevents spurious changes every time you convert the document. //Alternatively, you can use the SOURCE_DATE_EPOCH environment variable to fix the value. |skip-front-matter |_empty_ |{n} |{y} |Consume YAML-style frontmatter at top of document and store it in `front-matter` attribute. //<> |=== [#builtin-attributes-i18n] == Localization and numbering attributes [cols="30m,20,^10,^10,30"] |=== .>|Name .>|Allowable Values .>|Set By Default .>|Header Only .>|Notes |appendix-caption |_any_ + `*Appendix*` |{y} |{n} |Label added before an xref:sections:appendix.adoc[appendix title]. |appendix-number |_character_ + (`@`) |{n} |{n} |Sets the seed value for the appendix number sequence.^[<>]^ |appendix-refsig |_any_ + `*Appendix*` |{y} |{n} |Signifier added to Appendix title cross references. |caution-caption |_any_ + `*Caution*` |{y} |{n} |Text used to label CAUTION admonitions when icons aren't enabled. |chapter-number |_number_ + (`0`) |{n} |{n} |Sets the seed value for the chapter number sequence.^[<>]^ _Book doctype only_. |chapter-refsig |_any_ + `*Chapter*` |{y} |{n} |Signifier added to Chapter titles in cross references. _Book doctype only_. |chapter-signifier |_any_ |{n} |{n} |xref:sections:chapters.adoc[Label added to level-1 section titles (chapters)]. _Book doctype only_. |example-caption |_any_ + `*Example*` |{y} |{n} |Text used to label example blocks. |example-number |_number_ + (`0`) |{n} |{n} |Sets the seed value for the example number sequence.^[<>]^ |figure-caption |_any_ + `*Figure*` |{y} |{n} |Text used to label images and figures. |figure-number |_number_ + (`0`) |{n} |{n} |Sets the seed value for the figure number sequence.^[<>]^ |important-caption |_any_ + `*Important*` |{y} |{n} |Text used to label IMPORTANT admonitions when icons are not enabled. |lang |_valid XML language code_ + (`en`) |{n} |{y} |Language used on root element of the output document. |last-update-label |_any_ + `*Last updated*` |{y} |{y} |Text used for “Last updated” label in footer. |listing-caption |_any_ |{n} |{n} |Text used to label listing blocks. |listing-number |_number_ + (`0`) |{n} |{n} |Sets the seed value for the listing number sequence.^[<>]^ |manname-title |_any_ + (`Name`) |{n} |{y} |Label for program name section in the man page. |nolang |_empty_ |{n} |{y} |Prevents `lang` attribute from being added to root element of the output document. |note-caption |_any_ + `*Note*` |{y} |{n} |Text used to label NOTE admonitions when icons aren't enabled. |part-refsig |_any_ + `*Part*` |{y} |{n} |Signifier added to Part titles in cross references. _Book doctype only_. |part-signifier |_any_ |{n} |{n} |xref:sections:chapters.adoc[Label added to level-0 section titles (parts)]. _Book doctype only_. |preface-title |_any_ |{n} |{n} |Title text for an anonymous preface when `doctype` is `book`. |section-refsig |_any_ + `*Section*` |{y} |{n} |Signifier added to title of numbered sections in cross reference text. |table-caption |_any_ + `*Table*` |{y} |{n} |Text of label prefixed to table titles. |table-number |_number_ + (`0`) |{n} |{n} |Sets the seed value for the table number sequence.^[<>]^ |tip-caption |_any_ + `*Tip*` |{y} |{n} |Text used to label TIP admonitions when icons aren't enabled. |toc-title |_any_ + `*Table of Contents*` |{y} |{y} |xref:toc:title.adoc[Title for table of contents]. |untitled-label |_any_ + `*Untitled*` |{y} |{y} |Default document title if document doesn't have a document title. |version-label |_any_ + `*Version*` |{y} |{y} |See xref:document:version-label.adoc[]. |warning-caption |_any_ + `*Warning*` |{y} |{n} |Text used to label TIP admonitions when icons aren't enabled. |=== == Document metadata attributes [cols="30m,20,^10,^10,30"] |=== .>|Name .>|Allowable Values .>|Set By Default .>|Header Only .>|Notes |app-name |_any_ |{n} |{y} |Adds `application-name` meta element for mobile devices inside HTML document head. |author |_any_ |Extracted from author info line |{y} |Can be set automatically via the author info line or explicitly. See xref:document:author-information.adoc[]. |authorinitials |_any_ |Extracted from `author` attribute |{y} |Derived from the author attribute by default. See xref:document:author-information.adoc[]. |authors |_any_ |Extracted from author info line |{y} |Can be set automatically via the author info line or explicitly as a comma-separated value list. See xref:document:author-information.adoc[]. |copyright |_any_ |{n} |{y} |Adds `copyright` meta element in HTML document head. |doctitle |_any_ |Yes, if document has a doctitle |{y} |See xref:document:title.adoc#reference-doctitle[doctitle attribute]. |description |_any_ |{n} |{y} |Adds xref:document:metadata.adoc#description[description] meta element in HTML document head. |email |_any_ |Extracted from author info line |{y} |Can be any inline macro, such as a URL. See xref:document:author-information.adoc[]. |firstname |_any_ |Extracted from author info line |{y} |See xref:document:author-information.adoc[]. |front-matter |_any_ |Yes, if front matter is captured |n/a |If `skip-front-matter` is set via the API or CLI, any YAML-style frontmatter skimmed from the top of the document is stored in this attribute. |keywords |_any_ |{n} |{y} |Adds xref:document:metadata.adoc#keywords[keywords] meta element in HTML document head. |lastname |_any_ |Extracted from author info line |{y} |See xref:document:author-information.adoc[]. |middlename |_any_ |Extracted from author info line |{y} |See xref:document:author-information.adoc[]. |orgname |_any_ |{n} |{y} |Adds `` element value to DocBook info element. |revdate |_any_ |Extracted from revision info line |{y} |See xref:document:revision-information.adoc[]. |revremark |_any_ |Extracted from revision info line |{y} |See xref:document:revision-information.adoc[]. |revnumber |_any_ |Extracted from revision info line |{y} |See xref:document:revision-information.adoc[]. |title |_any_ |{n} |{y} |Value of `` element in HTML `<head>` or main DocBook `<info>` of output document. Used as a fallback when the document title is not specified. See xref:document:title.adoc#title-attr[title attribute]. |=== == Section title and table of contents attributes [cols="30m,20,^10,^10,30"] |=== .>|Name .>|Allowable Values .>|Set By Default .>|Header Only .>|Notes |idprefix |_valid XML ID start character_ + `*_*` |{y} |{n} |Prefix of auto-generated section IDs. See xref:sections:id-prefix-and-separator.adoc#prefix[Change the ID prefix]. |idseparator |_valid XML ID character_ + `*_*` |{y} |{n} |Word separator used in auto-generated section IDs. See xref:sections:id-prefix-and-separator.adoc#separator[Change the ID word separator]. |leveloffset |{startsb}+-{endsb}0{endash}5 |{n} |{n} |Increases or decreases level of headings below assignment. A leading + or - makes the value relative. //<<include-partitioning>> |partnums |_empty_ |{n} |{n} |Enables numbering of parts. See xref:sections:part-numbers-and-labels.adoc#partnums[Number book parts]. _Book doctype only_. |sectanchors |_empty_ |{n} |{n} |xref:sections:title-links.adoc#anchor[Adds anchor in front of section title] on mouse cursor hover. |sectids |*_empty_* |{y} |{n} |Generates and assigns an ID to any section that does not have an ID. See xref:sections:ids.adoc#disable[Disable ID generation]. |sectlinks |_empty_ |{n} |{n} |xref:sections:title-links.adoc[Turns section titles into self-referencing links]. |sectnums |_empty_ + `all` |{n} |{n} |xref:sections:numbers.adoc[Numbers sections] to depth specified by `sectnumlevels`. |sectnumlevels |0{endash}5 + (`3`) |{n} |{n} |xref:sections:numbers.adoc#numlevels[Controls depth of section numbering]. |title-separator |_any_ |{n} |{y} |Character used to xref:document:subtitle.adoc[separate document title and subtitle]. |toc |_empty_[=`auto`] + `auto` + `left` + `right` + `macro` + `preamble` |{n} |{y} |Turns on xref:toc:index.adoc[table of contents] and specifies xref:toc:position.adoc[its location]. |toclevels |1{endash}5 + (`2`) |{n} |{y} |xref:toc:section-depth.adoc[Maximum section level to display]. |fragment |_empty_ |{n} |{y} |Informs parser that document is a fragment and that it shouldn't enforce proper section nesting. |=== == General content and formatting attributes [cols="30m,20,^10,^10,30"] |=== .>|Name .>|Allowable Values .>|Set By Default .>|Header Only .>|Notes |asset-uri-scheme |_empty_ + `http` + (`https`) |{n} |{y} |Controls protocol used for assets hosted on a CDN. |cache-uri |_empty_ |{n} |{y} |Cache content read from URIs. //<<caching-uri-content>> |data-uri |_empty_ |{n} |{y} |Embed graphics as data-uri elements in HTML elements so file is completely self-contained. //<<managing-images>> |docinfo |_empty_[=`private`] + `shared` + `private` + `shared-head` + `private-head` + `shared-footer` + `private-footer` |{n} |{y} |Read input from one or more DocBook info files. //<<naming-docinfo-files>> |docinfodir |_directory path_ |{n} |{y} |Location of docinfo files. Defaults to directory of source file if not specified. //<<locating-docinfo-files>> |docinfosubs |_comma-separated substitution names_ + (`attributes`) |{n} |{y} |AsciiDoc substitutions that are applied to docinfo content. //<<attribute-substitution-in-docinfo-files>> |doctype |`*article*` + `book` + `inline` + `manpage` |{y} |{y} |Output document type. //<<document-types>> |eqnums |_empty_[=`AMS`] + `AMS` + `all` + `none` |{n} |{y} |Controls automatic equation numbering on LaTeX blocks in HTML output (MathJax). If the value is AMS, only LaTeX content enclosed in an `+\begin{equation}...\end{equation}+` container will be numbered. If the value is all, then all LaTeX blocks will be numbered. See https://docs.mathjax.org/en/v2.5-latest/tex.html#automatic-equation-numbering[equation numbering in MathJax]. |hardbreaks-option |_empty_ |{n} |{n} |xref:blocks:hard-line-breaks.adoc#per-document[Preserve hard line breaks]. |hide-uri-scheme |_empty_ |{n} |{n} |xref:macros:links.adoc#hide-uri-scheme[Hides URI scheme] for raw links. |media |`prepress` + `print` + (`screen`) |{n} |{y} |Specifies media type of output and enables behavior specific to that media type. _PDF converter only_. |nofooter |_empty_ |{n} |{y} |Turns off footer. //<<footer-docinfo-files>> |nofootnotes |_empty_ |{n} |{y} |Turns off footnotes. //<<user-footnotes>> |noheader |_empty_ |{n} |{y} |Turns off header. //<<doc-header>> |notitle |_empty_ |{n} |{y} |xref:document:title.adoc#hide-or-show[Hides the doctitle in an embedded document]. Mutually exclusive with the `showtitle` attribute. |outfilesuffix |*_file extension_* + _ex._ .html |{y} |{y} |File extension of output file, including dot (`.`), such as `.html`. // <<navigating-between-source-files>> |pagewidth |_integer_ + (`425`) |{n} |{y} |Page width used to calculate the absolute width of tables in the DocBook output. |relfileprefix |_empty_ + _path segment_ |{n} |{n} |The path prefix to add to relative xrefs. //<<navigating-between-source-files>> |relfilesuffix |*_file extension_* + _path segment_ + _ex._ .html |{y} |{n} |The path suffix (e.g., file extension) to add to relative xrefs. Defaults to the value of the `outfilesuffix` attribute. (Preferred over modifying outfilesuffix). //|<<navigating-between-source-files>> |show-link-uri |_empty_ |{n} |{n} |Prints the URI of a link after the link text. _PDF converter only_. |showtitle |_empty_ |{n} |{y} |xref:document:title.adoc#hide-or-show[Displays the doctitle in an embedded document]. Mutually exclusive with the `notitle` attribute. |stem |`_empty_`[=`asciimath`] + `asciimath` + `latexmath` |{n} |{y} |Enables xref:stem:stem.adoc[mathematics processing and interpreter]. |tabsize |_integer_ (≥ 0) |{n} |{n} |Converts tabs to spaces in verbatim content blocks (e.g., listing, literal). |webfonts |*_empty_* |{y} |{y} |Control whether webfonts are loaded when using the default stylesheet. When set to empty, uses the default font collection from Google Fonts. A non-empty value replaces the `family` query string parameter in the Google Fonts URL. //<<applying-a-theme>> and {url-org}/asciidoctor.org/issues/410[issue #410^] |xrefstyle |`full` + `short` + `basic` |{n} |{n} |xref:macros:xref-text-and-style.adoc#cross-reference-styles[Formatting style to apply to cross reference text]. //_Introduced in 1.5.6._ |=== == Image and icon attributes [cols="30m,20,^10,^10,30"] |=== .>|Name .>|Allowable Values .>|Set By Default .>|Header Only .>|Notes |iconfont-cdn |_url_ + (default CDN URL) |{n} |{y} |If not specified, uses the cdnjs.com service. Overrides CDN used to link to the Font Awesome stylesheet. |iconfont-name |_any_ + (`font-awesome`) |{n} |{y} |Overrides the name of the icon font stylesheet. //<<icons>> |iconfont-remote |*_empty_* |{y} |{y} |Allows use of a CDN for resolving the icon font. Only relevant used when value of `icons` attribute is `font`. |icons |_empty_[=`image`] + `image` + `font` |{n} |{y} |Chooses xref:macros:icons.adoc#icons-attribute[images or font icons] instead of text for admonitions. Any other value is assumed to be an icontype and sets the value to empty (image-based icons). |iconsdir |_directory path_ + _url_ + _ex._ ./images/icons |{y} |{n} |Location of non-font-based image icons. Defaults to the _icons_ folder under `imagesdir` if `imagesdir` is specified and `iconsdir` is not specified. |icontype |`jpg` + (`png`) + `gif` + `svg` |{n} |{n} |File type for image icons. Only relevant when using image-based icons. |imagesdir |*_empty_* + _directory path_ + _url_ |{y} |{n} |Location of image files. |=== == Source highlighting and formatting attributes [cols="30m,20,^10,^10,30"] |=== .>|Name .>|Allowable Values .>|Set By Default .>|Header Only .>|Notes |coderay-css |(`class`) + `style` |{n} |{y} |Controls whether CodeRay uses CSS classes or inline styles. |coderay-linenums-mode |`inline` + (`table`) |{n} |{y} |Sets how CodeRay inserts line numbers into source listings. |coderay-unavailable |_empty_ |{n} |{y} |Tells processor not to load CodeRay. |highlightjsdir |_directory path_ + _url_ + (default CDN URL) |{n} |{y} |Location of the highlight.js source code highlighter library. |highlightjs-theme |_highlight.js style name_ + (`github`) |{n} |{y} |Name of theme used by highlight.js. |prettifydir |_directory path_ + _url_ + (default CDN URL) |{n} |{y} |Location of non-CDN prettify source code highlighter library. |prettify-theme |_prettify style name_ + (`prettify`) |{n} |{y} |Name of theme used by prettify. |prewrap |*_empty_* |{y} |{n} |xref:asciidoctor:html-backend:verbatim-line-wrap.adoc[Wrap wide code listings]. |pygments-css |(`class`) + `style` |{n} |{y} |Controls whether Pygments uses CSS classes or inline styles. |pygments-linenums-mode |(`table`) + `inline` |{n} |{y} |Sets how Pygments inserts line numbers into source listings. |pygments-style |_Pygments style name_ + (`default`) |{n} |{y} |Name of style used by Pygments. |pygments-unavailable |_empty_ |{n} |{y} |Tells the processor not to load Pygments. |source-highlighter |`coderay` + `highlight.js` + `pygments` + `rouge` |{n} |{y} |xref:verbatim:source-highlighter.adoc[Specifies source code highlighter]. Any other value is permitted, but must be supported by a custom syntax highlighter adapter. |source-indent |_integer_ |{n} |{n} |Normalize block indentation in source code listings. //<<normalize-block-indentation>> |source-language |_source code language name_ |{n} |{n} |xref:verbatim:source-highlighter.adoc[Default language for source code blocks]. |source-linenums-option |_empty_ |{n} |{n} |Turns on line numbers for source code listings. //_Introduced in 1.5.6._ |=== == HTML styling attributes [cols="30m,20,^10,^10,30"] |=== .>|Name .>|Allowable Values .>|Set By Default .>|Header Only .>|Notes |copycss |*_empty_* + _file path_ |{y} |{y} |Copy CSS files to output. Only relevant when the `linkcss` attribute is set. //<<applying-a-theme>> |css-signature |_valid XML ID_ |{n} |{y} |Assign value to `id` attribute of HTML `<body>` element. *Preferred approach is to assign an ID to document title*. |linkcss |_empty_ |{n} |{y} |Links to stylesheet instead of embedding it. Can't be unset in SECURE mode. //<<styling-the-html-with-css>> |max-width |CSS length (e.g. 55em, 12cm, etc) |{n} |{y} |Constrains maximum width of document body. *Not recommended. Use CSS stylesheet instead.* |stylesdir |_directory path_ + _url_ + `*.*` |{y} |{y} |Location of CSS stylesheets. //<<creating-a-theme>> |stylesheet |*_empty_* + _file path_ |{y} |{y} |CSS stylesheet file name. An empty value tells the converter to use the default stylesheet. //<<applying-a-theme>> |toc-class |_valid CSS class name_ + `*toc2*` or (`toc`) |{n} |{y} |CSS class on the table of contents container. //<<user-toc>> |=== == Manpage attributes The attribute in this section are only relevant when using the manpage doctype and/or backend. [cols="30m,20,^10,^10,30"] |=== .>|Name .>|Allowable Values .>|Set By Default .>|Header Only .>|Notes |mantitle |_any_ |Based on content. |{y} |Metadata for man page output. //<<man-pages>> |manvolnum |_any_ |Based on content. |{y} |Metadata for man page output. //<<man-pages>> |manname |_any_ |Based on content. |{y} |Metadata for man page output. //<<man-pages>> |manpurpose |_any_ |Based on content |{y} |Metadata for man page output. //<<man-pages>> |man-linkstyle |_link format pattern_ + (`blue R <>`) |{n} |{y} |Link style in man page output. //<<man-pages>> |mansource |_any_ |{n} |{y} |Source (e.g., application and version) the man page describes. //<<man-pages>> |manmanual |_any_ |{n} |{y} |Manual name displayed in the man page footer. //<<man-pages>> |=== == Security attributes Since these attributes deal with security, they can only be set from the API or CLI. [cols="30m,20,^10,^10,30"] |=== .>|Name .>|Allowable Values .>|Set By Default .>|API/CLI Only .>|Notes |allow-uri-read |_empty_ |{n} |{y} |Allows data to be read from URLs. //<<include-uri>> |max-attribute-value-size |_integer_ (≥ 0) + `*4096*` |If safe mode is SECURE |{y} |Limits maximum size (in bytes) of a resolved attribute value. Default value is only set in SECURE mode. Since attributes can reference attributes, it's possible to create an output document disproportionately larger than the input document without this limit in place. |max-include-depth |_integer_ (≥ 0) + `*64*` |{y} |{y} |Curtail infinite include loops and to limit the opportunity to exploit nested includes to compound the size of the output document. //<<include-directive>> |=== [[note-number]]^[1]^ The `-number` attributes are created and managed automatically by the AsciiDoc processor for numbered blocks. They are only used if the corresponding `-caption` attribute is set (e.g., `listing-caption`) and the block has a title. In Asciidoctor, setting the `-number` attributes will influence the number used for subsequent numbered blocks of that type. However, you should not rely on this behavior as it may change in future versions. // end::table[]