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