mirror of
https://github.com/mustbeperfect/definitive-opensource.git
synced 2026-04-18 15:54:09 +02:00
Moved data files into static and dynamic
This commit is contained in:
@@ -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", [])
|
||||
|
||||
Reference in New Issue
Block a user