61
62
registry = breezy.help_topics.topic_registry
63
64
result.append(_get_section(registry, SECT_CONCEPT, "Concepts",
65
66
result.append(_get_section(registry, SECT_LIST, "Lists",
67
68
result.append(_get_commands_section(registry, output_dir=topic_dir))
71
72
def _get_section(registry, section, title, hdg_level1="#", hdg_level2="=",
73
74
"""Build the manual part from topics matching that section.
75
76
If output_dir is not None, topics are dumped into text files there
76
77
during processing, as well as being included in the return result.