#158 summary line lost with @type tag
steve donovan
9 years ago
370 | 370 |
section_description = this_section.summary..' '..(this_section.description or '')
|
371 | 371 |
this_section.summary = ''
|
372 | 372 |
elseif item.tags.within then
|
373 | |
section_description = item.tags.within
|
374 | |
item.section = section_description
|
|
373 |
item.section = item.tags.within
|
375 | 374 |
else
|
376 | 375 |
if item.type == 'function' or item.type == 'lfunction' then
|
377 | 376 |
section_description = "Methods"
|
|
379 | 378 |
item.section = item.type
|
380 | 379 |
end
|
381 | 380 |
elseif item.tags.within then -- ad-hoc section...
|
382 | |
section_description = item.tags.within
|
383 | |
item.section = section_description
|
|
381 |
item.section = item.tags.within
|
384 | 382 |
else -- otherwise, just goes into the default sections (Functions,Tables,etc)
|
385 | 383 |
item.section = item.type;
|
386 | 384 |
end
|
131 | 131 |
# for kind, items in module.kinds() do
|
132 | 132 |
# local kitem = module.kinds:get_item(kind)
|
133 | 133 |
<h2><a name="$(no_spaces(kind))"></a>$(kind)</h2>
|
134 | |
#-- $(M(module.kinds:get_section_description(kind),nil))
|
|
134 |
$(M(module.kinds:get_section_description(kind),nil))
|
135 | 135 |
# if kitem then
|
136 | 136 |
$(M(ldoc.descript(kitem),kitem))
|
137 | 137 |
# if kitem.usage then
|
0 | |
mode=lua
|
1 | |
tabs=use=false,size=3
|
2 | 2 |
-- @module type
|
3 | 3 |
|
4 | 4 |
----
|
5 | |
-- Our class.
|
|
5 |
-- Our class. Any function or table in this section belongs to `Bonzo`
|
6 | 6 |
-- @type Bonzo
|
7 | 7 |
|
8 | 8 |
----
|