Honoka is a Bootstrap theme that can display Japanese beautifully. bootstrap-honoka-rails can easily install Honoka, Umi , Nico and Rin on Rails.
Add this line to your application's Gemfile:
gem 'bootstrap-honoka-rails' , '~>4.4.1' # or '~> 3.3.7'
And then execute:
$ bundle
Or install it yourself as:
$ gem install bootstrap-honoka-rails
Add to application.css *= require _honoka
For bootstrap ver3 you need *= _bootstrap-sprockets
.
app/assets/stylesheets/application.css
/*
*= require _bootstrap-sprockets # Add line * v3 only
*= require _honoka # Add line
*= require_self
*/
and add to application.js
`//= require popper` // * bootstrap ver4 later
`//= require bootstrap-sprockets`
app/assets/javascripts/application.js
//= require jquery2
//= require rails-ujs
//= require activestorage
//= require popper # add line * v4 later
//= require bootstrap-sprockets # add line
//= require turbolinks
//= require_tree .
If you loaded bootstrap-sprockets
, you do not need to load bootstrap.min
.
Because Dropdown features may not work properly.
Please check here for more details.
(It has been tested on production environment. The sample app is in the 'test/dummy' directory. )
Certain versions also support Nico , Umi and Rin.
app/assets/stylesheets/application.css
*= require _umi # Add line
*= require_self
or
*= require _nico # Add line
*= require_self
or
*= require _rin # Add line
*= require_self
Please check VERSIONS.md for Honoka Nico Umi Rin compatible Ver.
bootstrap-honoka-rails uses bootstrap or bootstrap-sass internally.
The gem is available as open source under the terms of the MIT License.
Source URL ... https://github.com/windyakin/Honoka
The MIT License (MIT)
Copyright (c) 2015 windyakin
Source URL ... https://github.com/ysakasin/Umi
The MIT License (MIT)
Copyright (c) 2015 ysakasin
Source URL ... https://github.com/kubosho/Nico
The MIT License (MIT)
Copyright (c) 2015 windyakin, kubosho
Source URL ... https://github.com/raryosu/Rin
The MIT License (MIT)
Copyright (c) 2016 Hagihara Ryosuke