Skip to content

Commit

Permalink
doc: compass install -r #229
Browse files Browse the repository at this point in the history
  • Loading branch information
glebm committed Dec 17, 2014
1 parent 409ad55 commit 1965158
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 10 deletions.
24 changes: 14 additions & 10 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -96,21 +96,25 @@ bootstrap-sass is no longer compatible with Rails 3. The latest version of boots

### b. Compass without Rails

Install the gem
```sh
gem install bootstrap-sass
Install the gem:

```console
$ gem install bootstrap-sass
```

If you have an existing Compass project:

```ruby
# config.rb:
require 'bootstrap-sass'
```
1. Require `bootstrap-sass` in `config.rb`:

```console
$ bundle exec compass install bootstrap
```
```ruby
require 'bootstrap-sass'
```

2. Install Bootstrap with:

```console
$ bundle exec compass install bootstrap -r bootstrap-sass
```

If you are creating a new Compass project, you can generate it with bootstrap-sass support:

Expand Down
3 changes: 3 additions & 0 deletions templates/project/styles.sass
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
// Import Bootstrap Compass integration
@import "bootstrap-compass"
// Import custom Bootstrap variables
@import "bootstrap-variables"
// Import Bootstrap for Sass
@import "bootstrap"

0 comments on commit 1965158

Please sign in to comment.