docs
This commit is contained in:
parent
99afe9a998
commit
963f0099be
1 changed files with 15 additions and 0 deletions
|
|
@ -157,6 +157,8 @@ Presets support inheritance by defining a parent preset:
|
||||||
.. code-block:: yaml
|
.. code-block:: yaml
|
||||||
|
|
||||||
presets:
|
presets:
|
||||||
|
custom_preset:
|
||||||
|
...
|
||||||
parent_preset:
|
parent_preset:
|
||||||
...
|
...
|
||||||
child_preset:
|
child_preset:
|
||||||
|
|
@ -166,6 +168,19 @@ In the example above, ``child_preset`` inherits all fields defined in ``parent_p
|
||||||
It is advantageous to use parent presets where possible to reduce duplicate yaml
|
It is advantageous to use parent presets where possible to reduce duplicate yaml
|
||||||
definitions.
|
definitions.
|
||||||
|
|
||||||
|
Presets also support inheritance from multiple presets:
|
||||||
|
|
||||||
|
.. code-block:: yaml
|
||||||
|
|
||||||
|
child_preset:
|
||||||
|
preset:
|
||||||
|
- "custom_preset"
|
||||||
|
- "parent_preset"
|
||||||
|
|
||||||
|
In this example, ``child_preset`` will inherit all fields from ``custom_preset``
|
||||||
|
and ``parent_preset`` in that order. The bottom-most preset has the highest
|
||||||
|
priority.
|
||||||
|
|
||||||
-------------------------------------------------------------------------------
|
-------------------------------------------------------------------------------
|
||||||
|
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue