Codebase list lua-ldoc / f09d617
always write output with lf line endings steve donovan 7 years ago
3 changed file(s) with 21 addition(s) and 1 deletion(s). Raw diff Collapse all Expand all
241241 end
242242
243243 function M.writefile(name,text)
244 local ok,err = utils.writefile(name,text)
244 local f,err = io.open(name,"wb")
245 --~ local ok,err = utils.writefile(name,text)
245246 if err then quit(err) end
247 f:write(text)
248 f:close()
246249 end
247250
248251 function M.name_of (lpath)
0 function run_test(dir)
1 os.execute('cd '..dir..' && ldoc --testing . && diff -r doc cdocs')
2 end
3 run_test('tests')
4 run_test('tests/example')
5 run_test('tests/md-test')
0 # Documentation
1
2 ## types
3
4 A reference to @{types.first}
5
6 A `first` topic
7
8 ## classes
9
10 A `second` topic