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

Unified Diff: utils/apidoc/apidoc

Issue 9225039: Integrate MDN content into API documentation. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Remove temp code. 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
Index: utils/apidoc/apidoc
diff --git a/utils/apidoc/apidoc b/utils/apidoc/apidoc
index cf877f50f21dbae2489a31720f6568b989250535..c2730b0106049cbfdba5191b01c207580bcd6c23 100755
--- a/utils/apidoc/apidoc
+++ b/utils/apidoc/apidoc
@@ -16,17 +16,21 @@
# gross. Ideally, we'd write the whole thing in Dart an ditch the shell
# but right now we can't even copy binary files using Dart.
-# Run from dartdoc directory to get correct relative paths.
+# Run from apidoc 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=../dartdoc/static/interact.js --compile-only interact.dart
- echo "Compiled interact.dart."
-fi
+compileToJs() {
+ if [ "../dartdoc/$1.dart" -nt "../dartdoc/static/$1.js" ]
+ then
+ ../../frog/minfrog --libdir=../../frog/lib \
+ --out=../dartdoc/static/$1.js --compile-only ../dartdoc/$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
@@ -36,6 +40,8 @@ mkdir docs
# Copy the static files over.
cp ../dartdoc/static/* docs
+# Overlay any apidoc-specific ones.
+cp static/* docs
# Ditch the first arg so we can pass any extra arguments to dartdoc.
shift
« no previous file with comments | « utils/apidoc/.gitignore ('k') | utils/apidoc/apidoc.dart » ('j') | utils/apidoc/apidoc.dart » ('J')

Powered by Google App Engine
This is Rietveld 408576698