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

Side by Side 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « tools/create_sdk.py ('k') | utils/apidoc/apidoc.dart » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 #!/bin/bash
2
3 # This generates the reference documentation for the core libraries that come
4 # with dartdoc. It is built on top of dartdoc, which is a general-purpose
5 # library for generating docs from any Dart code. This library extends that to
6 # include additional information and styling specific to our corelib.
7 #
8 # Usage:
9 #
10 # $ ./apidoc
11 #
12 # Pretty simple. :)
13
14 # TODO(rnystrom): This script is more or less a copy of the one in dartdoc but
15 # tweaked to output stuff to here instead of inside dartdoc/docs. That's pretty
16 # gross. Ideally, we'd write the whole thing in Dart an ditch the shell
17 # but right now we can't even copy binary files using Dart.
18
19 # Run from apidoc directory to get correct relative paths.
20 pushd `dirname "$0"` >>/dev/null
21
22 compileToJs() {
23 if [ "../../lib/dartdoc/$1.dart" -nt "../../lib/dartdoc/static/$1.js" ]
24 then
25 ../../frog/minfrog --libdir=../../frog/lib \
26 --out=../../lib/dartdoc/static/$1.js --compile-only \
27 ../../lib/dartdoc/$1.dart
28 echo "Compiled $1.dart."
29 fi
30 }
31
32 # Generate the client-side .js files if needed.
33 compileToJs "client-static"
34 compileToJs "client-live-nav"
35
36 # Generate the user's docs.
37 dart apidoc.dart $@
38
39 popd >>/dev/null
OLDNEW
« 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