Skip to content
This repository has been archived by the owner. It is now read-only.
HTML JavaScript Dart CSS Ruby Python Other
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Type Name Latest commit message Commit time
Failed to load latest commit information.
scripts regenerate book (& update build script pubspec.lock) Mar 12, 2014
AUTHORS fix ToC scrolls off screen on articles (close #258) Jan 11, 2014
Gemfile add sitemap generation Dec 11, 2014
Gemfile.lock add sitemap generation Dec 11, 2014

The OLD Dart Website (OBSOLETE)

The contents of the old website are now in 3 places:

This repo has the code for the former site. Built with Jekyll and hosted on App Engine.


All the working files.
App engine configuration files.
Omnigraffle files, mostly. We don't publish these on the site, but we need to keep them around in case we need to edit a diagram or create a similar diagram.
Documents, HTML files, images, etc. You work out of here normally.
Code that's featured in the site's pages, placed here so it can be tested automatically without being copied to the site.
Generated by Jekyll, to be deployed to server. This directory is transient; you can delete it.

Configuring your system

  • If you're using a Mac, make sure you have Xcode.
  • Ensure you have Ruby 1.9.3 or 2.0.
  • Ensure you have Python 2.7.
  • In a terminal, from the project root:
    1. Run sudo gem install fast-stemmer -v '1.0.2'
    2. Run sudo gem install bundler
    3. Run bundle install, which installs the gems listed in Gemfile (liquid, jekyll, etc.).
  • Get the Dart SDK, if you don't already have it, and make sure pub is in your path.
  • Download and install the Google App Engine SDK for Python
  • Ask an admin to invite you to modify the Dart project on the Google App Engine.

Tips for Mac

  • You might want the binary install of Python 2.7.3
  • Ensure App Engine is using Python 2.7. You will see "you're using 2.6" in the log if it is not.
    • You can go to Preferences and enter the direct path to the Python 2.7 binary. For example: /Library/Frameworks/Python.framework/Versions/2.7/bin/python2.7.

Tips for Windows

  • Install Python with the Windows installer or choco install python2.
  • Install Ruby with the RubyInstaller site or choco install ruby.
  • Install the Ruby DevKit from the RubyInstaller site or choco install ruby2.devkit.
  • Run gem install bundler.
  • Run bundle install from the root of your dartlang project.

GitHub setup

  • Create a GitHub login login if you don't already have one.
  • Ask an admin to invite you to the dart-lang project on GitHub.

Contributing via Chromium Code Review

On a Mac:

  • Make sure you have Xcode (contains git)
  • Install depot_tools: $ git clone
  • Add depot_tools to your PATH: $ export PATH="$PATH":pwd/depot_tools NOTE: You may want to add this to your .bashrc file or your shell's equivalent so that you don’t need to reset your $PATH manually each time you open a new shell.
  • Run git cl config. For the Rietveld server, specify


  • Open a terminal to the root of this project.
  • Run the server with make server, and leave it running while you edit files.
  • Your web browser opens to http://localhost:8081.
    • You may need to reload once.
  • Edit, create docs as normal.
  • To run tests, run ./

Note: If you see single-page breadcrumbs on pages such as http://localhost:8081/tools/pub/cmd/pub-build.html, make sure that you've installed the latest gem versions. (Run sudo bundle install and then bundle install.)

Windows development tips

You probably won't have make available on the command line by default.

  • To just get up and running, run jekyll serve from the src/site folder.
  • This starts up the Jekyll webserver and generates into build/static.
  • If Jekyll does not generate output, you need to type chcp 65001 at the command prompt to change the code page to UTF-8. (Jekyll fails silently if this is not done.)
  • To clean, simply delete the contents of build/static and restart jekyll.

Release testing

There is a sanity-test target that tests some very basic features of with some browser tests:

# launch the local copy of with `jekyll serve`, and test it:
make sanity-test

# test against the live site:
make sanity-test-live

# test against any staged copy of
bundle exec ruby src/tests/site/sanity.rb <URL>

Deploying the site

  • Run make deploy.
    • This builds the site, placing everything into build/, and then deploys the site. (Note: You can also run make build and then deploy manually using App Engine.)
    • This command uses the current branch for the App Engine version name. If you need to change the version name, create a new local branch that has the name you want—for example, prod-style-guide-update. Switch to that branch and, after making sure it has all the changes you need, run make deploy. (This matters because at least one external program relies on the App Engine version matching the text in, and the contents of /release.txt are generated using the name of the current branch.)
    • If you see the error /bin/sh: command not found, try launching GoogleAppEngineLauncher. If it hasn't yet set up links for its commands, it'll automatically do so, fixing the problem.
  • You will probably need to generate an App-specific password. Save this password into the App Engine Launcher during the first deployment.
You can’t perform that action at this time.