| 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
|
|
|