gendoc: add subsection for each command
authorMartin Geisler <mg@lazybytes.net>
Wed, 20 Oct 2010 18:08:37 +0200
changeset 12777 a19db59e1de4
parent 12776 4f4eddee254d
child 12778 dce09f82f619
gendoc: add subsection for each command
doc/gendoc.py
--- a/doc/gendoc.py	Wed Oct 20 18:07:50 2010 +0200
+++ b/doc/gendoc.py	Wed Oct 20 18:08:37 2010 +0200
@@ -99,8 +99,8 @@
         if f.startswith("debug"):
             continue
         d = get_cmd(h[f], cmdtable)
+        subsection(ui, d['cmd'])
         # synopsis
-        ui.write(".. _%s:\n\n" % d['cmd'])
         ui.write("``%s``\n" % d['synopsis'].replace("hg ","", 1))
         # description
         ui.write("%s\n\n" % d['desc'][1])