doc/gendoc.py
changeset 40294 fabbf9310025
parent 40291 170926caf44c
child 41004 e10641c48fa7
equal deleted inserted replaced
40293:c303d65d2e34 40294:fabbf9310025
   136             ui.write(minirst.subsubsection(_('Commands')))
   136             ui.write(minirst.subsubsection(_('Commands')))
   137             commandprinter(ui, cmdtable, minirst.subsubsubsection)
   137             commandprinter(ui, cmdtable, minirst.subsubsubsection)
   138 
   138 
   139 def showtopic(ui, topic):
   139 def showtopic(ui, topic):
   140     extrahelptable = [
   140     extrahelptable = [
   141         (["common"], '', loaddoc('common')),
   141         (["common"], '', loaddoc('common'), help.TOPIC_CATEGORY_MISC),
   142         (["hg.1"], '', loaddoc('hg.1')),
   142         (["hg.1"], '', loaddoc('hg.1'), help.TOPIC_CATEGORY_CONFIG),
   143         (["hg-ssh.8"], '', loaddoc('hg-ssh.8')),
   143         (["hg-ssh.8"], '', loaddoc('hg-ssh.8'), help.TOPIC_CATEGORY_CONFIG),
   144         (["hgignore.5"], '', loaddoc('hgignore.5')),
   144         (["hgignore.5"], '', loaddoc('hgignore.5'), help.TOPIC_CATEGORY_CONFIG),
   145         (["hgrc.5"], '', loaddoc('hgrc.5')),
   145         (["hgrc.5"], '', loaddoc('hgrc.5'), help.TOPIC_CATEGORY_CONFIG),
   146         (["hgignore.5.gendoc"], '', loaddoc('hgignore')),
   146         (["hgignore.5.gendoc"], '', loaddoc('hgignore'),
   147         (["hgrc.5.gendoc"], '', loaddoc('config')),
   147          help.TOPIC_CATEGORY_CONFIG),
       
   148         (["hgrc.5.gendoc"], '', loaddoc('config'), help.TOPIC_CATEGORY_CONFIG),
   148     ]
   149     ]
   149     helpprinter(ui, helptable + extrahelptable, None, include=[topic])
   150     helpprinter(ui, helptable + extrahelptable, None, include=[topic])
   150 
   151 
   151 def helpprinter(ui, helptable, sectionfunc, include=[], exclude=[]):
   152 def helpprinter(ui, helptable, sectionfunc, include=[], exclude=[]):
   152     for h in helptable:
   153     for h in helptable: