Fix directory creation on re-render.
This commit is contained in:
parent
bd644e3788
commit
c588187ae3
1 changed files with 1 additions and 1 deletions
|
@ -573,7 +573,7 @@ def main(source_top, dest_top):
|
|||
docs[filepath] = (doc, front_matter, out_path)
|
||||
doc_full_path = os.path.join(dest_top, out_path)
|
||||
print("Updated: {}.html".format(doc_full_path))
|
||||
os.makedirs(os.path.dirname(doc_full_path), exist_ok=True)
|
||||
os.makedirs(os.path.dirname(doc_full_path + '/index.html'), exist_ok=True)
|
||||
# print("==", doc_full_path)
|
||||
with open(doc_full_path + '/index.html', 'wt') as f:
|
||||
try:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue