MCPcopy Index your code
hub / github.com/HackSoftware/Django-Styleguide / get_new_toc

Function get_new_toc

tools/update_toc.py:5–13  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

3
4
5def get_new_toc():
6 new_toc = check_output(
7 'node_modules/.bin/markdown-toc README.md',
8 shell=True
9 ).decode('utf-8')
10
11 pattern = ['<!-- toc -->', '', new_toc, '', '<!-- tocstop -->']
12
13 return '\n'.join(pattern)
14
15
16def get_readme():

Callers 1

replace_tocFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected