Explore projects
TypeScriptbeginnercli
API Documentation Generator
CLI tool that parses JSDoc/TSDoc comments from TypeScript code and generates HTML or Markdown documentation.
5 steps
Project steps
- 01
CLI commander
Command: gen-docs --input src/ --output docs/ --format html|md
- 02
TypeDoc parsing
Programmatically use TypeDoc to extract symbols and their comments.
- 03
HTML Template
Handlebars template with navigable sidebar, search, and syntax highlighting.
- 04
Markdown output
Alternatively, generate .md files per module for documentation on GitHub.
- 05
Watch mode
Flag --watch re-generates documentation on source file changes.
Recommended resources
Ready to build this?
Fork the repo on GitHub and start building. A mentor will review your code when you open a PR.
5 steps
Tech stack
TypeScriptTypeDoccommandermarkedhighlight.js