Updates to the readme for jsDelivr

This commit is contained in:
Andrew Gioia 2017-06-17 09:40:14 -04:00
parent 869809bfaa
commit 6740c4e4c0

View File

@ -16,23 +16,23 @@ To use Keyrune via source, NPM, or Bower, move the font files to your `/fonts` d
<link href="css/keyrune.css" rel="stylesheet" type="text/css" /> <link href="css/keyrune.css" rel="stylesheet" type="text/css" />
``` ```
**NEW:** you can now include Keyrune via CDN thanks to the amazing [jdDelivr](http://jsdelivr.com) project! To include the latest version, reference: **NEW:** you can now include Keyrune via CDN thanks to the amazing [jsDelivr](http://jsdelivr.com) project! To include the latest version, reference:
```html ```html
<link href="//cdn.jsdelivr.net/keyrune/latest/css/keyrune.css" rel="stylesheet" type="text/css" /> <link href="//cdn.jsdelivr.net/npm/keyrune@latest/css/keyrune.css" rel="stylesheet" type="text/css" />
``` ```
**Note:** as of v2.2.3 jsDelivr now DOES maintain the directory structure. **You no longer need to explicitly include the font-family via `@font-face`**, but if you still would like to here is the css ruleset: **Note:** as of v3.1.1 (June 2017) the URL format for jsDelivr changed to the above. They still maintain backwards compatibility for everything prior to that but going forward please use the above URL. You no longer need to explicitly include the font-family via `@font-face` as well, but if you still would like to here is the css ruleset:
```css ```css
@font-face { @font-face {
font-family: 'Keyrune'; font-family: 'Keyrune';
src: url('//cdn.jsdelivr.net/keyrune/latest/fonts/keyrune.eot'); src: url('//cdn.jsdelivr.net/npm/keyrune@latest/fonts/keyrune.eot');
src: url('//cdn.jsdelivr.net/keyrune/latest/fonts/keyrune.eot?#iefix') format('embedded-opentype'), src: url('//cdn.jsdelivr.net/npm/keyrune@latest/fonts/keyrune.eot?#iefix') format('embedded-opentype'),
url('//cdn.jsdelivr.net/keyrune/latest/fonts/keyrune.woff2') format('woff2'), url('//cdn.jsdelivr.net/npm/keyrune@latest/fonts/keyrune.woff2') format('woff2'),
url('//cdn.jsdelivr.net/keyrune/latest/fonts/keyrune.woff') format('woff'), url('//cdn.jsdelivr.net/npm/keyrune@latest/fonts/keyrune.woff') format('woff'),
url('//cdn.jsdelivr.net/keyrune/latest/fonts/keyrune.ttf') format('truetype'), url('//cdn.jsdelivr.net/npm/keyrune@latest/fonts/keyrune.ttf') format('truetype'),
url('//cdn.jsdelivr.net/keyrune/latest/fonts/keyrune.svg') format('svg'); url('//cdn.jsdelivr.net/npm/keyrune@latest/fonts/keyrune.svg') format('svg');
font-weight: normal; font-weight: normal;
font-style: normal; font-style: normal;
} }
@ -60,7 +60,7 @@ Attribution is **greatly appreciated** but not required!
## Changelog ## Changelog
* v3.1.1 - Minor corrections for versioning * v3.1.1 - Minor corrections for versioning and updates to readme for jsDelivr
* v3.1.0 - Slew of new icons for Ixalan, Rivals of Ixalan, Explorers of Ixalan, and Unstable; corrected Hour of Devastation icon based on official release * v3.1.0 - Slew of new icons for Ixalan, Rivals of Ixalan, Explorers of Ixalan, and Unstable; corrected Hour of Devastation icon based on official release
* v3.0.3 - Adding new (correct) Archenemy: Nicol Bolas symbol with confirmed set code (e01) * v3.0.3 - Adding new (correct) Archenemy: Nicol Bolas symbol with confirmed set code (e01)
* v3.0.2 - Fixing BRB path issue * v3.0.2 - Fixing BRB path issue