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 -- special case for Module pandoc
30 (el.level == 2 and el.identifier == 'helper-functions') then
31 in_module_section = false
36 elseif el.identifier == "module-pandoc" then
37 in_module_section = true
38 return module_blocks{'data/pandoc.lua'}
39 elseif el.identifier == "module-pandoc.list" then
40 in_module_section = true
41 return module_blocks{'data/pandoc.List.lua'}
46 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