60
60
def _get_body(params, topic_dir):
61
61
"""Build the manual content."""
65
65
result.append(_get_section(registry, SECT_CONCEPT, "Concepts",
67
67
result.append(_get_section(registry, SECT_LIST, "Lists",
69
69
result.append(_get_commands_section(registry, output_dir=topic_dir))
73
73
def _get_section(registry, section, title, hdg_level1="#", hdg_level2="=",
75
75
"""Build the manual part from topics matching that section.
77
77
If output_dir is not None, topics are dumped into text files there
78
78
during processing, as well as being included in the return result.