Skip to content

Commit 82661a3

Browse files
committed
enhance contentify
1 parent b459f95 commit 82661a3

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

contentify.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,9 @@ def main():
1515
tmpdir = './tmp'
1616

1717
for path, directories, filenames in walk(wikidir):
18+
if '/.git' in path:
19+
continue
20+
1821
tpath = join(tmpdir, path[7:])
1922
isdir(tpath) and rmtree(tpath)
2023
mkdir(tpath)
@@ -27,6 +30,8 @@ def main():
2730
for filename in filenames:
2831
if not filename.endswith('.md'):
2932
continue
33+
if filename == 'README.md':
34+
continue
3035

3136
if filename != '_index.md':
3237
fpath = join(tpath, filename[:-3])

0 commit comments

Comments
 (0)