diff 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
line wrap: on
line diff
--- 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])