# HG changeset patch # User Anton Shestakov # Date 1604934211 -28800 # Node ID 6e37ce7be367d147ddd15cc2e8c33215c5b56ce6 # Parent 60ce376919c5639cb3a5eb6f8c9c00e53057336c test2rst: remove the abandoned index building part diff -r 60ce376919c5 -r 6e37ce7be367 docs/test2rst.py --- a/docs/test2rst.py Mon Nov 09 22:58:37 2020 +0800 +++ b/docs/test2rst.py Mon Nov 09 23:03:31 2020 +0800 @@ -4,13 +4,6 @@ import re import sys -INDEX = ''' -Mercurial tests -=============== - -.. toctree:: - :maxdepth: 1 -''' ignored_patterns = [ re.compile(r'^#if'), @@ -74,20 +67,11 @@ def one_dir(base): - index = INDEX - # doc = lambda x: op.join(op.dirname(__file__), 'docs', x) - for fn in sorted(os.listdir(base)): if not fn.endswith('.t'): continue - name = os.path.splitext(fn)[0] one_file(os.path.join(base, fn)) - index += '\n ' + name - - # with file(doc('index.rst'), 'w') as f: - # f.write(index) - def one_file(path): with open(path) as f: