| | 🔧 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/document
Using Yarn:
yarn add -D -E @playform/document
Using PNPM:
pnpm add -D -E @playform/document
Using 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 Document
Documentation is written to ./Documentation by default.
Use --Folder to write to a different directory:
Document 'Source/**/*.ts' --Folder docs
package.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.