ansible-hardening/doc/metadata/template_toc.j2
Major Hayden 4cdf533565 [Docs] More cleanup
This patch cleans up various parts of the security role docs:

* Updates README files
* Uses jinja2 includes rather than sphinx includes (faster builds)
* Adds sphinx refs for each STIG control and implementation status
* Adds ToC's to pages that didn't have them
* Updated getting started and special notes guide
* Makes deviations more clear

Change-Id: I1eed2705c64a857bd94577dbe735f2516ca87732
2016-09-14 12:18:30 -05:00

32 lines
783 B
Django/Jinja

{% set page_title = "STIG Controls by " + toc_type | title %}
{{ "=" * page_title | length }}
{{ page_title }}
{{ "=" * page_title | length }}
.. contents::
:depth: 2
:backlinks: none
{% for section_header, stig_id_list in stig_dict.items() %}
{% if toc_type == 'tag' %}
{% set section_title = section_header + " (" + stig_id_list | length | string + " controls)" %}
{% else %}
{% set section_title = section_header | title + " (" + stig_id_list | length | string + " controls)" %}
{% endif %}
.. _{{ toc_type | replace(' ', '-') }}-{{ section_header | replace(' ', '-') }}:
{{ section_title }}
{{ "=" * section_title | length }}
{% for stig_id in stig_id_list | sort %}
{% include "template_doc.j2" %}
{% if not loop.last %}
----
{% endif %}
{% endfor %}
{% endfor %}