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

Unified Diff: utils/dartdoc/dartdoc

Issue 8822001: Bunch of dartdoc changes. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Default to showing source. 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 | « no previous file | 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 b3b3397463ac8935d1a5e7eed48f2ecc7f05c4c9..9696da8ff87a20bb64062a736c6403aa9bc9f11c 100755
--- a/utils/dartdoc/dartdoc
+++ b/utils/dartdoc/dartdoc
@@ -4,9 +4,22 @@
# .dart file, like:
#
# $ dartdoc foo.dart
+#
+# You can also pass in a couple of "special" entrypoints for generating
+# docs for dart's built in libraries. The special entrypoints are:
+#
+# - "corelib": dart:core, dart:coreimpl
+# - "dom": dart:core, dart:coreimpl, dart:dom
+# - "html": dart:core, dart:coreimpl, dart:dom, dart:html
# Get the .dart lib file the user wants to generate docs for.
-entrypoint=$PWD/$1
+# Add the path to it so that we can find it, but only if it's a .dart file and
+# not one of the special fake entrypoints like "corelib".
+entrypoint=$1
+if [[ $1 == *.dart ]]
+then
+ entrypoint=$PWD/$1
+fi
# Run from dartdoc directory to get correct relative paths.
pushd `dirname "$0"` >>/dev/null
« no previous file with comments | « no previous file | utils/dartdoc/dartdoc.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698