Skip to content

Commit

Permalink
IE8 improvements for docs site
Browse files Browse the repository at this point in the history
  • Loading branch information
stevoland committed Jul 1, 2014
1 parent 9cda5d6 commit 0d709c5
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 11 deletions.
1 change: 1 addition & 0 deletions docs/assets/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ body {

.bs-docs-masthead, .bs-docs-header {
background: #2d2d2d;
filter: none;
color: #e9e9e9;
}

Expand Down
31 changes: 20 additions & 11 deletions docs/src/Root.js
Original file line number Diff line number Diff line change
Expand Up @@ -79,19 +79,28 @@ var Root = React.createClass({
__html: 'window.INITIAL_PROPS = ' + JSON.stringify(this.props) + ';'
};

var head = {
__html: '<title>React Bootstrap</title>' +
'<meta http-equiv="X-UA-Compatible" content="IE=edge" />' +
'<meta name="viewport" content="width=device-width, initial-scale=1.0" />' +
'<link href="vendor/bootstrap/bootstrap.css" rel="stylesheet" />' +
'<link href="vendor/bootstrap/docs.css" rel="stylesheet" />' +
'<link href="vendor/codemirror/codemirror.css" rel="stylesheet" />' +
'<link href="vendor/codemirror/solarized.css" rel="stylesheet" />' +
'<link href="vendor/codemirror/syntax.css" rel="stylesheet" />' +
'<link href="assets/style.css" rel="stylesheet" />' +
'<!--[if lt IE 9]>' +
'<script src="https://oss.maxcdn.com/html5shiv/3.7.2/html5shiv.min.js"></script>' +
'<script src="https://oss.maxcdn.com/respond/1.4.2/respond.min.js"></script>' +
'<script src="http://code.jquery.com/jquery-1.11.1.min.js"></script>' +
'<script src="http://cdnjs.cloudflare.com/ajax/libs/es5-shim/3.4.0/es5-shim.js"></script>' +
'<script src="http://cdnjs.cloudflare.com/ajax/libs/es5-shim/3.4.0/es5-sham.js"></script>' +
'<![endif]-->'
};

return (
<html>
<head>
<title>React Bootstrap</title>
<meta name="viewport" content="width=device-width, initial-scale=1.0" />

<link href="vendor/bootstrap/bootstrap.css" rel="stylesheet" />
<link href="vendor/bootstrap/docs.css" rel="stylesheet" />
<link href="vendor/codemirror/codemirror.css" rel="stylesheet" />
<link href="vendor/codemirror/solarized.css" rel="stylesheet" />
<link href="vendor/codemirror/syntax.css" rel="stylesheet" />
<link href="assets/style.css" rel="stylesheet" />
</head>
<head dangerouslySetInnerHTML={head} />

<body>
<Locations path={Root.getBaseUrl() + this.props.initialPath}>
Expand Down

0 comments on commit 0d709c5

Please sign in to comment.