mirror of
https://github.com/folke/snacks.nvim
synced 2025-08-03 18:28:38 +00:00
ci(docs): added support for module subdirectories
This commit is contained in:
parent
51996dfeac
commit
dbb1764ae0
1 changed files with 2 additions and 1 deletions
|
@ -352,7 +352,8 @@ function M._build()
|
|||
local skip = { "docs", "health" }
|
||||
for file, t in vim.fs.dir("lua/snacks", { depth = 1 }) do
|
||||
local name = vim.fn.fnamemodify(file, ":t:r")
|
||||
if t == "file" and not vim.tbl_contains(skip, name) then
|
||||
if not vim.tbl_contains(skip, name) then
|
||||
file = t == "directory" and ("%s/init.lua"):format(file) or file
|
||||
print(name .. ".md")
|
||||
local path = ("lua/snacks/%s"):format(file)
|
||||
local lines = vim.fn.readfile(path)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue