DEPRECATED - OLD SITE for DART
The contents of the old dartlang.org website are now in 3 places:
This repo has the code for the former www.dartlang.org site. Built with Jekyll and hosted on App Engine.
sudo gem install fast-stemmer -v '1.0.2'
sudo gem install bundler
bundle install, which installs the gems listed in
Gemfile(liquid, jekyll, etc.).
pubis in your path.
choco install python2.
choco install ruby.
choco install ruby2.devkit.
gem install bundler.
bundle installfrom the root of your dartlang project.
On a Mac: * Make sure you have Xcode (contains git) * Install depottools: $ git clone https://chromium.googlesource.com/chromium/tools/depottools.git * Add depottools to your PATH: $ export PATH="$PATH":
pwd/depottools 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
https://chromiumcodereview.appspot.com. * If you haven't used http://chromiumcodereview.appspot.com/ before, you'll be asked to specify an app-specific password. Go ahead and create one. Your regular password won't work.
make server, and leave it running while you edit files.
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 installand then
You probably won't have make available on the command line by default.
jekyll servefrom the
chcp 65001at the command prompt to change the code page to UTF-8. (Jekyll fails silently if this is not done.)
There is a
sanity-testtarget that tests some very basic features of dartlang.org with some browser tests:
# launch the local copy of dartlang.org with `jekyll serve`, and test it: make sanity-test
test against the live dartlang.org site:
test against any staged copy of dartlang.org:
bundle exec ruby src/tests/site/sanity.rb
build/, and then deploys the site. (Note: You can also run
make buildand then deploy manually using App Engine.)
make deploy. (This matters because at least one external program relies on the App Engine version matching the text in www.dartlang.org/release.txt, and the contents of /release.txt are generated using the name of the current branch.)
/bin/sh: appcfg.py: 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.