Skip to content

Commit

Permalink
- Also add library versions
Browse files Browse the repository at this point in the history
git-svn-id: https://openmodelica.org/svn/OpenModelica/trunk@10742 f25d12d1-65f4-0310-ae8a-bbce733d8d8e
  • Loading branch information
sjoelund committed Dec 16, 2011
1 parent 33fbc6f commit 116346e
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions Examples/GenerateDoc.mos
Expand Up @@ -70,7 +70,7 @@ searchPaths := "";
filetmp := "index.html";
writeFile(filetmp, "<html><head><title>Modelica Documentation</title></head><body><h1>Modelica Documentation</h1>\n");
writeFile(filetmp, "<h2>Contents</h2>\n", append = true);
writeFile(filetmp, "<table><tr><td>Name</td><td>Description</td></tr>", append = true);
writeFile(filetmp, "<table><tr><td>Name</td><td>Description</td><td>Version</td></tr>", append = true);
for cl in classNames loop
file := getSourceFile(cl);
base := basename(file);
Expand All @@ -81,7 +81,8 @@ for cl in classNames loop
contentStrToks := strtok(contentStr,".");
comment := getClassComment(cl);
fileName := filename(contentStr);
writeFile(filetmp, "<tr><td><a href=\"" + fileName + ".html\">" + contentStrToks[end] + "</a></td><td>" + comment + "</td></tr>", append = true);
modelVersion := getVersion(cl);
writeFile(filetmp, "<tr><td><a href=\"" + fileName + ".html\">" + contentStrToks[end] + "</a></td><td>" + comment + "</td><td>" + modelVersion + "</td></tr>", append = true);
end for;
writeFile(filetmp, "</table>\n", append = true);
writeFile(filetmp, version + " (<a href=\"MSL.tar.xz\">Offline version</a>)", append = true);
Expand Down

0 comments on commit 116346e

Please sign in to comment.