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