Skip to content

Commit

Permalink
Update doc generator
Browse files Browse the repository at this point in the history
  • Loading branch information
tespent committed May 21, 2020
1 parent 7cbd216 commit 4375973
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 257 deletions.
14 changes: 0 additions & 14 deletions Pipfile

This file was deleted.

243 changes: 0 additions & 243 deletions Pipfile.lock

This file was deleted.

1 change: 1 addition & 0 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
mkdocs
4 changes: 4 additions & 0 deletions update.py
100644 → 100755
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
#!/usr/bin/env python
# -*- coding: utf-8 -*-

import os

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

0 comments on commit 4375973

Please sign in to comment.