gendoc: add anchors for commands
authorAdrian Buehlmann <adrian@cadifra.com>
Wed, 23 Apr 2008 19:40:15 +0200
changeset 6612 59e087f99920
parent 6605 bf2bf986ff87
child 6613 2f0522ce43b0
gendoc: add anchors for commands Enables links into hg.1.html of the form: hg.1.html#command
doc/gendoc.py
--- 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])