An App Engine server that fronts a Google Cloud Storage repository of Dart API docs.
See LICENSE.
First, read how dartdoc structures links.
The api.dart.dev server expand some structure in the links from dartdoc.
/ ==> /stable
/stable ==> /<latest-stable-version>/index.html
/beta ==> /latest-beta-version>/index.html
/dev ==> /latest-dev-version>/index.html
/main ==> /<latest-bleeding-edge-version>/index.html
/stable/dart-async/Future-class.html ==> /<latest-stable-version>/dart-async/Future-class.html
(same for beta, dev, and main)
Install the Google Cloud SDK.
Run gcloud auth login
Run gcloud config set app/promote_by_default false
to avoid accidentally
deploying a test version.
Run gcloud config set project dartlang-api
Run gcloud app deploy -v name-of-new-version server/app.yaml
and test
Run gcloud app deploy -v name-of-new-version --promote server/app.yaml
to
make this version the default