mirror of https://github.com/Hilbis/Hilbish
fix(commands/doc): ignore index.md for old installs
parent
40c8593abd
commit
c66a99c515
|
@ -45,7 +45,7 @@ Available sections: ]] .. table.concat(modules, ', ')
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
funcdocs = f:read '*a':gsub('-([%d]+)', '%1')
|
funcdocs = f:read '*a':gsub('-([%d]+)', '%1')
|
||||||
local moddocs = table.filter(fs.readdir(moddocPath), function(f) return f ~= '_index.md' end)
|
local moddocs = table.filter(fs.readdir(moddocPath), function(f) return f ~= '_index.md' or f ~= 'index.md' end)
|
||||||
local subdocs = table.map(moddocs, function(fname)
|
local subdocs = table.map(moddocs, function(fname)
|
||||||
return lunacolors.underline(lunacolors.blue(string.gsub(fname, '.md', '')))
|
return lunacolors.underline(lunacolors.blue(string.gsub(fname, '.md', '')))
|
||||||
end)
|
end)
|
||||||
|
|
Loading…
Reference in New Issue