doc/gendoc.py
changeset 6612 59e087f99920
parent 6488 119dff2cd592
child 6654 2713e42dcf4e
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'])