@textmode/docs 0.1.0 → 0.2.0
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/README.md +0 -1
- package/index.d.ts +0 -1
- package/package.json +2 -2
- package/src/internal/config.js +1 -4
- package/src/internal/operations.js +0 -4
package/README.md
CHANGED
package/index.d.ts
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@textmode/docs",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.2.0",
|
|
4
4
|
"description": "Shared documentation generation and validation for the textmode.js ecosystem",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"textmode",
|
|
@@ -27,7 +27,7 @@
|
|
|
27
27
|
}
|
|
28
28
|
},
|
|
29
29
|
"bin": {
|
|
30
|
-
"textmode-docs": "
|
|
30
|
+
"textmode-docs": "src/cli/textmode-docs.mjs"
|
|
31
31
|
},
|
|
32
32
|
"files": [
|
|
33
33
|
"src",
|
package/src/internal/config.js
CHANGED
|
@@ -17,7 +17,7 @@ const TOP_LEVEL_KEYS = new Set([
|
|
|
17
17
|
'typedoc',
|
|
18
18
|
]);
|
|
19
19
|
const CHECK_KEYS = new Set(['apiLinks', 'docstrings', 'examples']);
|
|
20
|
-
const EXAMPLE_KEYS = new Set(['
|
|
20
|
+
const EXAMPLE_KEYS = new Set(['forbidGallerySourceBase']);
|
|
21
21
|
const LINK_ENTRY_POINT_KEYS = new Set(['path', 'tsconfig', 'namespaceExportsOnly']);
|
|
22
22
|
const REFLECTION_KINDS = new Set([
|
|
23
23
|
'class',
|
|
@@ -286,7 +286,6 @@ export async function resolveDocsConfig({ cwd = process.cwd(), configPath: reque
|
|
|
286
286
|
config.examples === false
|
|
287
287
|
? false
|
|
288
288
|
: {
|
|
289
|
-
checkSketches: config.examples?.checkSketches ?? true,
|
|
290
289
|
forbidGallerySourceBase: config.examples?.forbidGallerySourceBase ?? true,
|
|
291
290
|
};
|
|
292
291
|
const outputDir = out ?? config.outputDir ?? `api/${packageJson.name}`;
|
|
@@ -335,8 +334,6 @@ export async function resolveDocsConfig({ cwd = process.cwd(), configPath: reque
|
|
|
335
334
|
config.examples === false
|
|
336
335
|
? 'textmode.docs.config.mjs'
|
|
337
336
|
: {
|
|
338
|
-
checkSketches:
|
|
339
|
-
config.examples?.checkSketches !== undefined ? 'textmode.docs.config.mjs' : 'default',
|
|
340
337
|
forbidGallerySourceBase:
|
|
341
338
|
config.examples?.forbidGallerySourceBase !== undefined
|
|
342
339
|
? 'textmode.docs.config.mjs'
|
|
@@ -141,10 +141,6 @@ export function examplesCheck(config) {
|
|
|
141
141
|
|
|
142
142
|
const files = getManifestExamples(manifest).map((example) => example.sourceFile);
|
|
143
143
|
console.log(`Found ${files.length} manifest examples from examples/manifest.json.`);
|
|
144
|
-
if (!config.examples.checkSketches) {
|
|
145
|
-
console.log('Sketch convention checks are disabled for this package.');
|
|
146
|
-
return true;
|
|
147
|
-
}
|
|
148
144
|
|
|
149
145
|
let passedCount = 0;
|
|
150
146
|
let failedCount = 0;
|