ci: better docgen

This commit is contained in:
Folke Lemaitre 2024-11-05 20:15:48 +01:00
parent 7270046a8f
commit 304a8c7d25
No known key found for this signature in database
GPG key ID: 41F8B1FBACAE2040

View file

@ -85,14 +85,15 @@ function M.render(name, info)
add(M.md(info.config))
end
add("## 📦 Module\n")
if #info.types > 0 then
add("## 📚 Types\n")
for _, t in ipairs(info.types) do
add(M.md(t))
end
end
add("## 📦 Module\n")
if info.mod then
local mod_lines = vim.split(info.mod, "\n")
mod_lines = vim.tbl_filter(function(line)