changeset 5657:6e37ce7be367 stable

test2rst: remove the abandoned index building part
author Anton Shestakov <av6@dwimlabs.net>
date Mon, 09 Nov 2020 23:03:31 +0800
parents 60ce376919c5
children 398a3f0ca07a
files docs/test2rst.py
diffstat 1 files changed, 0 insertions(+), 16 deletions(-) [+]
line wrap: on
line diff
--- 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: