зеркало из https://github.com/github/docs.git
3df90fc9b8
Are you looking for something? Here is all of the GitHub Docs history in one single commit. Enjoy! 🎉
|
||
---|---|---|
.. | ||
README.md | ||
hamburger.svg | ||
kebab-horizontal.svg | ||
kebab-vertical.svg | ||
project.svg | ||
search.svg | ||
x.svg |
README.md
Importing Aftermarket Octicons
Background
Some octicons are missing from the project's current version of the octicons
gem. Because this project is being replaced soon and updating octicons
would require significant changes, new octicons should be added manually as needed, via the following process:
How to add
- Locate the missing octicon
.svg
in primer/octions and download it to your localapp/assets/images/octions
folder - Add a line to
app/assets/stylesheets/shared/_octicons.scss
for the new octicon, like so:
.octicon-<YOUR OCTICON NAME>:before {
content: url("#{$new-octicons-path}/<YOUR OCTICON FILENAME>.svg")
}
You may now use the new octicon in your content as normal! 🎉