Skip to content

Commit

Permalink
- Documentation generation now adds a function interface when appropr…
Browse files Browse the repository at this point in the history
…iate

git-svn-id: https://openmodelica.org/svn/OpenModelica/trunk@10757 f25d12d1-65f4-0310-ae8a-bbce733d8d8e
  • Loading branch information
sjoelund committed Dec 17, 2011
1 parent 4477b30 commit 422a85c
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion Examples/GenerateDoc.mos
Expand Up @@ -61,7 +61,7 @@ a:=0;
b:=getClassNames(builtin=true,recursive=true,sort=true);

/* If we want to test on fewer classes */
// b := {$TypeName(Modelica),$TypeName(Modelica.Math.Matrices.LAPACK.dgglse_vec)};
b := {$TypeName(Modelica),$TypeName(Modelica.Math.Matrices.LAPACK.dgglse_vec)};
// b := {$TypeName(Modelica),$TypeName(Modelica.Electrical.Analog.Basic),$TypeName(Modelica.Electrical.Analog.Basic.VariableInductor)};
// b := {$TypeName(Modelica.UsersGuide.Overview)};

Expand Down Expand Up @@ -136,6 +136,10 @@ for c in b loop
else
writeFile(filetmp, "\n<pre>" + docInfo + "</pre>", append = true);
end if;
interface := list(c, interfaceOnly = true);
if interface <> "" then
writeFile(filetmp, "\n<h4>Interface</h4>\n<blockquote><pre>" + interface + "</pre></blockquote>", append = true);
end if;
if size(contents,1)>0 then
writeFile(filetmp, "<h2>Contents</h2>\n", append = true);
writeFile(filetmp, "<table><tr><th>Name</th><th>Description</th></tr>", append = true);
Expand Down

0 comments on commit 422a85c

Please sign in to comment.