teddyzeenny / guides

The source for http://guides.emberjs.com

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Ember Guides Source

The source for the Ember.js guides.

Contributing

To get started:

git clone git://github.com/emberjs/guides.git
cd guides
bundle
bundle exec middleman

Then visit http://localhost:4567/

Publishing

When a new version of Ember.js is released we use this repo to generate a guides snapshot. This represents the state of the Guides at the moment of Ember.js release. This allows us to continually update the guides for current best practices in the Ember.js ecosystem while still providing stable documentation for users on early versions of the framework.

No attempt is made to update content, layout, or styles for older versions of the Guides. They are considrered static and immutable.

To publish a new Guide versions, you'll also need a copy of the Guides site repo: https://github.com/emberjs/guides.emberjs.com

First, tag a copy of the repo:

git tag <revision number>
git push --tags

Next, build a new artifact and move it to the guides site repo, committing it to Github

middleman build
middleman switftype --only-generate
mv ./build <path to guides site repo>/artifacts/<revision number>
cd <path to guides site repo>
git add --all
gc -m "Adding artifact for Ember.js revision <revision number>"
git push

Finally, publish this to Divshot's staging environemnt (our site host)

cd <path to guides site repo>
npm stage # runs `divshot push staging`

Visit the site to ensure that everything looks good. Assuming there are no issues, you're ready to publish the site content and search content:

cd <path to guides site repo>
npm publish # runs `divshot promote staging production` && `npm switftype`

Requirements

If the bundle command fails to run, you may need to upgrade your Ruby version. The Ember.js website build requires 1.9.3 or newer (2.0.0 recommended). You can use RVM to install it:

curl -L https://get.rvm.io | bash -s stable
rvm install 2.0.0
rvm use 2.0.0

Troubleshooting tips for Windows devs

For Windows developers using RubyInstaller, you'll need to download the DevKit and install it using instructions: https://github.com/oneclick/rubyinstaller/wiki/Development-Kit

After you have a proper install, you can then run:

gem install bundler wdm tzinfo-data
gem update listen middleman

Once Middleman comes up, you'll be prompted by Windows Firewall. Click "Allow access" and you'll be in business!

About

The source for http://guides.emberjs.com

License:Other


Languages

Language:CSS 59.5%Language:Ruby 29.9%Language:HTML 7.2%Language:JavaScript 3.4%