subcategories are now Title case and _ gets changed to a space

This commit is contained in:
Brian Coca 2014-11-04 08:44:39 -05:00
parent 5f1ad79cd3
commit 12393a4b47

View file

@ -372,7 +372,7 @@ def process_category(category, categories, options, env, template, outputname):
sections.sort()
for section in sections:
category_file.write("%s\n%s\n\n" % (section,'-' * len(section)))
category_file.write("%s\n%s\n\n" % (section.replace("_"," ").title(),'-' * len(section)))
category_file.write(".. toctree:: :maxdepth: 1\n\n")
section_modules = module_map[section].keys()