X Tutup
Skip to content

Commit 5e013c4

Browse files
committed
doc(DEVELOPER): describe how to generate & serve API docs
Closes angular#3968
1 parent 8dd6c46 commit 5e013c4

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

DEVELOPER.md

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -255,7 +255,22 @@ to some whitespace difference.
255255
- Working directory: `$ProjectFileDir$`
256256
* `clang-format` integrations are also available for many popular editors (`vim`, `emacs`,
257257
`Sublime Text`, etc.).
258+
259+
## Generating the API documentation
258260

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.
273+
259274
## Project Information
260275

261276
### Folder structure

0 commit comments

Comments
 (0)
X Tutup