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 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64
|
%{
--------------------------------------------------------------------------------
--
-- This file is part of the Doxyrest toolkit.
--
-- Doxyrest is distributed under the MIT license.
-- For details see accompanying license.txt file,
-- the public copy of which is also available at:
-- http://tibbo.com/downloads/archive/doxyrest/license.txt
--
--------------------------------------------------------------------------------
local argArray = table.pack(...)
local compound = argArray[1]
local itemArray = argArray[2]
local getDeclString = argArray[3]
local sectionName = argArray[4]
if sectionName then
}
$(getTitle(sectionName, 3))
%{
end -- if
for i = 1, #itemArray do
local item = itemArray[i]
if isItemInCompoundDetails(item, compound) then
local decl = getDeclString(item, g_simpleItemNameTemplate, "\t");
}
$(getItemRefTargetString(item))
.. ref-code-block:: $LANGUAGE
:class: doxyrest-title-code-block
$decl
%{
if item.isSubGroupHead then
local isPrevMl = string.find(decl, "\n")
for j = 1, #item.subGroupSlaveArray do
slaveItem = item.subGroupSlaveArray[j]
local decl = getDeclString(slaveItem, g_simpleItemNameTemplate, "\t")
local isMl = string.find(decl, "\n")
local extraSep = ""
if isMl or isPrevMl then
extraSep = "\n"
end
isPrevMl = isMl
}
$extraSep $decl
%{
end -- for
end -- if
}
$(getItemDetailedDocumentation(item))
%{
end -- if
end -- for
}
|