Skip to content

Commit

Permalink
updated git documentation and how to run multiple versions of foundation
Browse files Browse the repository at this point in the history
  • Loading branch information
Mark Hayes committed Mar 2, 2013
1 parent dddff3d commit c125d38
Showing 1 changed file with 35 additions and 8 deletions.
43 changes: 35 additions & 8 deletions docs/sass.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -86,15 +86,42 @@

<p>There are a few different ways to do this, but here's what we recommend:</p>
<ol style="margin-left: 20px;">
<li>Setup a Foundation project folder: <kbd>mkdir ~/awesomeapp</kbd></li>
<li>Create a Gemfile with this content: <br>
<kbd style="margin-left: 15px;">source :rubygems</kbd> <br>
<kbd style="margin-left: 15px;">gem "zurb-foundation", :git => "[email protected]:zurb/foundation.git"</kbd> <br>
<kbd style="margin-left: 15px;">gem "compass"</kbd>
<li>Setup a folder for your project (i.e. <kbd>mkdir ~/awesomeapp</kbd>)
<li>Create a file called <code>Gemfile</code> in the folder you just created with this content: <br>
<%= code_example '
source "https://rubygems.org"
gem "zurb-foundation", :git => "[email protected]:zurb/foundation.git"
gem "compass"
', :ruby %>
</li>
<li>Then run: <kbd>touch ~/awesomeapp/Gemfile</kbd></li>
<li>Change into your application directory: <kbd>cd ~/awesomeapp</kbd></li>
<li>Create a project using Bundler: <kbd>bundle exec compass create . -r zurb-foundation --using foundation</kbd></li>
<li>Change into your application directory (<kbd>cd ~/awesomeapp</kbd>) then create a new compass project using the following command:</li>
<%= code_example '
bundle exec compass create . -r zurb-foundation --using foundation
', :bash %>
<li>When you're working on your project, run: <kbd>bundle exec compass watch</kbd></li>
</ol>

<hr>

<a name="multiple-versions"></a>
<h3>Running multiple versions</h3>
<h5 class="subheader">If you're planning on running multiple, potentially incompatible versions of Foundation you can isolate them using Bundler as well.</h5>

<p>There are a few different ways to do this, but here's what we recommend:</p>
<ol style="margin-left: 20px;">
<li>Setup a folder for your project (i.e. <kbd>mkdir ~/awesomeapp</kbd>)
<li>Create a file called <code>Gemfile</code> in the folder you just created with this content: <br>
<%= code_example '
source "https://rubygems.org"
# Replace 4.0.3 with the version of Foundation you want to use
gem "zurb-foundation", "4.0.3"
gem "compass"
', :ruby %>
</li>
<li>Change into your application directory (<kbd>cd ~/awesomeapp</kbd>) then create a new compass project using the following command:</li>
<%= code_example '
bundle exec compass create . -r zurb-foundation --using foundation
', :bash %>
<li>When you're working on your project, run: <kbd>bundle exec compass watch</kbd></li>
</ol>

Expand Down

0 comments on commit c125d38

Please sign in to comment.