Skip to content

Commit 4375973

Browse files
committed
Update doc generator
1 parent 7cbd216 commit 4375973

File tree

4 files changed

+5
-257
lines changed

4 files changed

+5
-257
lines changed

Pipfile

-14
This file was deleted.

Pipfile.lock

-243
This file was deleted.

requirements.txt

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
mkdocs

update.py

100644100755
+4
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
#!/usr/bin/env python
2+
# -*- coding: utf-8 -*-
3+
14
import os
25

36
EXCLUDE_DIRS = ['.git', 'docs', '.vscode', '.circleci']
@@ -12,6 +15,7 @@ def list_files(course: str):
1215
filelist_texts = '## 文件列表\n\n'
1316
readme_path = ''
1417
for root, dirs, files in os.walk(course):
18+
files.sort()
1519
level = root.replace(course, '').count(os.sep)
1620
indent = ' ' * 4 * level
1721
filelist_texts += '{}- {}\n'.format(indent, os.path.basename(root))

0 commit comments

Comments
 (0)