Configuration keys¶
Every key ubproject.toml accepts, with its type and default, one page per table.
This reference is generated from the configuration schema ubCode validates against;
the guides explain the keys with examples.
Guide: Top-level options.
Top-level keys¶
The keys outside any table, and the keys of [build] itself.
- $schema¶
- Type:
- string
The URL or path of the JSON schema for this file, which editors read to validate and complete it.
ubcignores this key.
- build¶
- Type:
- table
Output-build configuration.
Groups the settings of the
ubc buildoutput formats, one sub-table per format.
- build.smartquotes¶
- Type:
- boolean
- Default:
true
Whether straight quotes, dashes and ellipses in prose are typeset in the built output.
On by default, as in Sphinx:
"text"becomes “text”,it'sbecomes it’s,--an en dash,---an em dash and...an ellipsis, inubc build html,ubc build pdfand the editor preview. Code, literal blocks, math, raw content, object signatures and option names are never changed, and neither areneeds.json, need titles, table cells of need listings, or the editor’s hover and outline text. A backslash keeps a character as written (\"), in reStructuredText and in Markdown. The quote characters follow[project] language. Set tofalseto keep every character exactly as written.Equivalent to Sphinx’s
smartquotesconfiguration value. Asmartquotessetting in aconf.pyis not read.
- build.smartquotes_action¶
- Type:
- string
- Default:
""
Which typographic replacements
smartquotesmakes.Letters, in any order:
qquotes,Ddashes (--an en dash,---an em dash),doridashes the other way round,eellipses,bbacktick-style double quotes,Bbacktick-style double and single quotes, andw"entities. Or a preset:0nothing,1qbde,2qbDe,3qbie, or-1, which turns typographic characters back into ASCII.Unset or an empty string means
"qDe". An unknown letter is reported and ignored; the letters around it still apply, as in Sphinx.Equivalent to Sphinx’s
smartquotes_actionconfiguration value (except that an empty string means the default, not nothing).
- build_tags¶
- Type:
- array of strings
- Default:
[]
Build tags for conditional processing, mirroring Sphinx’s
tagsconfiguration.
- extend¶
- Type:
- string
The path to a configuration file to extend.
- virtual¶
- Type:
- boolean
- Default:
false
Virtual configurations do not correspond to an actual project. They are used for providing shared configuration defaults, or for workspaces that are not themselves projects.