[!NOTE] These scripts were generated and are maintained by an AI coding assistant.
These Lua scripts parse Lua Language Server (LuaLS) type annotations/definitions and generate Markdown documentation suitable for VitePress.
generate-docs.lua: The main driver script. It scans a source directory for type definition files (.luaor.d.lua), parses their type annotations, renders individual Markdown API files, and compiles a consolidatedtypes.mdfile containing type aliases and especs.luals-type-parser.lua: Parses LuaLS type annotations, extracting classes, functions, aliases, parameters, return types, and descriptions.
You can run the generator locally using luajit (or standard lua).
lua scripts/generate-docs.lua <types> <output><types>: Path to LuaLS type files (e.g.types/).<output>: Path to the documentation folder (e.g.docs/src/x).