GithubHelp home page GithubHelp logo

hugo / ember-guides Goto Github PK

View Code? Open in Web Editor NEW

This project forked from thoughtbot/ember-guides

0.0 1.0 0.0 24.5 MB

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

License: Other

Ruby 59.44% HTML 9.87% JavaScript 2.93% CSS 27.76%

ember-guides's Introduction

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 considered static and immutable.

To publish a new Guide version, 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
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 environment (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 swiftype`

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

If you get an error like this when doing a gem update (or bundle install):

Unable to download data from https://rubygems.org/ - SSL_connect returned=1 errno=0 state=SSLv3 read server certificate B: certificate verify failed (https://rubygems.org/latest_specs.4.8.gz)

  1. Follow the instructions on this post to install the trust cert.
  2. Create an environment variable with a name of SSL_CERT_FILE (System > Advanced system settings > Environment variables > then "New" under system variables) and set the value to the full path of the cert you installed in step 1. The value should look something like C:\Ruby21\lib\ruby\2.1.0\rubygems\ssl_certs\AddTrustExternalCARoot-2048.pem.
  3. Close your shell and re-open, so it loads the new environment variable.
  4. Try again
  5. If the error still happens, try running gem update --system

After these workarounds, you should finally be able to run bundle exec middleman. You may be prompted by Windows Firewall; Click "Allow access" and you'll be in business!

ember-guides's People

Contributors

aaronbhansen avatar aflores avatar aliaksandrb avatar bsclifton avatar cew821 avatar danmcclain avatar dhaulagiri avatar dpdawson avatar erbridge avatar heroiceric avatar jbrown avatar karelvuong avatar karelvuongold avatar locks avatar martypenner avatar michaelrkn avatar mixonic avatar nickbabcock avatar nicolechung avatar roryokane avatar rwjblue avatar serabe avatar stevekinney avatar swashcap avatar tilde-engineering avatar tomdale avatar trek avatar tundal45 avatar viaro-vinicio avatar wagenet avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.