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:
parent
07a7a75b46
commit
354f257c03
@ -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'
|
||||
|
Loading…
x
Reference in New Issue
Block a user