You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: DEVELOPER.md
+15Lines changed: 15 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -255,7 +255,22 @@ to some whitespace difference.
255
255
- Working directory: `$ProjectFileDir$`
256
256
*`clang-format` integrations are also available for many popular editors (`vim`, `emacs`,
257
257
`Sublime Text`, etc.).
258
+
259
+
## Generating the API documentation
258
260
261
+
The following gulp task will generate the API docs in the `dist/angular.io/partials/api/angular2`:
262
+
263
+
```shell
264
+
$(npm bin)/gulp docs/angular.io
265
+
```
266
+
267
+
You can serve the generated documentation to check how it would render on [angular.io](https://angular.io/):
268
+
- check out the [angular.io repo](https://github.com/angular/angular.io) locally,
269
+
- install dependencies as described in the [angular.io README](https://github.com/angular/angular.io/blob/master/README.md),
270
+
- copy the generated documentation from your local angular repo at `angular/dist/angular.io/partials/api/angular2` to your local angular.io repo at `angular.io/public/docs/js/latest/api`,
271
+
- run `harp compile` at the root of the angular.io repo to check the generated documentation for errors,
272
+
- run `harp server` and open a browser at `http://localhost:9000/docs/js/latest/api/` to check the rendered documentation.
0 commit comments