unknown typename check for kind_names; updated ldoc's config.ld
steve donovan
10 years ago
6 | 6 |
dir='../out'
|
7 | 7 |
readme='doc.md'
|
8 | 8 |
style='!pale'
|
|
9 |
kind_names={topic='Manual',script='Programs'}
|
9 | 10 |
examples = {
|
10 | 11 |
'../tests/styles/colon.lua',
|
11 | 12 |
'../tests/styles/four.lua',
|
118 | 118 |
-- the ldoc table represents the API available in `config.ld`.
|
119 | 119 |
local ldoc = { charset = 'UTF-8' }
|
120 | 120 |
|
121 | |
local kind_names
|
|
121 |
local known_types, kind_names = {}
|
122 | 122 |
|
123 | 123 |
local function lookup (itype,igroup,isubgroup)
|
124 | 124 |
local kn = kind_names[itype]
|
|
125 |
known_types[itype] = true
|
125 | 126 |
if kn then
|
126 | 127 |
if type(kn) == 'string' then
|
127 | 128 |
igroup = kn
|
|
147 | 148 |
ProjectMap:add_kind(lookup('classmod','Classes'))
|
148 | 149 |
ProjectMap:add_kind(lookup('topic','Topics'))
|
149 | 150 |
ProjectMap:add_kind(lookup('example','Examples'))
|
|
151 |
|
|
152 |
for k in pairs(kind_names) do
|
|
153 |
if not known_types[k] then
|
|
154 |
quit("unknown item type "..tools.quote(k).." in kind_names")
|
|
155 |
end
|
|
156 |
end
|
150 | 157 |
end
|
151 | 158 |
|
152 | 159 |
|