We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 3e7f8fd commit a8e9279Copy full SHA for a8e9279
index_updater.py
@@ -16,12 +16,13 @@
16
curr_folder = os.path.basename(root)
17
18
for name in files:
19
- if name.endswith('.py') and not name == '__init__py' and not dirs:
+ if name.endswith('.py') and not name == '__init__.py' and not dirs:
20
curr_files.append(name)
21
22
# If we have files, write "index.md"
23
if curr_files:
24
with open(os.path.join(root, 'index.md'), mode='w') as md_file:
25
md_file.write('# Index of {}\n\n'.format(curr_folder))
26
for line in curr_files:
27
- md_file.write('* ' + line + '\n')
+ file_name = line.split('.')[0].replace('_',' ').title()
28
+ md_file.write('* [' + file_name + '](' +line + ')\n')
0 commit comments