@@ -203,8 +203,8 @@ function reshapeHTML(text) {
203
203
text = text . join ( " " ) ;
204
204
}
205
205
return text ;
206
- text = text . replaceAll ( / \[ / gi, "\ [" ) ;
207
- text = text . replaceAll ( / \] / gi, "\ ]" ) ;
206
+ text = text . replaceAll ( / \[ / gi, "[" ) ;
207
+ text = text . replaceAll ( / \] / gi, "]" ) ;
208
208
text = text . replaceAll ( / \< b r \s * \/ ? \> / gi, "\n\n" ) ;
209
209
text = text . replaceAll ( / \< \/ ? p \> / gi, "\n\n" ) ;
210
210
text = text . replaceAll ( / \< \/ ? p r e \> / gi, "\n```\n" ) ;
@@ -233,14 +233,14 @@ function reshapeHTML(text) {
233
233
234
234
let result = `${ text } \n\n` ;
235
235
const htmlValidate = new HtmlValidate ( ) ;
236
- let report = htmlValidate . validateStringSync ( text ) ;
237
- if ( ! report . valid ) {
238
- result = `
236
+ let report = htmlValidate . validateStringSync ( text ) ;
237
+ if ( ! report . valid ) {
238
+ result = `
239
239
:::danger
240
240
Error while rendering HTML
241
241
:::
242
242
` ;
243
- }
243
+ }
244
244
245
245
return result ;
246
246
}
@@ -256,8 +256,9 @@ function membersToMarkdown(
256
256
}
257
257
let doc = `## ${ title } \n\n` ;
258
258
entries . forEach ( ( [ key , member ] ) => {
259
- let description = member . description . join ( " " ) ;
260
- doc += `### ${ member . name } \n\n${ asCode ( member . code ) } \n\n` ;
259
+ // let description = member.description.join(" ");
260
+ doc += `### ${ member . name } \n\n` ;
261
+ // doc += `${asCode(member.code)}\n\n`;
261
262
// description = reshapeHTML(member.description);
262
263
// doc += description;
263
264
// doc += "\n\n";
@@ -267,7 +268,7 @@ function membersToMarkdown(
267
268
}
268
269
269
270
export async function generateDoc ( classFile , noCode : boolean = true ) {
270
- console . log ( ' generateDoc' , classFile ) ;
271
+ console . log ( " generateDoc" , classFile ) ;
271
272
const classContent = ( await readFile ( classFile ) ) . toString ( ) ;
272
273
const classDef : ClassDefinition = parseClassFile ( classContent ) ;
273
274
0 commit comments