diff --git a/docsite/Makefile b/docsite/Makefile index 56b84fbc88..39b3cc647e 100644 --- a/docsite/Makefile +++ b/docsite/Makefile @@ -27,6 +27,6 @@ clean: .PHONEY: docs clean modules: $(FORMATTER) ../hacking/templates/rst.j2 - PYTHONPATH=../lib $(FORMATTER) -t rst --template-dir=../hacking/templates --module-dir=../library -o rst/modules/ --includes-file=rst/modules/_list.rst + PYTHONPATH=../lib $(FORMATTER) -t rst --template-dir=../hacking/templates --module-dir=../library -o rst/modules/ --includes-file=rst/modules/_categories.rst diff --git a/docsite/rst/modules.rst b/docsite/rst/modules.rst index ac922c965c..3348d2b804 100644 --- a/docsite/rst/modules.rst +++ b/docsite/rst/modules.rst @@ -54,8 +54,7 @@ ansible-doc as well as the man command:: Let's see what's available in the Ansible module library, out of the box: - -.. include:: modules/_list.rst +.. include:: modules/_categories.rst .. _ansible_doc: diff --git a/hacking/module_formatter.py b/hacking/module_formatter.py index 35fde1b1f6..7066589236 100755 --- a/hacking/module_formatter.py +++ b/hacking/module_formatter.py @@ -264,25 +264,25 @@ def main(): env.globals['xline'] = rst_xline if options.type == 'latex': - env.filters['jpfunc'] = latex_ify + env.filters['convert_symbols_to_format'] = latex_ify template = env.get_template('latex.j2') outputname = "%s.tex" includecmt = "" includefmt = "%s\n" if options.type == 'html': - env.filters['jpfunc'] = html_ify + env.filters['convert_symbols_to_format'] = html_ify template = env.get_template('html.j2') outputname = "%s.html" includecmt = "" includefmt = "" if options.type == 'man': - env.filters['jpfunc'] = man_ify + env.filters['convert_symbols_to_format'] = man_ify template = env.get_template('man.j2') outputname = "ansible.%s.3" includecmt = "" includefmt = "" if options.type == 'rst': - env.filters['jpfunc'] = rst_ify + env.filters['convert_symbols_to_format'] = rst_ify env.filters['html_ify'] = html_ify env.filters['fmt'] = rst_fmt env.filters['xline'] = rst_xline @@ -291,16 +291,16 @@ def main(): includecmt = ".. Generated by module_formatter\n" includefmt = ".. include:: modules/%s.rst\n" if options.type == 'json': - env.filters['jpfunc'] = json_ify + env.filters['convert_symbols_to_format'] = json_ify outputname = "%s.json" includecmt = "" includefmt = "" if options.type == 'js': - env.filters['jpfunc'] = js_ify + env.filters['convert_symbols_to_format'] = js_ify template = env.get_template('js.j2') outputname = "%s.js" if options.type == 'markdown': - env.filters['jpfunc'] = markdown_ify + env.filters['convert_symbols_to_format'] = markdown_ify env.filters['html_ify'] = html_ify template = env.get_template('markdown.j2') outputname = "%s.md" @@ -320,7 +320,8 @@ def main(): category_names.sort() for category in category_names: - module_map = categories[category] + + module_map = categories[category] category = category.replace("_"," ") category = category.title() diff --git a/hacking/templates/html.j2 b/hacking/templates/html.j2 index b86e47378b..f80018bb6d 100644 --- a/hacking/templates/html.j2 +++ b/hacking/templates/html.j2 @@ -3,5 +3,5 @@