1local in_module_section = false
4local tmp_folder = os.tmpname()
6os.execute("mkdir -p " .. tmp_folder)
8function extend(list1, list2)
10 list1[#list1 + 1] = list2[i]
14function module_blocks(module_filenames)
16 for _, filename in pairs(module_filenames) do
17 os.execute("ldoc -q -l tools -d " .. tmp_folder .. " " .. filename)
18 local module_file = io.open(tmp_folder .. "/index.html")
19 local module_html = module_file:read("*a")
20 local module_doc = pandoc.read(module_html, "html")
21 extend(blocks, module_doc.blocks)
27 if in_module_section then
29 in_module_section = false
34 elseif el.identifier == "module-pandoc" then
35 in_module_section = true
36 return module_blocks{'data/pandoc.lua'}
37 elseif el.identifier == "module-pandoc.list" then
38 in_module_section = true
39 return module_blocks{'data/List.lua'}
44 if in_module_section then
keysesc to close
- j k
- move down, up
- enter
- open
- esc
- back, or up a level
- 1 2 3 4
- readme, files, commits, refs
- /
- filter
- y
- copy the clone command
- c
- compare the chosen commit with another (or shift-click both)
- ?
- show or hide this list