vivth 1.0.5 → 1.0.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/src/doc/JSautoDOC.mjs +15 -14
package/package.json
CHANGED
package/src/doc/JSautoDOC.mjs
CHANGED
|
@@ -257,6 +257,7 @@ export class JSautoDOC {
|
|
|
257
257
|
path: { relative: relativePath },
|
|
258
258
|
baseName: { noExt },
|
|
259
259
|
} = (await this.#parsedFilesRef.get(path_)).value;
|
|
260
|
+
const hasNoAutoDoc = /\/\*\*[\s\*]*?@noautodoc[\s\*]*?\*\//.test(await content.string());
|
|
260
261
|
if (hasValidExportObject) {
|
|
261
262
|
mjsMain.push(
|
|
262
263
|
`export { ${noExt} } from '${
|
|
@@ -275,7 +276,7 @@ export class JSautoDOC {
|
|
|
275
276
|
});
|
|
276
277
|
if (!error && typedefString) {
|
|
277
278
|
mjsTypes.push(typedefString.module);
|
|
278
|
-
if (
|
|
279
|
+
if (!hasNoAutoDoc) {
|
|
279
280
|
const nameVarID = noExt.toLowerCase();
|
|
280
281
|
tableOfContent.push(`[${noExt}](#${nameVarID})`);
|
|
281
282
|
apiDocuments.push(
|
|
@@ -285,19 +286,19 @@ export class JSautoDOC {
|
|
|
285
286
|
);
|
|
286
287
|
}
|
|
287
288
|
}
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
289
|
+
if (!hasNoAutoDoc && hasValidExportObject) {
|
|
290
|
+
readme.forEach((ref) => {
|
|
291
|
+
const {
|
|
292
|
+
// fullDescription,
|
|
293
|
+
// instanceOrStatic,
|
|
294
|
+
// namedVar,
|
|
295
|
+
// typeOfVar,
|
|
296
|
+
parsedFullDescription,
|
|
297
|
+
reference,
|
|
298
|
+
} = ref;
|
|
299
|
+
const { description, jsPreview } = parsedFullDescription;
|
|
300
|
+
currentDescription.push(`\n#### reference:${reference}\n${description}\n${jsPreview}`);
|
|
301
|
+
});
|
|
301
302
|
const nameVarID = noExt.toLowerCase();
|
|
302
303
|
tableOfContent.push(`[${noExt}](#${noExt.toLowerCase()})`);
|
|
303
304
|
apiDocuments.push(
|