Creating documentation for Ionic app
So far, we have added things and features which are targeted at the user of the application. In this recipe, we will add the ability to generate documentation from source code using TSDocs, Gulp, and Ionic CLI Hooks. Documentation is a very important aspect of the developer experience. I personally believe that it should be part of Ionic by default.
This is how the documentation will look like:

Getting ready
You can run this inside the browser.
How to do it...
The following are the instructions to create the example app:
- Create a new
DocApp
using ablank
template and navigate inside the folder, as follows:
$ ionic start DocApp blank $ cd DocApp
- Install the following
npm
dev dependencies for usingtypedoc
:
$ npm install --save-dev gulp gulp-connect gulp-typedoc typedoc
- Create
gulpfile.js
in theroot
directory of the app and add the following content:
var gulp = require("gulp"); var connect = require("gulp-connect"); var typedoc = require("gulp-typedoc"); var config...