fix: list subdocs for hilbish module

commander-stdout
sammyette 2022-12-20 01:42:58 -04:00
parent b46bd0059e
commit 1a2d29aee7
Signed by: sammyette
GPG Key ID: 904FC49417B44DCD
1 changed files with 2 additions and 2 deletions

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 .. '.')