[PATCH] gendoc: add anchors for commands
Adrian Buehlmann
adrian at cadifra.com
Thu May 1 04:09:58 CDT 2008
Ping (as sent on 2008-04-23)
No comments received so far. This is ready for pushing to crew.
# HG changeset patch
# User Adrian Buehlmann <adrian at cadifra.com>
# Date 1208972415 -7200
# Node ID 76dc912aa4016fa4846e7057f6d55eaecd96669f
# Parent 3b6f18851d874ad03ad343079f87498197aa22fc
gendoc: add anchors for commands
enables links into hg.1.html of the form: hg.1.html#command
diff --git a/doc/gendoc.py b/doc/gendoc.py
--- a/doc/gendoc.py
+++ b/doc/gendoc.py
@@ -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])
More information about the Mercurial-devel
mailing list