|
40 | 40 | */ |
41 | 41 |
|
42 | 42 | setDebugFlags("nogen") /* Don't generate dll/so-files when instantiating classes (performance) */; |
| 43 | +setCommandLineOptions("--noSimplify"); |
43 | 44 |
|
44 | 45 | // rmSymlinks |
45 | 46 | // (false) should we keep readable names (nice online, if the server handles symbolic links), or |
@@ -82,8 +83,6 @@ if getEnvironmentVar("GenerateDocTest") == "YES" then |
82 | 83 | system("mkdir -p Icons"); |
83 | 84 | else |
84 | 85 | system("find . -maxdepth 1 -name '*.html' -delete"); |
85 | | - system("find Icons -maxdepth 1 -name '*.svg' -delete"); |
86 | | - |
87 | 86 | commands:={"python "+py+" --quiet --output-dir Icons "+typeNameString(cl) for cl in getClassNames(builtin=false)};getErrorString(); |
88 | 87 | res:=system_parallel(commands);getErrorString(); |
89 | 88 | //system("rm -f *.json");getErrorString(); |
@@ -135,11 +134,6 @@ algorithm |
135 | 134 | uri := OpenModelica.Scripting.stringReplace(uri,\">\",\"x3E\"); |
136 | 135 | end uriEncode; |
137 | 136 |
|
138 | | -function notLast |
139 | | - input String str[:]; |
140 | | - output String ostr[:] = str[1:end]; |
141 | | -end notLast; |
142 | | - |
143 | 137 | function last |
144 | 138 | input String str[:]; |
145 | 139 | output String ostr = str[end]; |
@@ -212,7 +206,7 @@ protected |
212 | 206 | algorithm |
213 | 207 | docInfo := if item.docInfo[1] == \"\" |
214 | 208 | then preSuffixIfNotEmpty(\"<h2><a name=\\\"info\\\">Information</a></h2><pre>\", item.comment, \"</pre>\") |
215 | | - else if OpenModelica.Scripting.regexBool(item.docInfo[1],\"<html>\") or OpenModelica.Scripting.regexBool(item.docInfo[1],\"<HTML>\") |
| 209 | + else if OpenModelica.Scripting.regexBool(item.docInfo[1],\"<html>\", caseInsensitive=true) |
216 | 210 | then \"<h2><a name=\\\"info\\\">Information</a></h2>\" + item.docInfo[1] |
217 | 211 | else preSuffixIfNotEmpty(\"<h2><a name=\\\"info\\\">Information</a></h2><pre>\", toHtml(item.docInfo[1]), \"</pre>\"); |
218 | 212 | revision := if item.docInfo[2] <> \"\" then \"<h2><a name=\\\"revisions\\\">Revisions</a></h2>\" + item.docInfo[2] else \"\"; |
@@ -460,6 +454,7 @@ system("rm -f tidy.links tidy.out tidy.err tidy.filtered"); |
460 | 454 |
|
461 | 455 | "Copying original HTML files to 'old-html-tmp'"; |
462 | 456 | writeFile("copyold.py","#!/usr/bin/env python |
| 457 | +import glob |
463 | 458 | import os |
464 | 459 | import shutil |
465 | 460 | oldtmp = 'old-html-tmp' |
|
0 commit comments