doc/gendoc.py
changeset 12777 a19db59e1de4
parent 12776 4f4eddee254d
child 12780 bdc1cf692447
--- 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])