mirror of
https://github.com/flutter/flutter
synced 2024-08-25 02:46:31 +00:00
add an infra/docs.sh script (#3674)
This commit is contained in:
parent
30d8dc1399
commit
cd8f65dfb3
14
infra/docs.sh
Executable file
14
infra/docs.sh
Executable file
|
@ -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
|
Loading…
Reference in a new issue