diff --git a/config/config.lua b/config.lua similarity index 100% rename from config/config.lua rename to config.lua diff --git a/generate.py b/generate.py index 478fdd2..1716b5e 100755 --- a/generate.py +++ b/generate.py @@ -1,6 +1,7 @@ #!/bin/python3 import requests from os import path +import os import re from dataclasses import dataclass @@ -321,7 +322,8 @@ def create_lua_function(function_name: str): return doc_comment + "\n" + func_signature def main(): - library_path = "config/library" + library_path = "library" + os.makedirs(library_path, exist_ok=True) for section_name, funcs in list_available_functions().items(): with open(f"{library_path}/{section_name}.lua", "w") as f: f.write("---@meta\n\n") diff --git a/config/library/drawing.lua b/library/drawing.lua similarity index 100% rename from config/library/drawing.lua rename to library/drawing.lua diff --git a/config/library/index.lua b/library/index.lua similarity index 100% rename from config/library/index.lua rename to library/index.lua diff --git a/config/library/input.lua b/library/input.lua similarity index 100% rename from config/library/input.lua rename to library/input.lua diff --git a/config/library/memory.lua b/library/memory.lua similarity index 100% rename from config/library/memory.lua rename to library/memory.lua diff --git a/config/library/sound.lua b/library/sound.lua similarity index 100% rename from config/library/sound.lua rename to library/sound.lua diff --git a/config/library/system.lua b/library/system.lua similarity index 100% rename from config/library/system.lua rename to library/system.lua diff --git a/config/library/utilities.lua b/library/utilities.lua similarity index 100% rename from config/library/utilities.lua rename to library/utilities.lua