Skip to content

Commit

Permalink
more fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
daimor committed Dec 15, 2024
1 parent f9b6eb7 commit bf15367
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 5 deletions.
1 change: 0 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -22,5 +22,4 @@ yarn-error.log*
lerna-debug.log

/data
/ref
/classes
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,6 @@
]
},
"engines": {
"node": ">=18.0"
"node": ">=20.0"
}
}
5 changes: 2 additions & 3 deletions plugins/cls-loader/src/plugin/classes.ts
Original file line number Diff line number Diff line change
Expand Up @@ -202,6 +202,7 @@ function reshapeHTML(text) {
if (Array.isArray(text)) {
text = text.join(" ");
}
return text;
text = text.replaceAll(/\[/gi, "\[");
text = text.replaceAll(/\]/gi, "\]");
text = text.replaceAll(/\<br\s*\/?\>/gi, "\n\n");
Expand Down Expand Up @@ -285,8 +286,6 @@ ${asCode(classContent)}
${asCode(classDef.Class.code)}
${reshapeHTML(classDef.Class.description)}
${noCode ? "" : originalCode}
`;
documentation += membersToMarkdown(
Expand All @@ -309,7 +308,7 @@ ${noCode ? "" : originalCode}
export async function generateDocFile(classFile, folder, mdFile) {
await mkdir(folder, { recursive: true });
const mdFileFull = path.join(folder, mdFile);
await writeFile(mdFileFull, await generateDoc(classFile, true));
await writeFile(mdFileFull, await generateDoc(classFile, false));
return mdFileFull;
}

Expand Down
1 change: 1 addition & 0 deletions static/img/intersystems-docs.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit bf15367

Please sign in to comment.