This is the source for the Ember.js Guides.
Looking for repositories for other parts of the site? Check out website, ember-api-docs, super-rentals tutorial, statusboard, and styleguide
Welcome and thanks for your help! Please see CONTRIBUTING.md for detailed instructions on how to format your work and submit a Pull Request.
The Guides content takes the form of Markdown files (just like most READMEs).
The Guides themselves are in the source
folder. The left nav bar is produced from
data/pages.yml
. lib
contains Middleman plugins, and spec
contains tests
for those plugins.
This is the recommended method for new contributors. Although the Guides are built with Ruby, most work is done in Markdown files. You don't need to know Ruby or install its dependencies to help out. Simply follow the Docker container instructions below to install and run locally.
First, install Docker and Compose and leave it running.
Next, the commands below will install all necessary dependencies for the Guides app and start a server. This will take a little while to run, possibly a few minutes. The dependencies will be installed inside a Docker container, and do not affect your normal developer environment.
git clone git://github.com/emberjs/guides.git
cd guides
docker-compose build
docker-compose up
You can view the site locally at http://localhost:4567
The Docker method described above is recommended over installing dependencies separately. However, if necessary, these are the manual steps. The Guides are built with Middleman, which runs on Ruby 1.9.3 or newer.
Mac users should install Ruby using rbenv to avoid changing their OS dependencies:
brew install rbenv
Follow the rbenv installation instructions to install the Ruby version specified here, then go through the init steps, set a global version, and restart the terminal. If gem env home
shows rbenv in the path, your installation was successful. You should not have to sudo install any gems.
Once you have installed Ruby, you will need bundler and Middleman:
gem install bundler middleman
During build, Middleman will require Aspell to look for misspellings. On Macs, it can be installed via Homebrew:
brew install aspell --with-lang-en
On Windows, you can download an installer, but unfortunately it is unmaintained. On Linux, you can install with your distribution's package manager. On all platforms, you can also build the most recent version from source.
Some Mac users may also need to install openSSL, which will be indicated in an error during the bundle command. See Troubleshooting.md.
To get started:
git clone git://github.com/emberjs/guides.git
cd guides
bundle
bundle exec middleman
Then visit http://localhost:4567/.
If you run into problems, check Troubleshooting.md.
If you have a false hit during spellchecking, you can add the word to /data/spelling-exceptions.txt
.
Words are line separated and case insensitive.
See MAINTAINERS.md.