Automated settings reference
Elastic Docs V3 can build a Markdown settings reference from a YAML source file.
The {settings} directive is generic. Although the largest current examples come from Kibana, the directive can be used by any documentation repository that wants to render structured settings from YAML.
::::{settings} /syntax/settings-with-applies-example.yml
::::
The schema below reflects the structure currently supported by docs-builder. For the original settings-gen schema that inspired this format, see the Kibana schema reference.
product: REQUIRED
collection: REQUIRED
# id: OPTIONAL
# page_description: OPTIONAL multiline Markdown
# note: OPTIONAL multiline Markdown or string
groups:
- group: REQUIRED
# id: OPTIONAL
# description: OPTIONAL multiline Markdown
# note: OPTIONAL multiline Markdown or string
# example: OPTIONAL multiline Markdown
settings:
- setting: REQUIRED
description: |
REQUIRED
Multiline Markdown.
# id: OPTIONAL
# applies_to: OPTIONAL docs-builder applicability metadata
#
# Supports docs-builder applies_to syntax, for example:
#
# applies_to:
# stack: ga 9.2
# ech: ga
# self: ga
#
# note: OPTIONAL
# tip: OPTIONAL
# warning: OPTIONAL
# important: OPTIONAL
# deprecation_details: OPTIONAL
# datatype: OPTIONAL
# default: OPTIONAL
# options:
# - option: OPTIONAL
# description: OPTIONAL
# example: OPTIONAL multiline Markdown
# settings: OPTIONAL nested settings list
# Child settings inherit applies_to from the parent unless overridden.
# - setting: "[n].url"
# description: |
# REQUIRED
See /syntax/settings-with-applies-example.yml for a full, schema-compliant sample.
It demonstrates:
- Group
description,note, andexample. - Setting
id,datatype,default, andoptions. note,tip,warning,important, anddeprecation_details.- Nested
settings. applies_toinheritance and override behavior.- Top-level
page_description.
Everything below this line is auto-generated.
This page demonstrates schema-compliant settings output, including applies_to badges, nested settings, metadata lines, options, admonitions, and examples.
General settings
These settings show top-level schema fields, metadata, and applies_to usage.
xpack.example.enabled: true
xpack.example.mode: strict
- xpack.example.enabled
-
Supported on:
Enables the example feature.
Datatype:
boolDefault:
trueOptions:
-
true- Turns the feature on. -
false- Turns the feature off.
NoteDisable this only for troubleshooting.
TipKeep this enabled in production.
-
- xpack.example.mode
-
Supported on:
Controls runtime mode.
Datatype:
enumDefault:
strictOptions:
-
strict- Full validation. -
lenient- Reduced validation.
WarningLenient mode may hide configuration mistakes.
ImportantStrict mode is recommended for production.
Deprecation detailsThe
lenientoption will be deprecated in a future release.xpack.example.mode: strict -
Advanced settings
These settings demonstrate nested entries and applies_to inheritance.
- xpack.example.hosts
-
Supported on:
List of custom host settings.
Datatype:
objectDefault:
[]- xpack.example.hosts[n].url
-
Supported on:
Child setting inherits applies_to from the parent.
Datatype:
string - xpack.example.hosts[n].mode
-
Supported on:
Child setting overrides applies_to.
Datatype:
enumDefault:
strictOptions:
-
strict- Requires strict checks. -
lenient- Allows lenient checks.
TipKeep all host modes aligned to simplify troubleshooting and reduce drift.
xpack.example.hosts: - url: https://example.org mode: strict -
- xpack.example.hosts[n].url
For large Kibana-exported YAML samples used in local stress tests, see Kibana settings YAML samples.