File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed
Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
44
55[project ]
66name = " syrinx"
7- version = " 0.0.10 "
7+ version = " 0.0.11 "
88authors = [
99 { name =" Jasper van den Bosch" },
1010]
Original file line number Diff line number Diff line change 11from __future__ import annotations
2- from typing import TYPE_CHECKING , Callable , Optional
2+ from typing import TYPE_CHECKING , Callable
33from os .path import isdir , join , isfile
44import shutil , os
55from jinja2 import Environment , FileSystemLoader , select_autoescape
@@ -38,11 +38,11 @@ def build_node(
3838 """Recursive function to render page, then move on to children
3939 """
4040 node_path = join (parent_path , node .name )
41+ os .makedirs (node_path , exist_ok = True )
4142 if node .buildPage :
4243 fname_tem = choose_template_file (node , isfile , template_dir )
4344 page_template = env .get_template (fname_tem )
4445 html = page_template .render (index = node , root = root )
45- os .makedirs (node_path , exist_ok = True )
4646 out_fpath = join (node_path , 'index.html' )
4747 with open (out_fpath , 'w' ) as fhandle :
4848 fhandle .write (html )
You can’t perform that action at this time.
0 commit comments