codeclimate/octicons_helper

Name: octicons_helper

Owner: Code Climate

Description: A rails helper that inlines SVG octicons

Forked from: primer/octicons_helper

Created: 2017-11-21 05:06:59.0

Updated: 2017-11-21 05:07:01.0

Pushed: 2017-11-21 05:39:48.0

Homepage: https://octicons.github.com/

Size: 22

Language: Ruby

GitHub Committers

UserMost Recent Commit# Commits

Other Committers

UserEmailMost Recent Commit# Commits

README

Octicons rails helper

Gem version Build Status

A rails helper that inlines SVG octicons

This rails helper let's you easily include svg octicons in your rails apps.

Install
  1. Add this to your Gemfile

    'octicons_helper'
    
  2. Use this tag in your erbs

    octicon "alert", :height => 32,  :class => "right left", :"aria-label" => "hi" %>
    

The minimum CSS you'll need in your rails app is in the octicons repository. You can also npm install that package and include build/octicons.css in your styles.

Documentation

For a full list of options available, see the octicons_gem documentation

Publishing

If you have access to publish this repository, these are the steps to publishing. If you need access, contact #design-systems.

Before publishing This repository relies on the data from octicons_gem. To update to the most recent version, you'll need to run npm run update

  1. Update the CHANGELOG.md with relevant version number and any updates made to the repository.
  2. Update the version in version.rb using the relevant version. The versioning is semver, so version appropriately based on what has changed.
  3. npm version <newversion> Use the same version that you added in step 2.
  4. npm run ship This will build the gem and publish it to rubygems.
  5. git push && git push --tags Push all these changes to origin.
License

(c) 2012-2016 GitHub, Inc.

When using the GitHub logos, be sure to follow the GitHub logo guidelines.

Font License: SIL OFL 1.1
Applies to all font files and SVG files

Code License: MIT
Applies to all other files


This work is supported by the National Institutes of Health's National Center for Advancing Translational Sciences, Grant Number U24TR002306. This work is solely the responsibility of the creators and does not necessarily represent the official views of the National Institutes of Health.