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

feat(commands/doc): make it easier to get interface docs

This commit is contained in:
sammyette 2023-01-07 13:54:08 -04:00
parent 07a7a75b46
commit 354f257c03
Signed by: sammyette
GPG Key ID: 904FC49417B44DCD

View File

@ -24,6 +24,9 @@ commander.register('doc', function(args)
subdocName = '_index'
end
f = io.open(moddocPath .. subdocName .. '.md', 'rb')
if not f then
f = io.open(moddocPath .. subdocName:match '%w+' .. '/' .. subdocName .. '.md', 'rb')
end
if not f then
moddocPath = moddocPath .. subdocName .. '/'
subdocName = args[3] or '_index'