# HG changeset patch # User Adrian Buehlmann # Date 1208972415 -7200 # Node ID 59e087f99920d017703f1e6bc186ca9518ab8973 # Parent bf2bf986ff873a2cdac2df6ffa4346a8b2da63e3 gendoc: add anchors for commands Enables links into hg.1.html of the form: hg.1.html#command diff -r bf2bf986ff87 -r 59e087f99920 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])