407 addtopicsymbols('templates', '.. filtersmarker', templatefilters.filters) |
409 addtopicsymbols('templates', '.. filtersmarker', templatefilters.filters) |
408 addtopicsymbols('templates', '.. functionsmarker', templatefuncs.funcs) |
410 addtopicsymbols('templates', '.. functionsmarker', templatefuncs.funcs) |
409 addtopicsymbols('hgweb', '.. webcommandsmarker', webcommands.commands, |
411 addtopicsymbols('hgweb', '.. webcommandsmarker', webcommands.commands, |
410 dedent=True) |
412 dedent=True) |
411 |
413 |
|
414 def inserttweakrc(ui, topic, doc): |
|
415 marker = '.. tweakdefaultsmarker' |
|
416 repl = uimod.tweakrc |
|
417 def sub(m): |
|
418 lines = [m.group(1) + s for s in repl.splitlines()] |
|
419 return '\n'.join(lines) |
|
420 return re.sub(br'( *)%s' % re.escape(marker), sub, doc) |
|
421 |
|
422 addtopichook('config', inserttweakrc) |
|
423 |
412 def help_(ui, commands, name, unknowncmd=False, full=True, subtopic=None, |
424 def help_(ui, commands, name, unknowncmd=False, full=True, subtopic=None, |
413 **opts): |
425 **opts): |
414 ''' |
426 ''' |
415 Generate the help for 'name' as unformatted restructured text. If |
427 Generate the help for 'name' as unformatted restructured text. If |
416 'name' is None, describe the commands available. |
428 'name' is None, describe the commands available. |