Moved data files into static and dynamic

This commit is contained in:
Lucas
2025-10-16 13:57:14 -07:00
parent 4e56301dfb
commit 0beb55ffed
15 changed files with 21 additions and 21 deletions

View File

@@ -6,7 +6,7 @@ def slugify(name):
def generate_table_of_contents():
# Load the categories JSON data
with open("source/data/categories.json", "r", encoding="utf-8") as f:
with open("source/data/static/categories.json", "r", encoding="utf-8") as f:
data = json.load(f)
categories = data.get("categories", [])
subcategories = data.get("subcategories", [])