mirror of https://github.com/Hilbis/Hilbish
fix: set old moddocpath
parent
48a06f8022
commit
7d0c3f3bf0
|
@ -7,6 +7,7 @@
|
||||||
- `flush()` and `autoFlush()` related to flushing outputs
|
- `flush()` and `autoFlush()` related to flushing outputs
|
||||||
- `pipe` property to check if a sink with input is a pipe (like stdin)
|
- `pipe` property to check if a sink with input is a pipe (like stdin)
|
||||||
- Show indexes on cdr list
|
- Show indexes on cdr list
|
||||||
|
- Fix doc command not displaying correct subdocs when using shorthand api doc access (`doc api hilbish.jobs` as an example)
|
||||||
|
|
||||||
### Fixed
|
### Fixed
|
||||||
- Replaced `sed` in-place editing with `grep` and `mv` for compatibility with BSD utils
|
- Replaced `sed` in-place editing with `grep` and `mv` for compatibility with BSD utils
|
||||||
|
|
|
@ -39,7 +39,7 @@ Available sections: ]] .. table.concat(modules, ', ')
|
||||||
subdocName = '_index'
|
subdocName = '_index'
|
||||||
end
|
end
|
||||||
f = io.open(moddocPath .. subdocName .. '.md', 'rb')
|
f = io.open(moddocPath .. subdocName .. '.md', 'rb')
|
||||||
local oldmoddocPath
|
local oldmoddocPath = moddocPath
|
||||||
if not f then
|
if not f then
|
||||||
moddocPath = moddocPath .. subdocName:match '%w+' .. '/'
|
moddocPath = moddocPath .. subdocName:match '%w+' .. '/'
|
||||||
f = io.open(moddocPath .. subdocName .. '.md', 'rb')
|
f = io.open(moddocPath .. subdocName .. '.md', 'rb')
|
||||||
|
|
Loading…
Reference in New Issue