Mercurial > public > mercurial-scm > hg-stable
diff mercurial/hgweb/webcommands.py @ 18747:f5db3092790f
hgweb: generate HTML documentation
It's generated from the raw ReST source, as returned from help.help_().
author | Dan Villiom Podlaski Christiansen <danchr@gmail.com> |
---|---|
date | Sat, 09 Feb 2013 21:51:21 +0000 |
parents | 76ff3a715cf2 |
children | bb38f4f78104 |
line wrap: on
line diff
--- a/mercurial/hgweb/webcommands.py Sat Feb 09 21:51:21 2013 +0000 +++ b/mercurial/hgweb/webcommands.py Sat Feb 09 21:51:21 2013 +0000 @@ -993,11 +993,9 @@ othercommands=othercommands, title='Index') u = webutil.wsgiui() - u.pushbuffer() u.verbose = True try: - commands.help_(u, topicname) + doc = helpmod.help_(u, topicname) except error.UnknownCommand: raise ErrorResponse(HTTP_NOT_FOUND) - doc = u.popbuffer() return tmpl('help', topic=topicname, doc=doc)