comparison doc/gendoc.py @ 7012:78341ea65d16

restructure helptable When looking up a help topic, the key is now only matched against the short names for each topic, and not the header. So hg help 'Environment Variables' must be replaced with hg help env
author Martin Geisler <mg@daimi.au.dk>
date Tue, 09 Sep 2008 21:32:39 +0200
parents 2713e42dcf4e
children 46456a51e247
comparison
equal deleted inserted replaced
7011:7da76778dbd7 7012:78341ea65d16
90 # aliases 90 # aliases
91 if d['aliases']: 91 if d['aliases']:
92 ui.write(_(" aliases: %s\n\n") % " ".join(d['aliases'])) 92 ui.write(_(" aliases: %s\n\n") % " ".join(d['aliases']))
93 93
94 # print topics 94 # print topics
95 for t, doc in helptable: 95 for names, section, doc in helptable:
96 l = t.split("|")
97 section = l[-1]
98 underlined(_(section).upper()) 96 underlined(_(section).upper())
99 if callable(doc): 97 if callable(doc):
100 doc = doc() 98 doc = doc()
101 ui.write(_(doc)) 99 ui.write(_(doc))
102 ui.write("\n") 100 ui.write("\n")