diff doc/gendoc.py @ 6612:59e087f99920

gendoc: add anchors for commands Enables links into hg.1.html of the form: hg.1.html#command
author Adrian Buehlmann <adrian@cadifra.com>
date Wed, 23 Apr 2008 19:40:15 +0200
parents 119dff2cd592
children 2713e42dcf4e
line wrap: on
line diff
--- a/doc/gendoc.py	Mon May 12 11:37:56 2008 -0500
+++ b/doc/gendoc.py	Wed Apr 23 19:40:15 2008 +0200
@@ -69,6 +69,7 @@
         if f.startswith("debug"): continue
         d = get_cmd(h[f])
         # synopsis
+        ui.write("[[%s]]\n" % d['cmd'])
         ui.write("%s::\n" % d['synopsis'].replace("hg ","", 1))
         # description
         ui.write("%s\n\n" % d['desc'][1])