2
2
mirror of https://github.com/Hilbis/Hilbish synced 2025-04-21 04:53:24 +00:00

fix(commands/greenhouse): set nil page title

This commit is contained in:
sammyette 2023-07-11 20:24:20 -04:00
parent ade14a6238
commit 9b39d5ffcf
Signed by: sammyette
GPG Key ID: 904FC49417B44DCD

View File

@ -60,7 +60,7 @@ Available sections: ]] .. table.concat(modules, ', ')
return lunacolors.underline(lunacolors.blue(string.gsub(fname, '.md', '')))
end)
if #moddocs ~= 0 then
funcdocs = funcdocs .. '\nSubdocs: ' .. table.concat(subdocs, ', ') .. '\nLMAO'
funcdocs = funcdocs .. '\nSubdocs: ' .. table.concat(subdocs, ', ')
end
local valsStr = funcdocs:match '%-%-%-\n([^%-%-%-]+)\n'
@ -89,7 +89,7 @@ Available sections: ]] .. table.concat(modules, ', ')
local gh = Greenhouse(sinks.out)
local backtickOccurence = 0
local page = Page(lunacolors.format(doc:gsub('`', function()
local page = Page(nil, lunacolors.format(doc:gsub('`', function()
backtickOccurence = backtickOccurence + 1
if backtickOccurence % 2 == 0 then
return '{reset}'