2
2
mirror of https://github.com/Hilbis/Hilbish synced 2025-03-28 01:10:42 +00:00

fix: list subdocs for hilbish module

This commit is contained in:
sammyette 2022-12-20 01:42:58 -04:00
parent b46bd0059e
commit 1a2d29aee7
Signed by: sammyette
GPG Key ID: 904FC49417B44DCD

View File

@ -26,8 +26,8 @@ commander.register('doc', function(args)
f = io.open(moddocPath .. subdocName .. '.md', 'rb')
if not f then
moddocPath = moddocPath .. subdocName .. '/'
local subsubDocName = args[3] or '_index'
f = io.open(moddocPath .. subsubDocName .. '.md', 'rb')
subdocName = args[3] or '_index'
f = io.open(moddocPath .. subdocName .. '.md', 'rb')
end
if not f then
print('No documentation found for ' .. mod .. '.')