diff --git a/stsg/build.py b/stsg/build.py index 9df0cc8..31731a8 100644 --- a/stsg/build.py +++ b/stsg/build.py @@ -94,28 +94,15 @@ def walk_directory(root): continue if current_name.endswith(".md"): - print(current_dst) convert_md(current_src, current_dst) + language_codes_found.append(current_name.replace(".md", "")) if current_src.is_dir(): walk_directory(Path(root, current_full_path.name)) + print(language_codes_found) + def build(): logger.info("building static page") - walk_directory("") - return - # copy_static() - - context = Context() - - # debug - t = context.get_text({ - "content": """ -
My first website with Bulma!
- """ - }) - with Path(DIST_DIRECTORY, "index.html").open("w") as f: - f.write(t)