Skip to content

Commit

Permalink
squash: fix issues
Browse files Browse the repository at this point in the history
  • Loading branch information
happz committed Dec 5, 2023
1 parent 1073ea4 commit f5fba70
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 1 deletion.
9 changes: 8 additions & 1 deletion docs/plugins.rst.j2
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,14 @@
**Configuration**

{% for field in container_fields(PLUGIN._data_class) %}
{% if field.name in ('how', 'name', 'where') and field.internal != true %}
{% if (
field.name not in ('how', 'name', 'where', '_OPTIONLESS_FIELDS')
and field.internal != true
and (
not PLUGIN._data_class._OPTIONLESS_FIELDS
or field.name not in PLUGIN._data_class._OPTIONLESS_FIELDS
)
) %}
{% set _, option, _, metadata = container_field(PLUGIN._data_class, field.name) %}

{% if metadata.metavar %}
Expand Down
7 changes: 7 additions & 0 deletions docs/plugins/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,13 @@ Plugins

Here you will find documentation for plugins shipped with tmt.

.. warning::

Please, be aware that the documentation below is a work in progress. We are
working on fixing it, adding missing bits and generally making it better.
Also, it was originaly used for command line help only, therefore the
formatting is often suboptional.

.. toctree::
:maxdepth: 2

Expand Down

0 comments on commit f5fba70

Please sign in to comment.