mirror of
https://github.com/ansible-collections/community.general.git
synced 2024-09-14 20:13:21 +02:00
do not produce too deep toc for category lists
This commit is contained in:
parent
af1f8db51d
commit
7965d331f3
1 changed files with 9 additions and 6 deletions
|
@ -254,11 +254,14 @@ def process_category(category, categories, options, env, template, outputname):
|
|||
category_header = "%s Modules" % (category.title())
|
||||
underscores = "`" * len(category_header)
|
||||
|
||||
category_file.write(category_header)
|
||||
category_file.write("\n")
|
||||
category_file.write(underscores)
|
||||
category_file.write("\n")
|
||||
category_file.write(".. toctree::\n")
|
||||
category_file.write("""\
|
||||
%s
|
||||
%s
|
||||
|
||||
.. toctree::
|
||||
:maxdepth: 1
|
||||
|
||||
""" % (category_header, underscores))
|
||||
|
||||
for module in modules:
|
||||
result = process_module(module, options, env, template, outputname, module_map)
|
||||
|
|
Loading…
Reference in a new issue