comparison 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
comparison
equal deleted inserted replaced
18746:c0087d48ec3a 18747:f5db3092790f
991 991
992 return tmpl('helptopics', topics=topics, earlycommands=earlycommands, 992 return tmpl('helptopics', topics=topics, earlycommands=earlycommands,
993 othercommands=othercommands, title='Index') 993 othercommands=othercommands, title='Index')
994 994
995 u = webutil.wsgiui() 995 u = webutil.wsgiui()
996 u.pushbuffer()
997 u.verbose = True 996 u.verbose = True
998 try: 997 try:
999 commands.help_(u, topicname) 998 doc = helpmod.help_(u, topicname)
1000 except error.UnknownCommand: 999 except error.UnknownCommand:
1001 raise ErrorResponse(HTTP_NOT_FOUND) 1000 raise ErrorResponse(HTTP_NOT_FOUND)
1002 doc = u.popbuffer()
1003 return tmpl('help', topic=topicname, doc=doc) 1001 return tmpl('help', topic=topicname, doc=doc)