Skip to content

Commit cf5e7bb

Browse files
committed
fixup!
1 parent a00a55a commit cf5e7bb

8 files changed

Lines changed: 11 additions & 13 deletions

File tree

packages/core/src/generators/json-all/schema.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
{
22
"$schema": "http://json-schema.org/draft-07/schema#",
3-
"$id": "https://doc-kit.nodejs.org/schemas/api-doc-all/1.0.0.json",
3+
"$id": "https://doc-kit.nodejs.org/schemas/api-doc-all/1.0.1.json",
44
"title": "Bundle",
5-
"description": "Every document of a documentation set, as emitted by the doc-kit `json-all` generator, in index order.",
5+
"description": "Every document of a documentation set, as emitted by the doc-kit `json-all` generator",
66
"type": "object",
77
"properties": {
88
"$schema": {
@@ -12,7 +12,7 @@
1212
"documents": {
1313
"type": "array",
1414
"items": {
15-
"$ref": "https://doc-kit.nodejs.org/schemas/api-doc/1.0.0.json"
15+
"$ref": "https://doc-kit.nodejs.org/schemas/api-doc/1.0.1.json"
1616
},
1717
"description": "The documents, in the order of the configured index, then by id."
1818
}

packages/core/src/generators/json-all/types.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import type { Document } from '../json/generated/schema';
22

33
/**
4-
* Every document of a documentation set, in index order.
4+
* Every document of a documentation set
55
*/
66
export interface Bundle {
77
/** The URL of the schema the bundle conforms to */

packages/core/src/generators/json-simple/generate.mjs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,6 @@ export async function generate(input) {
2121
);
2222

2323
if (config.output) {
24-
// Writes all the API docs stringified content into one file
25-
// Note: The full JSON generator in the future will create one JSON file per top-level API doc file
2624
await writeJSON(join(config.output, 'api-docs.json'), input, config.minify);
2725
}
2826

packages/core/src/generators/json/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ carries in `$schema`, and shipped with the package as
1212
npx @doc-kit/cli generate -t json -i "doc/api/*.md" -o out
1313
```
1414

15-
Files keep the input's directory layout: `doc/api/fs.md` becomes `out/fs.json`.
15+
Files keep the input's directory layout: `doc/api/some/fs.md` becomes `out/some/fs.json`.
1616

1717
## Configuring
1818

@@ -129,7 +129,7 @@ Every node also has:
129129
}
130130
```
131131

132-
- A signature's `parameters` are the ones the heading declares, in order,
132+
- A signature's `parameters` are the ones the heading declares,
133133
described by the typed list under it. `optional` is set for parameters
134134
bracketed in the heading or documented with a default; `rest` for
135135
`...args`. `properties` are the nested list items: the properties of an

packages/core/src/generators/json/constants.mjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
'use strict';
22

33
// See the `version` in schema.json. These values should be in sync.
4-
export const SCHEMA_VERSION = '1.0.0';
4+
export const SCHEMA_VERSION = '1.0.1';
55

66
// Where a schema version is published.
77
export const SCHEMA_URL =

packages/core/src/generators/json/generated/schema.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -159,7 +159,7 @@ export interface Entry {
159159
*/
160160
summary: string;
161161
/**
162-
* The fenced code blocks in the body, in order. They remain in the description too.
162+
* The fenced code blocks in the body. They remain in the description too.
163163
*/
164164
examples: Example[];
165165
}

packages/core/src/generators/json/schema.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"$schema": "http://json-schema.org/draft-07/schema#",
3-
"$id": "https://doc-kit.nodejs.org/schemas/api-doc/1.0.0.json",
3+
"$id": "https://doc-kit.nodejs.org/schemas/api-doc/1.0.1.json",
44
"title": "Document",
55
"description": "One API documentation source file, as emitted by the doc-kit `json` generator. The file is the root of a tree of nodes, one per heading, in document order.",
66
"allOf": [
@@ -326,7 +326,7 @@
326326
"examples": {
327327
"type": "array",
328328
"items": { "$ref": "#/definitions/Example" },
329-
"description": "The fenced code blocks in the body, in order. They remain in the description too."
329+
"description": "The fenced code blocks in the body. They remain in the description too."
330330
}
331331
},
332332
"required": [

packages/core/src/generators/json/utils/markdown.mjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ export const inlineToMarkdown = (nodes, mdx) =>
3737
: blocksToMarkdown([createTree('paragraph', nodes)], mdx);
3838

3939
/**
40-
* Collects the fenced code blocks of a body, in order.
40+
* Collects the fenced code blocks of a body
4141
*
4242
* @param {Array<import('mdast').RootContent>} nodes
4343
* @returns {Array<import('../types').Example>}

0 commit comments

Comments
 (0)