diff --git a/integrations/gen_docs_integrations.py b/integrations/gen_docs_integrations.py index 2a35efb2b3..2382e1dbbf 100644 --- a/integrations/gen_docs_integrations.py +++ b/integrations/gen_docs_integrations.py @@ -61,8 +61,10 @@ def clean_and_write(md, path): Then it writes the buffer on the file provided. """ # clean first, replace - md = md.replace("{% details summary=\"", "<details><summary>").replace( - "\" %}", "</summary>\n").replace("{% /details %}", "</details>\n") + md = md.replace("{% details summary=\"", "<details><summary>") + md = md.replace("{% details open=true summary=\"", "<details open><summary>") + md = md.replace("\" %}", "</summary>\n") + md = md.replace("{% /details %}", "</details>\n") path.write_text(md) diff --git a/integrations/templates/metrics.md b/integrations/templates/metrics.md index 8a75d73171..0d5be7b678 100644 --- a/integrations/templates/metrics.md +++ b/integrations/templates/metrics.md @@ -2,7 +2,7 @@ ## Metrics [% if entry.metrics.folding.enabled and not clean %] -{% details summary="[[ entry.metrics.folding.title ]]" %} +{% details open=true summary="[[ entry.metrics.folding.title ]]" %} [% endif %] Metrics grouped by *scope*. diff --git a/integrations/templates/setup.md b/integrations/templates/setup.md index 52f252b2b2..1c41e8cf97 100644 --- a/integrations/templates/setup.md +++ b/integrations/templates/setup.md @@ -60,7 +60,7 @@ There is no configuration file. [% if entry.setup.configuration.options.list %] [% if entry.setup.configuration.options.folding.enabled and not clean %] -{% details summary="[[ entry.setup.configuration.options.folding.title ]]" %} +{% details open=true summary="[[ entry.setup.configuration.options.folding.title ]]" %} [% endif %] | Name | Description | Default | Required | |:----|:-----------|:-------|:--------:| @@ -92,7 +92,7 @@ There are no configuration options. [[ example.description ]] [% if example.folding.enabled and not clean %] -{% details summary="[[ entry.setup.configuration.examples.folding.title ]]" %} +{% details open=true summary="[[ entry.setup.configuration.examples.folding.title ]]" %} [% endif %] ```yaml [[ example.config ]]