LiveExampleOptions
type LiveExampleOptions =
{
Presets: LiveExamplePreset list
Highlighting: LiveExampleHighlighting
Fable: FableRelease
Tab: LiveExampleTab option
Target: LiveExampleTarget option
Css: string option
Template: string option
Stats: bool
FableTool: string option
OutputGrammars: TreeSitterGrammar list
}| Assembly | Nacara.Plugin.LiveExample |
Options for LiveExample.
Fields
Presets: LiveExamplePreset list
Presets: LiveExamplePreset listThe presets a fence can name.
Highlighting: LiveExampleHighlighting
Highlighting: LiveExampleHighlightingThe preset used by a fence that names none.
Unset, a bare snippet compiles on its own.
Fable: FableRelease
Fable: FableReleaseWhich build of the Fable compiler snippets are compiled by.
Tab: LiveExampleTab option
Tab: LiveExampleTab optionWhich tab a snippet opens on once it has run.
Unset, it opens on the console, or on the result when the snippet drew something and printed nothing. A snippet that failed to compile always opens on the console, whatever this says: the errors are there.
Target: LiveExampleTarget option
Target: LiveExampleTarget optionWhat a snippet is compiled to when its fence does not say.
Unset means JavaScript, the one target a reader's browser can run.
Stats: bool
Stats: boolWhether a snippet shows what its compiles cost.
A tab of timings, one row per run, kept so a change can be compared with the run before it.
FableTool: string option
FableTool: string optionThe Fable CLI used to precompile a preset's packages.
Unset, a package is compiled with every snippet, which costs the reader a second or two on the first run of a page.
OutputGrammars: TreeSitterGrammar list
OutputGrammars: TreeSitterGrammar listGrammars for colouring output this site's targets produce.
Name a grammar and the output tab for that target is coloured; name none and it is shown as plain text.