Skip to content

Commit c8bc6d0

Browse files
authored
Minor fixes to HTML/Javascript API document
1 parent 3bae69c commit c8bc6d0

File tree

1 file changed

+8
-3
lines changed

1 file changed

+8
-3
lines changed

plugindevtools/PluginDevTools/kritadoc.html

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,11 @@
6363
.methodPrev {
6464
color: #DDDD00;
6565
}
66+
67+
body {
68+
color: #FFF;
69+
background-color: #000;
70+
}
6671
</style>
6772

6873

@@ -328,7 +333,7 @@ <h2 class="fileHeader" onclick="showClass(event.target)"><span class="fileName">
328333

329334

330335

331-
const regexMethod = new RegExp(String.raw`(?:.+?(?<doc>\/\*\*\s*.+?\s*\*\/|\/\/\/[^\r\n]+?)\s*?|\s*?)\n\s*?(?:(?<type>(?:virtual|static|)\s*?[\w\*]+(?:\<[\w \*,]+\>|))\s+(?<name>[\w\*]+)|(?<cname>`+className+String.raw`))\((?<params>[^\r\n]*)\)(?<extra>[^\r\n])*?;`,'s');
336+
const regexMethod = new RegExp(String.raw`(?:[^(]+?(?<doc>\/\*\*\s*.+?\s*\*\/|\/\/\/[^\r\n]+?)\s*?|\s*?)\n\s*?(?:(?<type>(?:virtual|static|)\s*?[\w\*]+(?:\<[\w \*,]+\>|))\s+(?<name>[\w\*]+)|(?<cname>`+className+String.raw`))\((?<params>[^\r\n]*)\)(?<extra>[^\r\n])*?;`,'s');
332337

333338
const matchFile = content.match(regexFile);
334339
content = content.replace(regexFile,'');
@@ -362,7 +367,7 @@ <h2 class="fileHeader" onclick="showClass(event.target)"><span class="fileName">
362367

363368
const matchMethod = subcontent.match(regexMethod);
364369
subcontent = subcontent.replace(regexMethod,'');
365-
//console.log(subcontent, matchMethod);
370+
console.log(subcontent, matchMethod);
366371

367372
if (matchMethod) {
368373

@@ -479,7 +484,7 @@ <h2 class="fileHeader" onclick="showClass(event.target)"><span class="fileName">
479484

480485

481486
let mapDict = data
482-
487+
console.log(mapDict)
483488

484489

485490
let classItem = classTemplate.cloneNode(true);

0 commit comments

Comments
 (0)