@t8/docsgen 0.3.14 → 0.3.15
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/dist/bin.js +1 -1
- package/package.json +36 -36
- package/src/bin/parsing/getParsedContent.ts +1 -1
package/dist/bin.js
CHANGED
|
@@ -569,7 +569,7 @@ var md = new Markdown({
|
|
|
569
569
|
html: true
|
|
570
570
|
});
|
|
571
571
|
async function getParsedContent(ctx) {
|
|
572
|
-
let { singlePage, firstLineDescription, hasCoverIntro, linkMap } = ctx;
|
|
572
|
+
let { singlePage, firstLineDescription, hasCoverIntro = true, linkMap } = ctx;
|
|
573
573
|
let rawContent = await fetchContent(
|
|
574
574
|
getLocation(ctx, "README.md", ctx.source)
|
|
575
575
|
);
|
package/package.json
CHANGED
|
@@ -1,36 +1,36 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "@t8/docsgen",
|
|
3
|
-
"version": "0.3.
|
|
4
|
-
"description": "",
|
|
5
|
-
"main": "dist/bin.js",
|
|
6
|
-
"type": "module",
|
|
7
|
-
"bin": {
|
|
8
|
-
"docsgen": "dist/bin.js"
|
|
9
|
-
},
|
|
10
|
-
"scripts": {
|
|
11
|
-
"build": "npx npm-run-all clean build-bin build-css",
|
|
12
|
-
"build-bin": "npx esbuild ./src/bin/run.ts --bundle --outfile=dist/bin.js --platform=node --external:jsdom --external:markdown-it --format=esm",
|
|
13
|
-
"build-css": "node -e \"require('node:fs').cpSync('src/css', 'dist/css', { force: true, recursive: true });\"",
|
|
14
|
-
"clean": "node -e \"require('node:fs').rmSync('dist', { force: true, recursive: true });\"",
|
|
15
|
-
"patch": "node src/scripts/patch.ts",
|
|
16
|
-
"preversion": "npx npm-run-all shape build",
|
|
17
|
-
"schema": "npx ts-json-schema-generator -p src/types/Config.ts -t Config -o schema.json --minify",
|
|
18
|
-
"shape": "npx codeshape --check"
|
|
19
|
-
},
|
|
20
|
-
"repository": {
|
|
21
|
-
"type": "git",
|
|
22
|
-
"url": "git+https://github.com/t8js/docsgen.git"
|
|
23
|
-
},
|
|
24
|
-
"license": "MIT",
|
|
25
|
-
"author": "axtk",
|
|
26
|
-
"devDependencies": {
|
|
27
|
-
"@types/jsdom": "^27.0.0",
|
|
28
|
-
"@types/markdown-it": "^14.1.2",
|
|
29
|
-
"@types/node": "^25.0.2"
|
|
30
|
-
},
|
|
31
|
-
"dependencies": {
|
|
32
|
-
"args-json": "^1.2.9",
|
|
33
|
-
"jsdom": "^27.3.0",
|
|
34
|
-
"markdown-it": "^14.1.0"
|
|
35
|
-
}
|
|
36
|
-
}
|
|
1
|
+
{
|
|
2
|
+
"name": "@t8/docsgen",
|
|
3
|
+
"version": "0.3.15",
|
|
4
|
+
"description": "",
|
|
5
|
+
"main": "dist/bin.js",
|
|
6
|
+
"type": "module",
|
|
7
|
+
"bin": {
|
|
8
|
+
"docsgen": "dist/bin.js"
|
|
9
|
+
},
|
|
10
|
+
"scripts": {
|
|
11
|
+
"build": "npx npm-run-all clean build-bin build-css",
|
|
12
|
+
"build-bin": "npx esbuild ./src/bin/run.ts --bundle --outfile=dist/bin.js --platform=node --external:jsdom --external:markdown-it --format=esm",
|
|
13
|
+
"build-css": "node -e \"require('node:fs').cpSync('src/css', 'dist/css', { force: true, recursive: true });\"",
|
|
14
|
+
"clean": "node -e \"require('node:fs').rmSync('dist', { force: true, recursive: true });\"",
|
|
15
|
+
"patch": "node src/scripts/patch.ts",
|
|
16
|
+
"preversion": "npx npm-run-all shape build",
|
|
17
|
+
"schema": "npx ts-json-schema-generator -p src/types/Config.ts -t Config -o schema.json --minify",
|
|
18
|
+
"shape": "npx codeshape --check"
|
|
19
|
+
},
|
|
20
|
+
"repository": {
|
|
21
|
+
"type": "git",
|
|
22
|
+
"url": "git+https://github.com/t8js/docsgen.git"
|
|
23
|
+
},
|
|
24
|
+
"license": "MIT",
|
|
25
|
+
"author": "axtk",
|
|
26
|
+
"devDependencies": {
|
|
27
|
+
"@types/jsdom": "^27.0.0",
|
|
28
|
+
"@types/markdown-it": "^14.1.2",
|
|
29
|
+
"@types/node": "^25.0.2"
|
|
30
|
+
},
|
|
31
|
+
"dependencies": {
|
|
32
|
+
"args-json": "^1.2.9",
|
|
33
|
+
"jsdom": "^27.3.0",
|
|
34
|
+
"markdown-it": "^14.1.0"
|
|
35
|
+
}
|
|
36
|
+
}
|
|
@@ -15,7 +15,7 @@ const md = new Markdown({
|
|
|
15
15
|
});
|
|
16
16
|
|
|
17
17
|
export async function getParsedContent(ctx: Context) {
|
|
18
|
-
let { singlePage, firstLineDescription, hasCoverIntro, linkMap } = ctx;
|
|
18
|
+
let { singlePage, firstLineDescription, hasCoverIntro = true, linkMap } = ctx;
|
|
19
19
|
let rawContent = await fetchContent(
|
|
20
20
|
getLocation(ctx, "README.md", ctx.source),
|
|
21
21
|
);
|