diff options
author | Ilya Mashchenko <ilya@netdata.cloud> | 2024-06-14 15:51:27 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-06-14 15:51:27 +0300 |
commit | d9c807e23cee7026790032858ee7e2b093ee2437 (patch) | |
tree | c19adcd90dba65db757d978f21fa60597bae93f3 /integrations | |
parent | 75d9ea124ea3588471f250c7f5d923cf8c88b4e4 (diff) |
integrations make `<details>` open (#17895)
integrations details open
Diffstat (limited to 'integrations')
-rw-r--r-- | integrations/gen_docs_integrations.py | 6 | ||||
-rw-r--r-- | integrations/templates/metrics.md | 2 | ||||
-rw-r--r-- | integrations/templates/setup.md | 4 |
3 files changed, 7 insertions, 5 deletions
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 ]] |