You can use the Rails helper, Jekyll helper, or React package to include Octicons on your site. Below are code examples for each:
<%= octicon "smiley", :height => 24 %>
{% octicon smiley height:24 %}
<SmileyIcon size={24} />