Make mod names in CDB desc hyperlinks to each mod README

This commit is contained in:
Aaron Suen 2023-11-13 07:26:52 -05:00
parent feb8ae08c8
commit cbba0215ec

View File

@ -67,7 +67,8 @@ local function scanmods(reqsock)
if reqsock == exist(m .. "/.requires-luasockets") then
local conf = readtext(m .. "/mod.conf")
local desc = string_match(conf, "description%s*=%s*(.-)\n")
parts[#parts + 1] = "- `" .. m .. "`: " .. desc
parts[#parts + 1] = "- [" .. m .. "](https://gitlab.com/sztest/szutilpack/-/blob/master/"
.. m .. "/README): " .. desc
end
end
end