Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(19)

Unified Diff: third_party/pkg/angular/scripts/generate-documentation.sh

Issue 176943008: Update the Angular/DI tests to latest from github. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 6 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: third_party/pkg/angular/scripts/generate-documentation.sh
diff --git a/third_party/pkg/angular/scripts/generate-documentation.sh b/third_party/pkg/angular/scripts/generate-documentation.sh
index fbfb3153c77db786d743e6c4af0ea13485b19171..01c698d1eea990d1e3a3d5641a705422817cf012 100755
--- a/third_party/pkg/angular/scripts/generate-documentation.sh
+++ b/third_party/pkg/angular/scripts/generate-documentation.sh
@@ -1,8 +1,20 @@
#!/bin/bash
. $(dirname $0)/env.sh
-$DARTDOC \
+
+# Temporary during transition period from use of dartdoc to docgen.
+if [ -x "$DART_DOCGEN" ]; then
+ DOC_CMD="$DART_DOCGEN"
+ MODE_OPTION=
+elif [ -x "$DARTDOC" ]; then
+ DOC_CMD="$DARTDOC"
+ MODE_OPTION="--mode=static"
+fi
+
+echo "Generating documentation using $DOC_CMD"
+"$DOC_CMD" $MODE_OPTION \
--package-root=packages/ \
--out doc \
- --mode=static \
--exclude-lib=js,metadata,meta,mirrors,intl,number_symbols,number_symbol_data,intl_helpers,date_format_internal,date_symbols,angular.util \
- packages/angular/angular.dart lib/mock/module.dart \
+ packages/angular/angular.dart lib/mock/module.dart
+
+

Powered by Google App Engine
This is Rietveld 408576698