Skip to content

Commit

Permalink
Removes modules from TOC, speeding up build time and reducing doc dis…
Browse files Browse the repository at this point in the history
…k space requirements.
  • Loading branch information
dharmabumstead authored and abadger committed Apr 5, 2018
1 parent 1c7b9e6 commit 62c2b9a
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 15 deletions.
8 changes: 4 additions & 4 deletions docs/docsite/rst/index.rst
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
:tocdepth: 3
.. _ansible_documentation:

Ansible Documentation
=====================
Expand Down Expand Up @@ -28,19 +28,19 @@ Ansible releases a new major release of Ansible approximately every two months.
porting_guides/porting_guides

.. toctree::
:maxdepth: 3
:maxdepth: 2
:caption: Using Ansible

user_guide/index

.. toctree::
:maxdepth: 3
:maxdepth: 2
:caption: Contributing to Ansible

community/index

.. toctree::
:maxdepth: 3
:maxdepth: 2
:caption: Extending Ansible

dev_guide/index
Expand Down
6 changes: 3 additions & 3 deletions docs/docsite/rst/user_guide/modules_support.rst
Original file line number Diff line number Diff line change
Expand Up @@ -8,13 +8,13 @@ To help identify maintainers and understand how the included modules are officia
Core
````

:doc:`Core modules are maintained by the Ansible Engineering Team<..\modules\core_maintained>`.
:ref:`core_supported`. These are maintained by the Ansible Engineering Team.
These modules are integral to the basic foundations of the Ansible distribution.

Network
```````

:doc:`Network modules are maintained by the Ansible Network Team<..\modules\network_maintained>`. Please note there are :doc:`additional networking modules<list_of_network_modules>` that are categorized as Certified or Community not maintained by Ansible.
:ref:`network_supported`. These are maintained by the Ansible Network Team. Please note there are additional networking modules that are categorized as Certified or Community not maintained by Ansible.


Certified
Expand All @@ -25,7 +25,7 @@ Certified modules are part of a future planned program currently in development.
Community
`````````

:doc:`Community modules are submitted and maintained by the Ansible community<..\modules\community_maintained>`. These modules are not maintained by Ansible, and are included as a convenience.
:ref:`community_supported`. These are submitted and maintained by the Ansible community. These modules are not maintained by Ansible, and are included as a convenience.

Issue Reporting
```````````````
Expand Down
9 changes: 4 additions & 5 deletions docs/templates/list_of_CATEGORY_modules.rst.j2
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,11 @@
@{ blurb }@

{% endif %}
.. toctree:: :maxdepth: 1

{% if category['_modules'] %}

{% for module in category['_modules'] | sort %}
@{ module }@{% if module_info[module]['deprecated'] %} **(D)**{% endif%} -- @{ module_info[module]['doc']['short_description'] }@ <@{ module }@_module>
* :ref:`@{ module }@`{% if module_info[module]['deprecated'] %} **(D)**{% endif%}
{% endfor %}
{% endif %}

Expand All @@ -22,11 +22,10 @@
@{ name.title() }@
@{ '-' * name | length }@

.. toctree:: :maxdepth: 1


{% for module in info['_modules'] | sort %}
{# :ref:`@{ module }@`{% if module_info[module]['deprecated'] %} **(D)**{% endif%} @{ module_info[module]['doc']['short_description'] }@ #}
@{ module }@{% if module_info[module]['deprecated'] %} **(D)**{% endif%} -- @{ module_info[module]['doc']['short_description'] }@ <@{ module }@_module>
* :ref:`@{ module }@`{% if module_info[module]['deprecated'] %} **(D)**{% endif%}
{% endfor %}

{% endfor %}
Expand Down
4 changes: 1 addition & 3 deletions docs/templates/modules_by_support.rst.j2
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,8 @@
Modules Maintained by the @{ maintainers }@
``````````````````````````@{ '`' * maintainers | length }@

.. toctree:: :maxdepth: 1

{% for module in modules | sort %}
@{ module }@{% if module_info[module]['deprecated'] %} **(D)**{% endif %} - @{ module_info[module]['doc']['short_description'] }@ <@{ module }@_module>
* :ref:`@{ module }@`{% if module_info[module]['deprecated'] %} **(D)**{% endif%}
{% endfor %}

.. note::
Expand Down

0 comments on commit 62c2b9a

Please sign in to comment.