Skip to content

Commit 42429e6

Browse files
committed
file={'.'} in config.d caused module name failure; docs->doc
1 parent 6d22818 commit 42429e6

File tree

4 files changed

+15
-7
lines changed

4 files changed

+15
-7
lines changed

config.ld

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1-
project='LDoc'
2-
title='LDoc documentation'
3-
description='A Lua documentation tool'
4-
format='discount'
5-
file='ldoc.lua'
6-
dir='out'
7-
readme='docs/doc.md'
1+
project='LDoc'
2+
title='LDoc documentation'
3+
description='A Lua documentation tool'
4+
format='discount'
5+
file='ldoc.lua'
6+
dir='out'
7+
readme='doc/doc.md'

doc/config.ld

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
project='LDoc'
2+
title='LDoc documentation'
3+
description='A Lua documentation tool'
4+
format='discount'
5+
file='../ldoc.lua'
6+
dir='../out'
7+
readme='doc.md'

docs/doc.md renamed to doc/doc.md

File renamed without changes.

ldoc.lua

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -301,6 +301,7 @@ end
301301
if type(source_dir) == 'string' and path.isfile(source_dir) then
302302
source_dir = path.splitpath(source_dir)
303303
end
304+
source_dir = source_dir:gsub('[/\\]%.$','')
304305

305306
---------- specifying the package for inferring module names --------
306307
-- If you use module(...), or forget to explicitly use @module, then

0 commit comments

Comments
 (0)