Make docs.sh resilient to not having dart in the path (#9981)

This commit is contained in:
Ian Hickson
2017-05-11 09:42:08 -07:00
committed by GitHub
parent bc32847fd4
commit 1e6c7eb97f
2 changed files with 27 additions and 10 deletions

View File

@@ -4,14 +4,17 @@ set -e
# If you want to run this script locally, make sure you run it from
# the root of the flutter repository.
# Make sure dart is installed
bin/flutter --version
# Install dartdoc.
pub global activate dartdoc 0.11.1
bin/cache/dart-sdk/bin/pub global activate dartdoc 0.11.1
# This script generates a unified doc set, and creates
# a custom index.html, placing everything into dev/docs/doc.
(cd dev/tools; pub get)
FLUTTER_ROOT=$PWD dart dev/tools/dartdoc.dart
FLUTTER_ROOT=$PWD dart dev/tools/javadoc.dart
(cd dev/tools; ../../bin/cache/dart-sdk/bin/pub get)
FLUTTER_ROOT=$PWD bin/cache/dart-sdk/bin/dart dev/tools/dartdoc.dart
FLUTTER_ROOT=$PWD bin/cache/dart-sdk/bin/dart dev/tools/javadoc.dart
# Ensure google webmaster tools can verify our site.
cp dev/docs/google2ed1af765c529f57.html dev/docs/doc