Removes modules from TOC, speeding up build time and reducing doc disk space requirements.

This commit is contained in:
Scott Butler
2018-04-04 18:55:39 -07:00
committed by Toshio Kuratomi
parent 1c7b9e66b4
commit 62c2b9a544
4 changed files with 12 additions and 15 deletions

View File

@@ -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 %}
@@ -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 %}

View File

@@ -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::