From 948f3ca0ab0d9bd9580d8904a2b69c928ef31e61 Mon Sep 17 00:00:00 2001 From: Lars Noack Date: Thu, 10 Apr 2025 16:28:46 +0200 Subject: [PATCH] feat: storing languages --- stsg/build.py | 19 +++---------------- 1 file changed, 3 insertions(+), 16 deletions(-) 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": """ -

Hello World

-

My first website with Bulma!

- """ - }) - with Path(DIST_DIRECTORY, "index.html").open("w") as f: - f.write(t)