Skip to content

Commit d4a6911

Browse files
author
Thomas Welton
committed
Added installation instructions
Signed-off-by: Thomas Welton <[email protected]>
1 parent d32906c commit d4a6911

File tree

1 file changed

+20
-0
lines changed

1 file changed

+20
-0
lines changed

readme.md

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,26 @@ If you have any issues in these implementations, you can report them here! :)
1818

1919
For the full story of HTML5 Shiv and all of the people involved in making it, read [The Story of the HTML5 Shiv](http://paulirish.com/2011/the-history-of-the-html5-shiv/).
2020

21+
## Installation
22+
23+
###Using [Bower](http://bower.io/)
24+
25+
`bower install html5shiv --save-dev`
26+
27+
This will clone the latest version of the HTML5 shiv into the `components` directory at the root of your project and also create or update the file `bower.json` which specifies your projects dependencies.
28+
29+
Include the HTML5 shiv at the top of your `<head>` in a conditional comment before any stylesheets.
30+
31+
```html
32+
<!--[if lt IE 9]>
33+
<script src="components/html5shiv/html5shiv.js"></script>
34+
<![endif]-->
35+
```
36+
37+
###Manual instalation
38+
39+
Download and extract the [latest zip package](https://github.com/aFarkas/html5shiv/archive/master.zip) from this repositiory and copy the two files `dist/html5shiv.js` and `dist/html5shiv-printshiv.js` into your project. Then include them into your `<head>` as above
40+
2141
## HTML5 Shiv API
2242

2343
HTML5 Shiv works as a simple drop-in solution. In most cases there is no need to configure HTML5 Shiv or use methods provided by HTML5 Shiv.

0 commit comments

Comments
 (0)