docs.sh 615 Bytes
Newer Older
1
#!/bin/bash
2
set -e
3 4

# Install dartdoc.
Adam Barth's avatar
Adam Barth committed
5
pub global activate dartdoc 0.9.11
Seth Ladd's avatar
Seth Ladd committed
6 7 8

# This script generates a unified doc set, and creates
# a custom index.html, placing everything into dev/docs/doc
9
(cd dev/tools; pub get)
10
FLUTTER_ROOT=$PWD dart dev/tools/dartdoc.dart
11
FLUTTER_ROOT=$PWD dart dev/tools/javadoc.dart
12

Seth Ladd's avatar
Seth Ladd committed
13 14
# Ensure google webmaster tools can verify our site.
cp dev/docs/google2ed1af765c529f57.html dev/docs/doc
15

16 17
# Upload new API docs when on Travis and branch is master

18 19 20
if [ "$TRAVIS_PULL_REQUEST" = "false" ] && [ "$TRAVIS_BRANCH" = "master" ]; then
  cd dev/docs
  firebase deploy --project docs-flutter-io
21
fi