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