mirror of
https://github.com/folke/snacks.nvim
synced 2025-08-03 18:28:38 +00:00
ci: better docgen
This commit is contained in:
parent
7270046a8f
commit
304a8c7d25
1 changed files with 3 additions and 2 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue