@@ -12,21 +12,27 @@ gem 'mitlibraries-theme'
1212
1313And then execute:
1414
15- $ bundle
15+ ``` shell
16+ $ bundle
17+ ```
1618
1719Or install it yourself as:
1820
19- $ gem install mitlibraries-theme
21+ ``` shell
22+ $ gem install mitlibraries-theme
23+ ```
2024
2125## Usage
2226
2327After you bundle, delete your application local ` app/views/layouts/application.rb ` to use the layout the gem provides.
2428
2529Rename your ` app/assets/stylesheets/application.css ` to ` app/assets/stylesheets/application.scss ` and remove anything like:
26- ```
30+
31+ ``` ruby
2732*= require_tree .
2833*= require_self
2934```
35+
3036Add
3137` @import "libraries-main"; `
3238
@@ -46,7 +52,7 @@ If you need to make changes to other templates, you can also copy those to your
4652
4753You can load additional js to individual pages using:
4854
49- ```
55+ ``` ruby
5056< % content_for :additional_js do %>
5157 <script> alert(" hi" );< / script>
5258< % end %>
@@ -61,7 +67,7 @@ for adding external support libraries. For JS you are writing, include via
6167
6268You can load additional meta headers to individual pages using:
6369
64- ```
70+ ```ruby
6571<% content_for :additional_meta_tag do %>
6672 < meta name= " description" content= " Words and stuff about stuff or something." >
6773 < meta name= " keywords" content= " words,stuff,yoyos" >
@@ -81,6 +87,7 @@ Run `make help` for details.
8187
8288If your goal is to fetch the latest assets from the style repo and publish the
8389changes, this would get you there:
90+
8491- `make update`
8592- manually update the version in `lib/mitlibraries/theme/version.rb`
8693- `make dist`
0 commit comments