111
91
help = "%s\n%s\n\n%s\n\n" % (heading, underline, text)
113
93
help = "%s\n%s\n\n" % (heading, text)
115
95
topic_id = _dump_text(output_dir, topic, help)
116
96
lines.append(" %s" % topic_id)
129
100
return "\n" + "\n".join(lines) + "\n"
132
103
def _get_commands_section(registry, title="Commands", hdg_level1="#",
133
104
hdg_level2="=", output_dir=None):
134
105
"""Build the commands reference section of the manual."""
135
107
lines = [title, hdg_level1 * len(title), ""]
137
109
lines.extend([".. toctree::", " :maxdepth: 1", ""])
139
111
cmds = sorted(bzrlib.commands.builtin_command_names())