json-typescript-docs
TypeScript icon, indicating that this package has built-in type declarations

0.6.0 • Public • Published

json-typescript-docs

Takes a set of TypeScript projects and creates a JSON file designed to be the source of an API docs site. The output file is in JSON API format.

The exact format is described by a TypeScript interface.

TypeDoc is used under the hood. It's a better tool if you want a complete, out-of-the-box API docs solution.

Installation

npm install -g json-typescript-docs

Step 1: Generate a config file

See config schema.

{
  "manifest" : {
    "title": "My docs site",
    "intro": "Everything is awesome"
  },
  "projects": [
    {
      "src": "path/to/some/project/tsconfig.json"
    }
  ],
  "output": "out.json"
}

Note that the src can either be the path to the tsconfig.json or the root path of the TypeScript sources (not necessarily the project root folder).

Step 2: Run transform

jtd my-config.json

Versions

Current Tags

VersionDownloads (Last 7 Days)Tag
0.6.03latest

Version History

VersionDownloads (Last 7 Days)Published
0.6.03
0.5.01
0.4.01
0.3.41
0.3.31
0.3.20
0.3.10
0.3.00
0.2.10
0.2.00
0.1.22
0.1.10
0.1.00
0.0.20
0.0.10

Package Sidebar

Install

npm i json-typescript-docs

Weekly Downloads

9

Version

0.6.0

License

MIT

Last publish

Collaborators

  • asakusuma