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

Unified Diff: utils/dartdoc/dartdoc

Issue 9256002: Add a mode to dartdoc to generate the navigation on the client. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Respond to review. Created 8 years, 11 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
« no previous file with comments | « utils/dartdoc/client-static.dart ('k') | utils/dartdoc/dartdoc.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: utils/dartdoc/dartdoc
diff --git a/utils/dartdoc/dartdoc b/utils/dartdoc/dartdoc
index 4764f1fe05976a07e2d392ae0b131005eafcc655..15025bf9920df7bcd3d7c82bca77a872224425d7 100755
--- a/utils/dartdoc/dartdoc
+++ b/utils/dartdoc/dartdoc
@@ -24,14 +24,18 @@ fi
# Run from dartdoc directory to get correct relative paths.
pushd `dirname "$0"` >>/dev/null
-# Generate the client-side .js file from interact.dart if we haven't already or
-# if it's out of date.
-if [ "interact.dart" -nt "static/interact.js" ]
- then
- ../../frog/minfrog --libdir=../../frog/lib \
- --out=static/interact.js --compile-only interact.dart
- echo "Compiled interact.dart."
-fi
+compileToJs() {
+ if [ "$1.dart" -nt "static/$1.js" ]
+ then
+ ../../frog/minfrog --libdir=../../frog/lib \
+ --out=static/$1.js --compile-only $1.dart
+ echo "Compiled $1.dart."
+ fi
+}
+
+# Generate the client-side .js files if needed.
+compileToJs "client-static"
+compileToJs "client-live-nav"
# Clean the output directory.
if [ -d "docs" ]; then
« no previous file with comments | « utils/dartdoc/client-static.dart ('k') | utils/dartdoc/dartdoc.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698