| | 🔧 Maintain — | | 🗻 Format — |
Document 📃
This CLI tool brings TypeDoc documentation generation to your
TypeScript project.
typedoc 🎁
typedoc-plugin-merge-modules 🎁
typedoc-plugin-remove-references 🎁
typedoc-plugin-rename-defaults 🎁
Note
Documentis git-aware — it reads the current branch and remote to generate correct source links in the documentation.
There are two ways to add Document to your project. Let's try the most
convenient option first!
Using NPM:
npm install -D -E @playform/documentUsing Yarn:
yarn add -D -E @playform/documentUsing PNPM:
pnpm add -D -E @playform/documentUsing NPM:
npx @playform/document 'Source/**/*.ts'Using Yarn:
yarn dlx @playform/document 'Source/**/*.ts'Using PNPM:
pnpx @playform/document 'Source/**/*.ts'Add a Document script to your package.json:
package.json
{
"scripts": {
"Document": "Document 'Source/**/*.ts'"
}
}Then run it:
npm run DocumentDocumentation is written to ./Documentation by default.
Use --Folder to write to a different directory:
Document 'Source/**/*.ts' --Folder docspackage.json
{
"scripts": {
"Document": "Document 'Source/**/*.ts' --Folder docs"
}
}Pass additional glob patterns as extra arguments:
Document 'Source/**/*.ts' 'Test/**/*.ts'See CHANGELOG.md for a history of changes to this tool.