-
Notifications
You must be signed in to change notification settings - Fork 0
/
dash.ld
37 lines (31 loc) · 1.23 KB
/
dash.ld
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
file = "Project Veek.docset/Contents/Resources/docSet.dsidx"
function interface(db, mod)
db:exec("INSERT OR IGNORE INTO searchIndex(name, type, path) " ..
"VALUES('" .. mod.name .. "', 'Interface', " ..
"'classes/" .. mod.name .. ".html')")
for _, item in ipairs(mod.items) do
if item.type == 'function' then
db:exec("INSERT OR IGNORE INTO searchIndex(name, type, path) " ..
" VALUES(''" .. item.name .. "', 'Function'," ..
" 'interfaces/" .. mod.name .. ".html#" .. item.name .. "');")
end
end
end
function widget(db, mod)
db:exec("INSERT OR IGNORE INTO searchIndex(name, type, path) " ..
"VALUES('" .. mod.name .. "', 'Class', " ..
"'widgets/" .. mod.name .. ".html')")
for _, item in ipairs(mod.items) do
if item.type == 'function' then
db:exec("INSERT OR IGNORE INTO searchIndex(name, type, path) " ..
" VALUES(''" .. item.name .. "', 'Function'," ..
" 'widgets/" .. mod.name .. ".html#" .. item.name .. "');")
elseif item.type == 'event' then
db:exec("INSERT OR IGNORE INTO searchIndex(name, type, path) " ..
" VALUES(''" .. item.name .. "', 'Event'," ..
" 'widgets/" .. mod.name .. ".html#" .. item.name .. "');")
end
end
end
function topic(db, mod)
end