diff --git a/docs/docsite/_static/ansible.css b/docs/docsite/_static/ansible.css index 2fd26cebadd..f9d0b1a4513 100644 --- a/docs/docsite/_static/ansible.css +++ b/docs/docsite/_static/ansible.css @@ -36,15 +36,6 @@ tr .ansibleOptionLink::after { content: ""; font-family: FontAwesome; } -tr .ansibleOptionLink::before { - font-family: "FontAwesome"; - display: inline-block; - font-style: normal; - font-weight: normal; - line-height: 1; - text-decoration: inherit; - -webkit-font-smoothing: antialiased; -} tr .ansibleOptionLink { visibility: hidden; display: inline-block; @@ -53,3 +44,16 @@ tr .ansibleOptionLink { -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; } + +@media screen and (min-width:767px){ + /* Move anchors a bit up so that they aren't hidden by the header bar */ + section [id] { + padding-top: 45px; + margin-top: -45px; + } + /* Without this, for example most links in the page's TOC aren't usable anymore */ + section a[id] { + padding-top: 0; + margin-top: 0; + } +} \ No newline at end of file diff --git a/docs/templates/plugin.rst.j2 b/docs/templates/plugin.rst.j2 index af99932fe9b..b829dd42a5a 100644 --- a/docs/templates/plugin.rst.j2 +++ b/docs/templates/plugin.rst.j2 @@ -106,15 +106,16 @@ Parameters Comments {% for key, value in options|dictsort recursive %} - + {# indentation based on nesting level #} {% for i in range(1, loop.depth) %} {% endfor %} {# parameter name with required and/or introduced label #} +
@{ key }@ - +
@{ value.type | documented_type }@ {% if value.get('elements') %} / elements=@{ value.elements | documented_type }@{% endif %} @@ -283,13 +284,14 @@ Facts returned by this module are added/updated in the ``hostvars`` host facts a Description {% for key, value in returnfacts|dictsort recursive %} - + {% for i in range(1, loop.depth) %} {% endfor %} +
@{ key }@ - +
@{ value.type | documented_type }@ {% if value.elements %} / elements=@{ value.elements | documented_type }@{% endif %} @@ -359,13 +361,14 @@ Common return values are documented :ref:`here `, the foll Description {% for key, value in returndocs|dictsort recursive %} - + {% for i in range(1, loop.depth) %}   {% endfor %} +
@{ key }@ - +
@{ value.type | documented_type }@ {% if value.elements %} / elements=@{ value.elements | documented_type }@{% endif %}