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

Unified Diff: utils/apidoc/apidoc

Issue 9722012: Get rid of bash for dartdoc and do the whole thing in dart. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Remove cute comment. Created 8 years, 9 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 | « tools/create_sdk.py ('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
deleted file mode 100755
index a613f11a6b2d71001f84504db3e96f39ea2e4cbc..0000000000000000000000000000000000000000
--- a/utils/apidoc/apidoc
+++ /dev/null
@@ -1,39 +0,0 @@
-#!/bin/bash
-
-# This generates the reference documentation for the core libraries that come
-# with dartdoc. It is built on top of dartdoc, which is a general-purpose
-# library for generating docs from any Dart code. This library extends that to
-# include additional information and styling specific to our corelib.
-#
-# Usage:
-#
-# $ ./apidoc
-#
-# Pretty simple. :)
-
-# TODO(rnystrom): This script is more or less a copy of the one in dartdoc but
-# tweaked to output stuff to here instead of inside dartdoc/docs. That's pretty
-# 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 apidoc directory to get correct relative paths.
-pushd `dirname "$0"` >>/dev/null
-
-compileToJs() {
- if [ "../../lib/dartdoc/$1.dart" -nt "../../lib/dartdoc/static/$1.js" ]
- then
- ../../frog/minfrog --libdir=../../frog/lib \
- --out=../../lib/dartdoc/static/$1.js --compile-only \
- ../../lib/dartdoc/$1.dart
- echo "Compiled $1.dart."
- fi
-}
-
-# Generate the client-side .js files if needed.
-compileToJs "client-static"
-compileToJs "client-live-nav"
-
-# Generate the user's docs.
-dart apidoc.dart $@
-
-popd >>/dev/null
« no previous file with comments | « tools/create_sdk.py ('k') | utils/apidoc/apidoc.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698