|
@@ -15,7 +15,7 @@ uses
|
|
PathFunc in '..\..\Components\PathFunc.pas';
|
|
PathFunc in '..\..\Components\PathFunc.pas';
|
|
|
|
|
|
const
|
|
const
|
|
- Version = '1.17';
|
|
|
|
|
|
+ Version = '1.18';
|
|
|
|
|
|
XMLFileVersion = '1';
|
|
XMLFileVersion = '1';
|
|
|
|
|
|
@@ -689,8 +689,8 @@ var
|
|
|
|
|
|
procedure AddLeaf(const Title, TopicName: String);
|
|
procedure AddLeaf(const Title, TopicName: String);
|
|
begin
|
|
begin
|
|
- SL.Add(Format('<tr><td><img src="images/contentstopic.svg" alt="" /></td>' +
|
|
|
|
- '<td><a href="%s" target="bodyframe">%s</a></td></tr>',
|
|
|
|
|
|
+ SL.Add(Format('<li><a href="%s" target="bodyframe">' +
|
|
|
|
+ '<img src="images/contentstopic.svg" alt="" /><span>%s</span></a></li>',
|
|
[EscapeHTML(GenerateTopicLink(TopicName, '')), EscapeHTML(Title)]));
|
|
[EscapeHTML(GenerateTopicLink(TopicName, '')), EscapeHTML(Title)]));
|
|
end;
|
|
end;
|
|
|
|
|
|
@@ -698,17 +698,14 @@ var
|
|
var
|
|
var
|
|
I: Integer;
|
|
I: Integer;
|
|
begin
|
|
begin
|
|
- SL.Add('<table>');
|
|
|
|
for I := 0 to SetupDirectives.Count-1 do
|
|
for I := 0 to SetupDirectives.Count-1 do
|
|
AddLeaf(SetupDirectives[I], GenerateSetupDirectiveTopicName(SetupDirectives[I]));
|
|
AddLeaf(SetupDirectives[I], GenerateSetupDirectiveTopicName(SetupDirectives[I]));
|
|
- SL.Add('</table>');
|
|
|
|
end;
|
|
end;
|
|
|
|
|
|
procedure HandleNode(const ParentNode: IXMLNode);
|
|
procedure HandleNode(const ParentNode: IXMLNode);
|
|
var
|
|
var
|
|
Node: IXMLNode;
|
|
Node: IXMLNode;
|
|
begin
|
|
begin
|
|
- SL.Add('<table>');
|
|
|
|
Node := ParentNode.FirstChild;
|
|
Node := ParentNode.FirstChild;
|
|
while Assigned(Node) do begin
|
|
while Assigned(Node) do begin
|
|
if not IsWhitespace(Node) then begin
|
|
if not IsWhitespace(Node) then begin
|
|
@@ -716,15 +713,17 @@ var
|
|
elContentsHeading:
|
|
elContentsHeading:
|
|
begin
|
|
begin
|
|
Inc(CurHeadingID);
|
|
Inc(CurHeadingID);
|
|
- SL.Add(Format('<tr id="nodecaption_%d"><td><img id="nodeimg_%d" src="images/contentsheadopen.svg" alt="> " onclick="toggle_node(%d);" /></td>' +
|
|
|
|
- '<td><a href="javascript:toggle_node(%d);">%s</a></td></tr>',
|
|
|
|
- [CurHeadingID, CurHeadingID, CurHeadingID, CurHeadingID, EscapeHTML(Node.Attributes['title'])]));
|
|
|
|
- SL.Add(Format('<tr id="nodecontent_%d"><td></td><td>', [CurHeadingID]));
|
|
|
|
|
|
+ SL.Add(Format('<li>' +
|
|
|
|
+ '<a href="javascript:toggle_node(%d);" aria-controls="nodecontent_%d" aria-expanded="true">' +
|
|
|
|
+ '<img src="images/contentsheadopen.svg" alt="'#$25BC' " />' +
|
|
|
|
+ '<span>%s</span></a>',
|
|
|
|
+ [CurHeadingID, CurHeadingID, EscapeHTML(Node.Attributes['title'])]));
|
|
|
|
+ SL.Add(Format('<ul id="nodecontent_%d">', [CurHeadingID]));
|
|
if Node.Attributes['title'] = '[Setup] section directives' then
|
|
if Node.Attributes['title'] = '[Setup] section directives' then
|
|
HandleSetupDirectivesNode
|
|
HandleSetupDirectivesNode
|
|
else
|
|
else
|
|
HandleNode(Node);
|
|
HandleNode(Node);
|
|
- SL.Add('</td></tr>');
|
|
|
|
|
|
+ SL.Add('</ul></li>');
|
|
end;
|
|
end;
|
|
elContentsTopic:
|
|
elContentsTopic:
|
|
AddLeaf(Node.Attributes['title'], Node.Attributes['topic']);
|
|
AddLeaf(Node.Attributes['title'], Node.Attributes['topic']);
|
|
@@ -734,7 +733,6 @@ var
|
|
end;
|
|
end;
|
|
Node := Node.NextSibling;
|
|
Node := Node.NextSibling;
|
|
end;
|
|
end;
|
|
- SL.Add('</table>');
|
|
|
|
end;
|
|
end;
|
|
|
|
|
|
var
|
|
var
|
|
@@ -744,7 +742,9 @@ begin
|
|
SL := TStringList.Create;
|
|
SL := TStringList.Create;
|
|
try
|
|
try
|
|
CurHeadingID := 0;
|
|
CurHeadingID := 0;
|
|
|
|
+ SL.Add('<ul>');
|
|
HandleNode(ContentsNode);
|
|
HandleNode(ContentsNode);
|
|
|
|
+ SL.Add('</ul>');
|
|
|
|
|
|
TemplateSL := TStringList.Create;
|
|
TemplateSL := TStringList.Create;
|
|
try
|
|
try
|