diff --git a/docs/config.rst b/docs/config.rst index 27af4263..ee549655 100644 --- a/docs/config.rst +++ b/docs/config.rst @@ -157,6 +157,8 @@ Presets support inheritance by defining a parent preset: .. code-block:: yaml presets: + custom_preset: + ... parent_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 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. + -------------------------------------------------------------------------------