chore(lune): add @generated comment and heading for docsgen

This commit is contained in:
Erica Marigold 2025-02-23 11:56:52 +00:00
parent c7f9c8e03c
commit 4ad55c9f52
Signed by: DevComp
SSH key fingerprint: SHA256:jD3oMT4WL3WHPJQbrjC3l5feNCnkv7ndW8nYaHX5wFw

View file

@ -97,7 +97,9 @@ end
local function writeMarkdown(path: string, items: { moonwave.Item })
local start = os.clock()
local buf = ""
local buf = "<!-- This file was @generated by `lune run docsgen`, please do not edit this manually, changes will be overwritten. -->\n"
buf ..= "# Reference"
for _, item in items do
logger.log("info", "Generating docs for", item.name)
buf = writeClass(buf, item.name, item.desc)