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

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: 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/apidoc/.gitignore ('k') | utils/apidoc/apidoc.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: utils/apidoc/apidoc
diff --git a/utils/apidoc/apidoc b/utils/apidoc/apidoc
index a2a6b107a107fc4053ca36df18a44afa85f72bab..c2730b0106049cbfdba5191b01c207580bcd6c23 100755
--- a/utils/apidoc/apidoc
+++ b/utils/apidoc/apidoc
@@ -16,14 +16,14 @@
# 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
compileToJs() {
- if [ "$1.dart" -nt "static/$1.js" ]
+ if [ "../dartdoc/$1.dart" -nt "../dartdoc/static/$1.js" ]
then
../../frog/minfrog --libdir=../../frog/lib \
- --out=static/$1.js --compile-only $1.dart
+ --out=../dartdoc/static/$1.js --compile-only ../dartdoc/$1.dart
echo "Compiled $1.dart."
fi
}
@@ -40,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') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698