Commit cd8f65df authored by Devon Carew's avatar Devon Carew

add an infra/docs.sh script (#3674)

parent 30d8dc13
#!/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
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment