Add a styleguide to your Rails app using Hologram.
Sample Rails app with hologram_rails: https://github.com/ckundo/hologram-rails-example
$ echo 'gem "hologram_rails"' >> Gemfile
$ bundle install
$ mkdir app/assets/hologram/ && cd !$
$ touch hologram_config.yml
# hologram_config.yml
source: ../stylesheets
destination: ../../views/pages
documentation_assets: ./doc_assets
index: basics
# config/routes.rb
mount HologramRails::Engine, at: "/styleguide"
# application.scss
@import 'hologram_rails/github';
@import 'hologram_rails/docs';
6. Add documentation to an application stylesheet (per Hologram readme):
/*doc
---
title: Input with label
name: label-input
category: basics
---
Horizontal inputs with labels.
```html_example
<label for='name'>Name</label>
<input type='text' id='name' placeholder='John Doe' />
```
*/
$ cd app/assets/hologram/ && hologram