diff --git a/docs/docsite/_themes/srtd/static/css/theme.css b/docs/docsite/_themes/srtd/static/css/theme.css index f1a2f685ef..9a0a84a638 100644 --- a/docs/docsite/_themes/srtd/static/css/theme.css +++ b/docs/docsite/_themes/srtd/static/css/theme.css @@ -4748,7 +4748,7 @@ th, td { } table { - overflow-x: scroll; + overflow-x: auto; display: block; max-width: 100%; } @@ -4864,3 +4864,48 @@ table { padding: 8px 13px; } } + +.outer-elbow-container { + display: flex; + height: 100%; + flex-direction: row; +} + +.elbow-placeholder { + border-left: 1px solid #000; + height: 100%; + width: 30px; +} + +.elbow-key { + height: 100%; + padding: 4px; + border-top: 1px solid #000; + flex-grow: 1; + border-left: 1px solid #000; +} + +.elbow-blocker { + height: 0; + overflow: hidden; +} + +.return-value-column { + height: 1px +} + +.return-value-column td { + height: inherit +} + +.cell-border { + padding: 4px; + border-left: 1px solid #000; + border-top: 1px solid #000; + height: 100%; +} + +.documentation-table { + border-right: 1px solid #000; + border-bottom: 1px solid #000; +} \ No newline at end of file diff --git a/docs/templates/plugin.rst.j2 b/docs/templates/plugin.rst.j2 index 0fb1ac6712..6d93079a4e 100644 --- a/docs/templates/plugin.rst.j2 +++ b/docs/templates/plugin.rst.j2 @@ -86,135 +86,103 @@ Options .. raw:: html -
parameter | -required | -default | -choices | -{% if plugin_type != 'module' %} -configuration | -{% endif %} -comments | -|||||||||||||||||||||||||||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
@{ k }@ {% if v['version_added'] -%} (added in @{v['version_added']}@){% endif -%} |
- {% if v.get('required', False) -%}yes{% else %}no{% endif -%} | -{% if v['default'] -%}@{ v['default'] }@{% endif -%} | -{% if v.get('type', 'not_bool') == 'bool' %} -
|
-{% else %}
- {% if v['choices'] -%}
|
-{% endif %}
-{% if plugin_type != 'module' %}
-
- {% if 'ini' in v %}
- ini entries:
- {% for ini in v.get('ini') %}
-
- {% endif %}
- {% if 'env' in v %}
- {% for env in v.get('env') %}
- [@{ ini.section }@ ] env:@{ env.name }@
- {% endfor %}
- {% endif %}
- {% if 'vars' in v %}
- {% for myvar in v.get('vars') %}
- var: @{ myvar.name }@
- {% endfor %}
- {% endif %}
- |
-{% endif %}
-
-{% if v.description is string %}
- @{ v.description | replace('\n', '\n ') | html_ify }@
-{% else %}
-{% for desc in v.description %}
- @{ desc | replace('\n', '\n ') | html_ify }@ -{% endfor %} -{% endif %} -{% if 'aliases' in v and v.aliases %} -aliases: @{ v.aliases|join(', ') }@
-{% endif %}
- |
- ||||||||||||||||||||||||||||||||||||||||||||||||||||||||
@{ k }@ {% if v['version_added'] -%} (added in @{v['version_added']}@){% endif -%} |
- {% if v.get('required', False) -%}yes{% else -%}no{% endif -%} | --{% if plugin_type != 'module' %} - | -{% endif %} - | - |
-{% if v.description is string %}
- @{ v.description | replace('\n', '\n ') | html_ify }@
-{% else %}
-{% for desc in v.description %}
- @{ desc | replace('\n', '\n ') | html_ify }@
-{% endfor %}
-{% endif %}
-{% if 'aliases' in v and v.aliases %}
- aliases: @{ v.aliases|join(', ') }@
-{% endif %}
- | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||
-
+ |
+ {# required #}
+
+ {% for i in range(1, loop.depth) %}
+
+
+ {% endfor %}
+
+ @{ key }@
+ {% if value.version_added %} (added in @{value.version_added}@){% endif %}
+
+ |
+ {# default value #}
+ {% if value.get('required', False) %}yes{% else %}no{% endif %} |
+ {# choices #}
+ {% if value.default %}@{ value.default }@{% endif %}
+ |
+ {# configuration #}
+ {% if plugin_type != 'module' %}
+
+ {% if value.type == 'boolean' %}
+
+
+ |
+ {% endif %}
+ {# description #}
+
+ {% if 'ini' in value %}
+
+ ini entries:
+ {% for ini in value.ini %}
+
+ {% endif %}
+ {% if 'env' in value %}
+ {% for env in value.env %}
+ [@{ ini.section }@ ] env:@{ env.name }@
+ {% endfor %}
+ {% endif %}
+ {% if 'vars' in value %}
+ {% for myvar in value.vars %}
+ var: @{ myvar.name }@
+ {% endfor %}
+ {% endif %}
+
+ |
+
+ {% if value.description is string %}
+
+ @{ value.description | replace('\n', '\n ') | html_ify }@
+ {% else %}
+ {% for desc in value.description %}
+ @{ desc | replace('\n', '\n ') | html_ify }@ + {% endfor %} + {% endif %} + {% if 'aliases' in value and value.aliases %} +aliases: @{ value.aliases|join(', ') }@
+ {% endif %}
+
|