Fix icon path
This commit is contained in:
parent
bbd498ab39
commit
4e61eefe4a
4
ldoc.lua
4
ldoc.lua
|
@ -830,6 +830,10 @@ ldoc.project = ldoc.project or args.project
|
||||||
ldoc.package = args.package:match '%a+' and args.package or nil
|
ldoc.package = args.package:match '%a+' and args.package or nil
|
||||||
ldoc.icon = ldoc.icon or args.icon
|
ldoc.icon = ldoc.icon or args.icon
|
||||||
|
|
||||||
|
if ldoc.icon then
|
||||||
|
ldoc.icon_basename = path.basename(ldoc.icon)
|
||||||
|
end
|
||||||
|
|
||||||
local source_date_epoch = os.getenv("SOURCE_DATE_EPOCH")
|
local source_date_epoch = os.getenv("SOURCE_DATE_EPOCH")
|
||||||
if args.testing then
|
if args.testing then
|
||||||
ldoc.updatetime = "2015-01-01 12:00:00"
|
ldoc.updatetime = "2015-01-01 12:00:00"
|
||||||
|
|
|
@ -36,11 +36,11 @@ return [==[
|
||||||
<br/>
|
<br/>
|
||||||
<h1>$(ldoc.project)</h1>
|
<h1>$(ldoc.project)</h1>
|
||||||
|
|
||||||
# if ldoc.icon then
|
# if ldoc.icon_basename then
|
||||||
# if module then
|
# if module then
|
||||||
<img src="../data/$(ldoc.icon)" />
|
<img src="../data/$(ldoc.icon_basename)" />
|
||||||
# else
|
# else
|
||||||
<img src="data/$(ldoc.icon)" />
|
<img src="data/$(ldoc.icon_basename)" />
|
||||||
# end
|
# end
|
||||||
# end
|
# end
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue