Mercurial > hg
comparison doc/gendoc.py @ 12777:a19db59e1de4
gendoc: add subsection for each command
author | Martin Geisler <mg@lazybytes.net> |
---|---|
date | Wed, 20 Oct 2010 18:08:37 +0200 |
parents | 4f4eddee254d |
children | bdc1cf692447 |
comparison
equal
deleted
inserted
replaced
12776:4f4eddee254d | 12777:a19db59e1de4 |
---|---|
97 | 97 |
98 for f in cmds: | 98 for f in cmds: |
99 if f.startswith("debug"): | 99 if f.startswith("debug"): |
100 continue | 100 continue |
101 d = get_cmd(h[f], cmdtable) | 101 d = get_cmd(h[f], cmdtable) |
102 subsection(ui, d['cmd']) | |
102 # synopsis | 103 # synopsis |
103 ui.write(".. _%s:\n\n" % d['cmd']) | |
104 ui.write("``%s``\n" % d['synopsis'].replace("hg ","", 1)) | 104 ui.write("``%s``\n" % d['synopsis'].replace("hg ","", 1)) |
105 # description | 105 # description |
106 ui.write("%s\n\n" % d['desc'][1]) | 106 ui.write("%s\n\n" % d['desc'][1]) |
107 # options | 107 # options |
108 opt_output = list(d['opts']) | 108 opt_output = list(d['opts']) |