429 addtopicsymbols('templates', '.. filtersmarker', templatefilters.filters) |
431 addtopicsymbols('templates', '.. filtersmarker', templatefilters.filters) |
430 addtopicsymbols('templates', '.. functionsmarker', templatefuncs.funcs) |
432 addtopicsymbols('templates', '.. functionsmarker', templatefuncs.funcs) |
431 addtopicsymbols('hgweb', '.. webcommandsmarker', webcommands.commands, |
433 addtopicsymbols('hgweb', '.. webcommandsmarker', webcommands.commands, |
432 dedent=True) |
434 dedent=True) |
433 |
435 |
|
436 def inserttweakrc(ui, topic, doc): |
|
437 marker = '.. tweakdefaultsmarker' |
|
438 repl = uimod.tweakrc |
|
439 def sub(m): |
|
440 lines = [m.group(1) + s for s in repl.splitlines()] |
|
441 return '\n'.join(lines) |
|
442 return re.sub(br'( *)%s' % re.escape(marker), sub, doc) |
|
443 |
|
444 addtopichook('config', inserttweakrc) |
|
445 |
434 def help_(ui, commands, name, unknowncmd=False, full=True, subtopic=None, |
446 def help_(ui, commands, name, unknowncmd=False, full=True, subtopic=None, |
435 **opts): |
447 **opts): |
436 ''' |
448 ''' |
437 Generate the help for 'name' as unformatted restructured text. If |
449 Generate the help for 'name' as unformatted restructured text. If |
438 'name' is None, describe the commands available. |
450 'name' is None, describe the commands available. |