556 | 556 |
prettify_source_files(ldoc.examples,"example")
|
557 | 557 |
end
|
558 | 558 |
|
559 | |
ldoc.is_file_prettyfied = {}
|
|
559 |
ldoc.is_file_prettified = {}
|
560 | 560 |
|
561 | 561 |
if ldoc.prettify_files then
|
562 | 562 |
local files = List()
|
|
573 | 573 |
|
574 | 574 |
if type(ldoc.prettify_files) == 'table' then
|
575 | 575 |
files = tools.expand_file_list(ldoc.prettify_files, '*.*')
|
576 | |
-- -- not sure about resolving ldoc.prettify_files as string due to backward compatibility, see:
|
577 | |
-- -- - tests/styles/opt.ld:7
|
578 | |
-- -- - doc/html.lua:266
|
579 | |
-- elseif type(ldoc.prettify_files) == 'string' then
|
580 | |
-- files = tools.expand_file_list({ldoc.prettify_files}, '*.*')
|
581 | |
end
|
582 | |
|
583 | |
ldoc.is_file_prettyfied = tablex.makeset(files)
|
|
576 |
elseif type(ldoc.prettify_files) == 'string' then
|
|
577 |
-- the gotcha is that if the person has a folder called 'show', only the contents
|
|
578 |
-- of that directory will be converted. So, we warn of this amibiguity
|
|
579 |
if ldoc.prettify_files == 'show' then
|
|
580 |
-- just fall through with all module files collected above
|
|
581 |
if path.exists 'show' then
|
|
582 |
print("Notice: if you only want to prettify files in `show`, then set prettify_files to `show/`")
|
|
583 |
end
|
|
584 |
else
|
|
585 |
files = tools.expand_file_list({ldoc.prettify_files}, '*.*')
|
|
586 |
end
|
|
587 |
end
|
|
588 |
|
|
589 |
ldoc.is_file_prettified = tablex.makeset(files)
|
584 | 590 |
prettify_source_files(files,"file",linemap)
|
585 | 591 |
end
|
586 | 592 |
|