Skip to content

Commit

Permalink
add an infra/docs.sh script (flutter#3674)
Browse files Browse the repository at this point in the history
  • Loading branch information
devoncarew committed May 2, 2016
1 parent 30d8dc1 commit cd8f65d
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions infra/docs.sh
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit cd8f65d

Please sign in to comment.