mirror of
https://github.com/Hilbis/Hilbish
synced 2025-03-31 02:33:23 +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'
|
subdocName = '_index'
|
||||||
end
|
end
|
||||||
f = io.open(moddocPath .. subdocName .. '.md', 'rb')
|
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
|
if not f then
|
||||||
moddocPath = moddocPath .. subdocName .. '/'
|
moddocPath = moddocPath .. subdocName .. '/'
|
||||||
subdocName = args[3] or '_index'
|
subdocName = args[3] or '_index'
|
||||||
|
Loading…
x
Reference in New Issue
Block a user