Documentation generator for TypeScript projects
open sourceApache-2.0free
TypeDoc turns the comments in a TypeScript project's source code into an HTML documentation site or a JSON model of the project. It reads tsconfig.json, finds the entry points from package.json's exports or main fields, and follows re-exports to document members declared in other files; an application without one entry point can be documented file by file. In a monorepo it builds each package and merges them into one site. It runs on Node.js, is configured with command-line options or a config file, and can be extended with themes and plugins. It's the TypeScript counterpart of JSDoc.
Problems it solves
- generate API documentation from my TypeScript code's comments
- publish a docs site for my TypeScript library's exports
- document every package of a TypeScript monorepo in one site
- export a JSON model of my TypeScript project's API for other tools
Features
- HTML documentation from TypeScript comments
- JSON model output
- entry points from package.json exports or main
- follows re-exports
- per-file mode for applications
- monorepo packages merged into one site
- themes
- plugin API
- config file or command-line options
Alternatives
The same job
These do what TypeDoc does.
- JSDoc API documentation generator for JavaScript from comments in the code
- DocFX Static site generator for .NET API documentation
- Doxygen Code documentation. Automated. Free, open source, cross-platform.
- Dokka API documentation engine for Kotlin
- phpDocumentor API documentation generator for PHP
- mkdocstrings Automatic documentation from sources, for MkDocs