Skip to content

Commit

Permalink
Make sure CSS class applies to table. Also simplify RST a bit.
Browse files Browse the repository at this point in the history
  • Loading branch information
felixfontein committed Aug 19, 2023
1 parent 8103653 commit 9f69542
Show file tree
Hide file tree
Showing 83 changed files with 163 additions and 489 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -7,15 +7,13 @@
{% from 'macros/version_added.rst.j2' import version_added_rst %}

{% macro in_rst(attributes, role_entrypoint=None) %}
.. rst-class:: ansible-option-table

.. tabularcolumns:: \X{2}{10}\X{3}{10}\X{5}{10}

.. list-table::
:width: 100%
:widths: auto
:header-rows: 1
:class: longtable
:class: longtable ansible-option-table

* - Attribute
- Support
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,15 +11,13 @@
{% from 'macros/version_added.rst.j2' import version_added_rst, version_added_html %}

{% macro in_rst(elements, suboption_key='suboptions', parameter_html_prefix='', parameter_rst_prefix='', role_entrypoint=None) %}
.. rst-class:: ansible-option-table

.. tabularcolumns:: \X{1}{3}\X{2}{3}

.. list-table::
:width: 100%
:widths: auto
:header-rows: 1
:class: longtable
:class: longtable ansible-option-table

* - Parameter
- Comments
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,15 +9,13 @@
{% from 'macros/version_added.rst.j2' import version_added_rst, version_added_html %}

{% macro in_rst(elements, role_entrypoint=None) %}
.. rst-class:: ansible-option-table

.. tabularcolumns:: \X{1}{3}\X{2}{3}

.. list-table::
:width: 100%
:widths: auto
:header-rows: 1
:class: longtable
:class: longtable ansible-option-table

* - Key
- Description
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -92,15 +92,13 @@ The below requirements are needed on the host that executes this module.
Parameters
----------

.. rst-class:: ansible-option-table

.. tabularcolumns:: \X{1}{3}\X{2}{3}

.. list-table::
:width: 100%
:widths: auto
:header-rows: 1
:class: longtable
:class: longtable ansible-option-table

* - Parameter
- Comments
Expand Down Expand Up @@ -291,15 +289,13 @@ Parameters
Attributes
----------

.. rst-class:: ansible-option-table

.. tabularcolumns:: \X{2}{10}\X{3}{10}\X{5}{10}

.. list-table::
:width: 100%
:widths: auto
:header-rows: 1
:class: longtable
:class: longtable ansible-option-table

* - Attribute
- Support
Expand Down Expand Up @@ -485,15 +481,13 @@ Return Values
-------------
Common return values are documented :ref:`here <common_return_values>`, the following are the fields unique to this module:

.. rst-class:: ansible-option-table

.. tabularcolumns:: \X{1}{3}\X{2}{3}

.. list-table::
:width: 100%
:widths: auto
:header-rows: 1
:class: longtable
:class: longtable ansible-option-table

* - Key
- Description
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -87,15 +87,13 @@ The below requirements are needed on the host that executes this module.
Parameters
----------

.. rst-class:: ansible-option-table

.. tabularcolumns:: \X{1}{3}\X{2}{3}

.. list-table::
:width: 100%
:widths: auto
:header-rows: 1
:class: longtable
:class: longtable ansible-option-table

* - Parameter
- Comments
Expand Down Expand Up @@ -248,15 +246,13 @@ Parameters
Attributes
----------

.. rst-class:: ansible-option-table

.. tabularcolumns:: \X{2}{10}\X{3}{10}\X{5}{10}

.. list-table::
:width: 100%
:widths: auto
:header-rows: 1
:class: longtable
:class: longtable ansible-option-table

* - Attribute
- Support
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -76,15 +76,13 @@ Synopsis
Parameters
----------

.. rst-class:: ansible-option-table

.. tabularcolumns:: \X{1}{3}\X{2}{3}

.. list-table::
:width: 100%
:widths: auto
:header-rows: 1
:class: longtable
:class: longtable ansible-option-table

* - Parameter
- Comments
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -82,15 +82,13 @@ Input

This describes the input of the filter, the value before ``| ns2.col.bar``.

.. rst-class:: ansible-option-table

.. tabularcolumns:: \X{1}{3}\X{2}{3}

.. list-table::
:width: 100%
:widths: auto
:header-rows: 1
:class: longtable
:class: longtable ansible-option-table

* - Parameter
- Comments
Expand Down Expand Up @@ -143,15 +141,13 @@ Positional parameters
This describes positional parameters of the filter. These are the values ``positional1``, ``positional2`` and so on in the following
example: ``input | ns2.col.bar(positional1, positional2, ...)``

.. rst-class:: ansible-option-table

.. tabularcolumns:: \X{1}{3}\X{2}{3}

.. list-table::
:width: 100%
:widths: auto
:header-rows: 1
:class: longtable
:class: longtable ansible-option-table

* - Parameter
- Comments
Expand Down Expand Up @@ -248,15 +244,13 @@ Keyword parameters
This describes keyword parameters of the filter. These are the values ``key1=value1``, ``key2=value2`` and so on in the following
example: ``input | ns2.col.bar(key1=value1, key2=value2, ...)``

.. rst-class:: ansible-option-table

.. tabularcolumns:: \X{1}{3}\X{2}{3}

.. list-table::
:width: 100%
:widths: auto
:header-rows: 1
:class: longtable
:class: longtable ansible-option-table

* - Parameter
- Comments
Expand Down Expand Up @@ -355,15 +349,13 @@ Examples
Return Value
------------

.. rst-class:: ansible-option-table

.. tabularcolumns:: \X{1}{3}\X{2}{3}

.. list-table::
:width: 100%
:widths: auto
:header-rows: 1
:class: longtable
:class: longtable ansible-option-table

* - Key
- Description
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -80,15 +80,13 @@ Input

This describes the input of the test, the value before ``is ns2.col.bar`` or ``is not ns2.col.bar``.

.. rst-class:: ansible-option-table

.. tabularcolumns:: \X{1}{3}\X{2}{3}

.. list-table::
:width: 100%
:widths: auto
:header-rows: 1
:class: longtable
:class: longtable ansible-option-table

* - Parameter
- Comments
Expand Down Expand Up @@ -165,15 +163,13 @@ Examples
Return Value
------------

.. rst-class:: ansible-option-table

.. tabularcolumns:: \X{1}{3}\X{2}{3}

.. list-table::
:width: 100%
:widths: auto
:header-rows: 1
:class: longtable
:class: longtable ansible-option-table

* - Key
- Description
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -80,15 +80,13 @@ Synopsis
Parameters
----------

.. rst-class:: ansible-option-table

.. tabularcolumns:: \X{1}{3}\X{2}{3}

.. list-table::
:width: 100%
:widths: auto
:header-rows: 1
:class: longtable
:class: longtable ansible-option-table

* - Parameter
- Comments
Expand Down Expand Up @@ -136,15 +134,13 @@ Parameters
Attributes
----------

.. rst-class:: ansible-option-table

.. tabularcolumns:: \X{2}{10}\X{3}{10}\X{5}{10}

.. list-table::
:width: 100%
:widths: auto
:header-rows: 1
:class: longtable
:class: longtable ansible-option-table

* - Attribute
- Support
Expand Down Expand Up @@ -349,15 +345,13 @@ Return Values
-------------
Common return values are documented :ref:`here <common_return_values>`, the following are the fields unique to this module:

.. rst-class:: ansible-option-table

.. tabularcolumns:: \X{1}{3}\X{2}{3}

.. list-table::
:width: 100%
:widths: auto
:header-rows: 1
:class: longtable
:class: longtable ansible-option-table

* - Key
- Description
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -90,15 +90,13 @@ Synopsis
Parameters
----------

.. rst-class:: ansible-option-table

.. tabularcolumns:: \X{1}{3}\X{2}{3}

.. list-table::
:width: 100%
:widths: auto
:header-rows: 1
:class: longtable
:class: longtable ansible-option-table

* - Parameter
- Comments
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -81,15 +81,13 @@ Synopsis
Parameters
----------

.. rst-class:: ansible-option-table

.. tabularcolumns:: \X{1}{3}\X{2}{3}

.. list-table::
:width: 100%
:widths: auto
:header-rows: 1
:class: longtable
:class: longtable ansible-option-table

* - Parameter
- Comments
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -87,15 +87,13 @@ Synopsis
Parameters
----------

.. rst-class:: ansible-option-table

.. tabularcolumns:: \X{1}{3}\X{2}{3}

.. list-table::
:width: 100%
:widths: auto
:header-rows: 1
:class: longtable
:class: longtable ansible-option-table

* - Parameter
- Comments
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -81,15 +81,13 @@ Synopsis
Parameters
----------

.. rst-class:: ansible-option-table

.. tabularcolumns:: \X{1}{3}\X{2}{3}

.. list-table::
:width: 100%
:widths: auto
:header-rows: 1
:class: longtable
:class: longtable ansible-option-table

* - Parameter
- Comments
Expand Down
Loading

0 comments on commit 9f69542

Please sign in to comment.