The json-all generator bundles the documents of the json
generator into a single all.json file.
npx @doc-kit/cli generate -t json-all -i "doc/api/*.md" -o out --index doc/api/index.md
{ "$schema": "https://doc-kit.nodejs.org/schemas/api-doc-all/1.0.0.json", "documents": [] }
documents holds every document in the order of the configured index,
then the rest by id. The bundle's schema, shipped as
@doc-kit/core/generators/json-all/schema.json, refers to the json
generator's schema for the documents.
Attributes
output:
stringThe directory where
all.json will be written.minify?:
booleanWhether to minify the output. Inherited from
global.
Default: true.index:
ArrayThe
{ api } objects defining the document order. Inherited
from global.schemaURL?:
stringWhere the bundle's schema is published.
{schemaVersion} is filled in. Default:
'https://doc-kit.nodejs.org/schemas/api-doc-all/{schemaVersion}.json'.