Skip to content
This repository was archived by the owner on Dec 4, 2017. It is now read-only.

Commit 9443a0d

Browse files
committed
chore(dart/api): enable rudimentary API doc generation for Dart
This is a first step of many that will incrementally introduce proper API docs for Dart.
1 parent 527fe50 commit 9443a0d

File tree

2 files changed

+15
-15
lines changed

2 files changed

+15
-15
lines changed

gulpfile.js

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -491,7 +491,7 @@ gulp.task('build-docs', ['build-devguide-docs', 'build-api-docs', 'build-plunker
491491
// Stop zipping examples Feb 28, 2016
492492
//gulp.task('build-docs', ['build-devguide-docs', 'build-api-docs', 'build-plunkers', '_zip-examples']);
493493

494-
gulp.task('build-api-docs', ['build-js-api-docs', 'build-ts-api-docs', 'build-dart-cheatsheet']);
494+
gulp.task('build-api-docs', ['build-js-api-docs', 'build-ts-api-docs', 'build-dart-api-docs']);
495495

496496
gulp.task('build-devguide-docs', ['_shred-devguide-examples', '_shred-devguide-shared-jade'], function() {
497497
return buildShredMaps(true);
@@ -505,12 +505,12 @@ gulp.task('build-js-api-docs', ['_shred-api-examples'], function() {
505505
return buildApiDocs('js');
506506
});
507507

508-
gulp.task('build-plunkers', ['_copy-example-boilerplate'], function() {
509-
return plunkerBuilder.buildPlunkers(EXAMPLES_PATH, LIVE_EXAMPLES_PATH, { errFn: gutil.log });
508+
gulp.task('build-dart-api-docs', ['_shred-api-examples'], function() {
509+
return buildApiDocs('dart');
510510
});
511511

512-
gulp.task('build-dart-cheatsheet', [], function() {
513-
return buildApiDocs('dart');
512+
gulp.task('build-plunkers', ['_copy-example-boilerplate'], function() {
513+
return plunkerBuilder.buildPlunkers(EXAMPLES_PATH, LIVE_EXAMPLES_PATH, { errFn: gutil.log });
514514
});
515515

516516
gulp.task('git-changed-examples', ['_shred-devguide-examples'], function(){
@@ -961,7 +961,7 @@ function apiSourceWatch(postBuildAction) {
961961
gutil.log('Event type: ' + event.event); // added, changed, or deleted
962962
gutil.log('Event path: ' + event.path); // The path of the modified file
963963

964-
return Q.all([buildApiDocs('ts'), buildApiDocs('js')]).then(postBuildAction);
964+
return Q.all([buildApiDocs('ts'), buildApiDocs('js'), buildApiDocs('dart')]).then(postBuildAction);
965965
});
966966
}
967967

@@ -1018,7 +1018,7 @@ function devGuideSharedJadeWatch(shredOptions, postShredAction) {
10181018
// Generate the API docs for the specified language, if not specified then it defaults to ts
10191019
function buildApiDocs(targetLanguage) {
10201020
var ALLOWED_LANGUAGES = ['ts', 'js', 'dart'];
1021-
var GENERATE_API_LANGUAGES = ['ts', 'js'];
1021+
var GENERATE_API_LANGUAGES = ['ts', 'js', 'dart'];
10221022
checkAngularProjectPath();
10231023
try {
10241024
// Build a specialized package to generate different versions of the API docs
Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
1-
.l-main-section
2-
h2 Beta
1+
:marked
2+
> **Known issues:** Although this generated API reference displays Dart APIs
3+
and includes some Dart examples, the text reflects the TypeScript APIs. The
4+
angular.io issue tracker contains [all known issues][api-issues]; if you
5+
notice others, please [report them][ngio-issues]. Thanks!
36

4-
p.
5-
The proposed Angular 2 API does not yet have Dart-specific documentation.
6-
However, because the Dart and JavaScript APIs are generated from the same source,
7-
you might find the JavaScript API docs helpful:
7+
[ngio-issues]: https://github.com/angular/angular.io/issues
8+
[api-issues]: https://github.com/angular/angular.io/labels/api
89

9-
p.text-center
10-
<b><a href="/docs/js/latest/api/">Angular 2 API Preview (JavaScript)</a></b>
10+
api-list(src="api-list.json")

0 commit comments

Comments
 (0)