Giter Club home page Giter Club logo

Comments (7)

jonchay avatar jonchay commented on May 2, 2024 5

Any updates on updating the documentation with a section for just plain ruby install? I'm using Jekyll as well and would like to compliment it with this gem. Thanks!

from bootstrap-rubygem.

cvrebert avatar cvrebert commented on May 2, 2024

@twbs/sass Thoughts?

from bootstrap-rubygem.

glebm avatar glebm commented on May 2, 2024

For the previous versions Compass was necessary because out of the box Sass lacks functions for referencing compiled files correctly, and we needed these for glyphicon font files.

Compass is no longer necessary, so let's add another section to Readme, which is a plain ruby install.

from bootstrap-rubygem.

syahmiibrahim avatar syahmiibrahim commented on May 2, 2024

Any update about the documentation? I'm also using Jekyll and when I want to try the latest beta version, I got an error
File to import not found or unreadable: bootstrap.

I'm using bootstrap-sass before and everything works like charm.

from bootstrap-rubygem.

glebm avatar glebm commented on May 2, 2024

Do you have a GitHub repo somewhere with a reproduction?

from bootstrap-rubygem.

syahmiibrahim avatar syahmiibrahim commented on May 2, 2024

@glebm currently no. I just start using Jekyll recently for my personal project.

I'm using Jekyll-assets together with gem 'bootstrap-sass';.

This is what my main.css.scss look like:

@import '_sass/variables';
@import '_sass/scaffolding';
@import 'bootstrap-sprockets';
@import 'bootstrap';
@import 'font-awesome-sprockets';
@import 'font-awesome';

Everything works when I run jekyll serve.

However, when I try to use the latest beta version,
I got this error when I try to run Jekyll Serve

 Incremental build: disabled. Enable with --incremental
      Generating...
   Error in _assets/css/main.scss:7 File to import not found or unreadable: bootstrap.
Load paths:
  /Users/MacBookPro/.rvm/gems/ruby-2.3.0/gems/font-awesome-sass-4.7.0/assets/stylesheets
  /Users/MacBookPro/.rvm/gems/ruby-2.3.0/gems/font-awesome-sass-4.7.0/assets/fonts

I commented out the @import 'bootstrap-sprockets.
It seems that Jekyll does not found the bootstrap path.
Any help?

from bootstrap-rubygem.

wanderlux avatar wanderlux commented on May 2, 2024

I was having the same problem and could make this gem work with Jekyll. I more or less followed the steps in the docs:

  • add bootstrap, jquery and sprockets-rails to the Gemfile
  • run bundle install

Importing Bootstrap styles step is a bit different:

  • create assets/main.scss importing _bootstrap.scss in Jekyll's root folder.
---
---
// Custom bootstrap variables must be set or imported *before* bootstrap.
@import "_bootstrap.scss";

and also:

  • import the gem's scss files to Jekyll's _sass directory. Find them running bundle show bootstrap, then copy the content from assets/stylesheets to said folder.

I think that was it. I do not know if it is the best way but it is working for now.

from bootstrap-rubygem.

Related Issues (20)

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.