flutter/infra/docs.sh
Seth Ladd 7e4a91f340 add a webmaster tools verification file (#3902)
* add a webmaster tools verification file

* also put the verification file at the root of our bucket

* add comment for when we can simplify this script
2016-05-13 12:27:06 -07:00

20 lines
509 B
Bash
Executable File

#!/bin/bash
set -ex
# Install dartdoc.
pub global activate dartdoc
# Generate flutter docs into dev/docs/doc/api/.
(cd dev/tools; pub get)
dart dev/tools/dartdoc.dart
cp dev/docs/google2ed1af765c529f57.html dev/docs/doc/api
# Upload the docs.
if [ "$1" = "--upload" ]; then
# TODO: delete this line when we publish our API docs into the
# root of the bucket
gsutil cp dev/docs/google2ed1af765c529f57.html gs://docs.flutter.io
gsutil -m rsync -d -r dev/docs/doc/api gs://docs.flutter.io/flutter
fi