Build API Documentation |
---|
This metawork article explains how I build the API documentation using TypeDoc. Here are some things to know about it.
typedoc.json
holds information about the build.typedoc.json
specifies my API documention is placed in the API folder.Below I show how to install and use the tool in a terminal window. Note that npx is a tool to execute a npm package binary. My current version of npx is 10.9.0.
npm install typedoc
npx typedoc -version
Below are the steps to create the API document.
cd C:/projects/mysterymaster.com/ts
npx typedoc
I don't need to provide additional information on the command-line because I have my typedoc.json
file in the same folder as my tsconfig.json
file. Below is the contents of my typedoc.json
file.
{ "name": "Mystery Master", "entryPoints": ["puzzle/**/*", "solver/**/*", "viewer/**/*"], "out": "C:/projects/mysterymaster.com/help/api", }