From cd8f65dfb32459516270b3705a449aa69f0de17e Mon Sep 17 00:00:00 2001 From: Devon Carew Date: Mon, 2 May 2016 14:33:39 -0700 Subject: [PATCH] add an infra/docs.sh script (#3674) --- infra/docs.sh | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100755 infra/docs.sh diff --git a/infra/docs.sh b/infra/docs.sh new file mode 100755 index 0000000000..ee0a82eda4 --- /dev/null +++ b/infra/docs.sh @@ -0,0 +1,14 @@ +#!/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 + +# Upload the docs. +if [ "$1" = "--upload" ]; then + gsutil -m rsync -d -r dev/docs/doc/api gs://docs.flutter.io/flutter +fi