# Documentation generators

Analyse the code and comments and ouput a documentation automatically

Doc generator for Typescript / angular

### Compodoc <https://compodoc.github.io/compodoc/>

* Advantages:
  * adapted to angular application
  * simple to have a first result : angular structuration + typescript annotations make a lot of job
  * Have diffent themes similar that mimick other documentation system
  * Angular-CLI friendly - Compodoc support out of the box Angular-CLI projects
  * powerful search engine
  * ...
* Limitation
  * Light support of jsdoc tags Support of **@param**, **@returns**, **@link** and **@example** tags but with typescript it could be enough

### Typedoc

## Typedoc vs Compodoc

* [Typedoc vs Compodoc on medium](https://medium.com/falafel-software/generating-documentation-for-angular-2-apps-and-nativescript-b8d2fa0bc9ae) This article explain the main difference between both tool one generic to typescript projects, the other specific to angular + typescript
* Issue discussing about that in the [angular starter project](https://github.com/AngularClass/angular-starter/issues/1370) Compodoc seems to be the clear winner with a nice viewer and an automatic documatation out of the box.

### Js doc

* [Documentation of jsDoc](http://usejsdoc.org/)
* [Typedoc vs jsDoc](https://blog.cloudflare.com/generating-documentation-for-typescript-projects/)
* **Typescript documentation example**

2 examples found [here](https://blog.cloudflare.com/generating-documentation-for-typescript-projects/) that compare jsdoc and type script documentation style. The type script lot of information that are tighly compled with the code, so no need to add too many manual documentation.

**js doc style documentation**

**typescript style documentation**
