comparison 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
comparison
equal deleted inserted replaced
6605:bf2bf986ff87 6612:59e087f99920
67 67
68 for f in cmds: 68 for f in cmds:
69 if f.startswith("debug"): continue 69 if f.startswith("debug"): continue
70 d = get_cmd(h[f]) 70 d = get_cmd(h[f])
71 # synopsis 71 # synopsis
72 ui.write("[[%s]]\n" % d['cmd'])
72 ui.write("%s::\n" % d['synopsis'].replace("hg ","", 1)) 73 ui.write("%s::\n" % d['synopsis'].replace("hg ","", 1))
73 # description 74 # description
74 ui.write("%s\n\n" % d['desc'][1]) 75 ui.write("%s\n\n" % d['desc'][1])
75 # options 76 # options
76 opt_output = list(d['opts']) 77 opt_output = list(d['opts'])