TypeDoc
Setting Up TypeDoc for Code Documentation
Install TypeDoc into your project with
npm
npm install typedoc --save-devCreate
README.mdto add custom documentation's index pageConfigure TypeDoc
Create
typedoc.jsonon the root of your projectCopy below configuration into the json file
The documentation will be generated and saved in the directory specified by the
outoption, which is./docsin this configuration.
{
"entryPoints": ["./src"],
"entryPointStrategy": "expand",
"out": "./docs",
"tsconfig": "./tsconfig.json",
"name": "Project's Name"
}Generate your documentation with this command
npx typedocAccess the documentation on the directory specified in the
typedoc.json
Last updated