We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f9bffc4 commit 1ba8b1cCopy full SHA for 1ba8b1c
utils/genIndex.py
@@ -52,12 +52,16 @@ def getIcon(name):
52
suf=name[name.rfind('.')+1:]
53
return FMT_DIC[suf] if suf in FMT_DIC else FMT_DIC['other']
54
55
-
56
-def handleDir(target):
+def prepare():
57
if os.path.exists(TARDIR):
58
os.system('rm -rf '+TARDIR)
59
- try:os.mkdir(TARDIR)
+ try:
+ os.mkdir(TARDIR)
60
+ with open(os.path.join(TARDIR,'_config.yml'),'w',encoding='utf-8') as f:
61
+ f.write('theme: jekyll-theme-cayman\n')
62
except:return
63
+def handleDir(target):
64
+ prepare()
65
n = len(target)
66
gen = os.walk(target)
67
for path,dirs,files in gen:
0 commit comments