mirror of https://github.com/Hilbis/Hilbish
fix: log files for generated docs
parent
3f60d9128d
commit
9128a3ff2e
|
@ -11,11 +11,12 @@ for _, fname in ipairs(files) do
|
|||
local header = f:read '*l'
|
||||
if not header:match(emmyPattern) then goto continue end
|
||||
|
||||
print(fname)
|
||||
|
||||
local iface = header:match(emmyPattern)
|
||||
pieces[iface] = {}
|
||||
|
||||
local docPiece = {}
|
||||
|
||||
for line in f:lines() do
|
||||
if line == header then goto continue2 end
|
||||
if not line:match(emmyPattern) then
|
||||
|
@ -39,6 +40,8 @@ for iface, dps in pairs(pieces) do
|
|||
local path = string.format('docs/api/%s/%s.md', mod, iface)
|
||||
local f <close> = io.open(path, 'a+')
|
||||
|
||||
print(mod, path)
|
||||
|
||||
for func, docs in pairs(dps) do
|
||||
local params = table.filter(docs, function(t)
|
||||
return t:match '^%-%-%- @param'
|
||||
|
|
Loading…
Reference in New Issue