Skip to content

Commit 38649d3

Browse files
committed
tmp
Signed-off-by: flakey5 <[email protected]>
1 parent 9be11fd commit 38649d3

File tree

16 files changed

+1532
-9
lines changed

16 files changed

+1532
-9
lines changed

package-lock.json

Lines changed: 120 additions & 8 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,8 @@
4646
"hast-util-to-string": "^3.0.1",
4747
"hastscript": "^9.0.1",
4848
"html-minifier-terser": "^7.2.0",
49+
"json-schema-to-typescript": "^15.0.4",
50+
"jsonc-parser": "^3.3.1",
4951
"rehype-stringify": "^10.0.1",
5052
"remark-gfm": "^4.0.1",
5153
"remark-parse": "^11.0.0",

src/generators/index.mjs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ import legacyJsonAll from './legacy-json-all/index.mjs';
99
import addonVerify from './addon-verify/index.mjs';
1010
import apiLinks from './api-links/index.mjs';
1111
import oramaDb from './orama-db/index.mjs';
12+
import json from './json/index.mjs';
1213

1314
export default {
1415
'json-simple': jsonSimple,
@@ -20,4 +21,5 @@ export default {
2021
'addon-verify': addonVerify,
2122
'api-links': apiLinks,
2223
'orama-db': oramaDb,
24+
json: json,
2325
};
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
{
2+
"$schema": "./schema.jsonc",
3+
"modules": [
4+
{
5+
"type": "module",
6+
"source": "doc/api/buffer.md",
7+
"@name": "Buffer",
8+
"@module": "node:buffer",
9+
"classes": [],
10+
"methods": [],
11+
"properties": [],
12+
"globals": []
13+
}
14+
]
15+
}
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
{
2+
"$schema": "http://json-schema.org/draft-07/schema#",
3+
4+
"title": "Node.js API Documentation Schema (All)",
5+
"readOnly": true,
6+
7+
"properties": {
8+
"modules": {
9+
"type": "array",
10+
// TODO figure out how to reference the other file here
11+
// "items": { "$ref": "http://json-schema.org/draft-07/schema#" }
12+
"items": { "$ref": "../json/parsed-schema.json" },
13+
},
14+
},
15+
}

0 commit comments

Comments
 (0)