Please use the new dartdoc tool.
The front-end Dart documentation viewer.
The viewer uses JSON files generated by the docgen package (currently found in pkg/docgen/ in the Dart repository) to display documentation.
Place the JSON files generated from docgen in client/local. Then, depending on whether you're running in Dartium or another browser, follow the directions below:
From the Editor, right click file client/web/index.html and select "Run in
Dartium." OR, if you are developing without the editor, start a simple server
standing in the top level of this package (such as
python -m SimpleHttpServer) and direct Dartium to
While standing in the
client directory, type
pub build. This produces
client/build. As with Dartium, you
can run in the Editor by right clicking file
client/web/index.html and select
of this package (such as
python -m SimpleHttpServer) and direct any browser
Simply copy the entire
client/build directory to your deployment server to
serve your data.
Special Instructions for Deploying on App Engine, for Official Dart API site
A script streamlining these steps will be forthcoming.
client/lib/shared.dartso that the
true(You can use this setting with any site on App Engine, provided you resolve the URLs similarly to server/scripts/redirector.py in api.dartlang.org.
Ensure you have a file at lib/config/config.yaml, which contains the key for Google Analytics for your website. Main Dart API site's file can be found here: Link TBD.
pub buildwhile standing in the
If there is a docs folder inside
client/build, delete it (the JSON files are served separately out of Google Cloud Storage, so they should not be uploaded to App Engine).
Check out your App Engine site. In our case: api.dartlang.org
server/out/webin your api.dartlang.org checkout.
Download the Google App Engine SDK for Python and add it to your PATH.
appcfg.py update <folder containing app.yaml>.