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

Unified Diff: utils/dartdoc/dartdoc

Issue 8758010: Create separate HTML pages for each type. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Get dartdoc working with latest frog. Created 9 years 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/README.txt ('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 ce945f0b2db2aa60b970928bc05be6bf5511750a..01208161b008a51990ae6391b27414bc5e97acda 100755
--- a/utils/dartdoc/dartdoc
+++ b/utils/dartdoc/dartdoc
@@ -1,12 +1,14 @@
#!/bin/bash
# To generate docs for a library, run this script with the path to an entrypoint
-# .dart file as the only argument, like:
+# .dart file, like:
#
# $ dartdoc foo.dart
+# Get the .dart lib file the user wants to generate docs for.
+entrypoint=$PWD/$1
+
# Run from dartdoc directory to get correct relative paths.
-startdir=$PWD
pushd `dirname "$0"` >>/dev/null
# Generate the client-side .js file from interact.dart if we haven't already or
@@ -18,7 +20,10 @@ if [ "interact.dart" -nt "static/interact.js" ]
echo "Compiled interact.dart."
fi
+# Ditch the first arg so we can pass any extra arguments to dartdoc.
+shift
+
# Generate the user's docs.
-../../frog/frogsh --libdir=../../frog/lib dartdoc.dart "$startdir/$1"
+../../frog/frogsh --libdir=../../frog/lib dartdoc.dart "$entrypoint" $@
popd >>/dev/null
« no previous file with comments | « utils/dartdoc/README.txt ('k') | utils/dartdoc/dartdoc.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698