More doc fixes. (#9848)

This commit is contained in:
Ian Hickson
2017-05-06 15:08:14 -07:00
committed by GitHub
parent d1e895224e
commit 127545a353
25 changed files with 80 additions and 61 deletions

View File

@@ -1,11 +1,14 @@
#!/bin/bash
set -e
# If you want to run this script locally, make sure you run it from
# the root of the flutter repository.
# Install dartdoc.
pub global activate dartdoc 0.11.0
# This script generates a unified doc set, and creates
# a custom index.html, placing everything into dev/docs/doc
# a custom index.html, placing everything into dev/docs/doc.
(cd dev/tools; pub get)
FLUTTER_ROOT=$PWD dart dev/tools/dartdoc.dart
FLUTTER_ROOT=$PWD dart dev/tools/javadoc.dart
@@ -13,8 +16,7 @@ FLUTTER_ROOT=$PWD dart dev/tools/javadoc.dart
# Ensure google webmaster tools can verify our site.
cp dev/docs/google2ed1af765c529f57.html dev/docs/doc
# Upload new API docs when on Travis and branch is master
# Upload new API docs when on Travis and branch is master.
if [ "$TRAVIS_PULL_REQUEST" = "false" ] && [ "$TRAVIS_BRANCH" = "master" ]; then
cd dev/docs
firebase deploy --project docs-flutter-io