Skip to content

Commit

Permalink
Adds web app manifest file (#1963)
Browse files Browse the repository at this point in the history
closes #1629
  • Loading branch information
roblarsen authored Jul 11, 2017
1 parent efa3db1 commit bc2710e
Show file tree
Hide file tree
Showing 10 changed files with 26 additions and 6 deletions.
Binary file removed dist/apple-touch-icon.png
Binary file not shown.
6 changes: 3 additions & 3 deletions dist/doc/html.md
Original file line number Diff line number Diff line change
Expand Up @@ -156,9 +156,9 @@ using some polyfill CDN service, like [cdn.polyfill.io](https://cdn.polyfill.io/
just put it before the other scripts in the bottom of the page:

```html
<script src="https://cdn.polyfill.io/v1/polyfill.min.js"></script>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.2/jquery.min.js"></script>
<script>window.jQuery || document.write('<script src="js/vendor/jquery-1.11.2.min.js"><\/script>')</script>
<script src="https://cdn.polyfill.io/v2/polyfill.min.js"></script>
<script src="https://code.jquery.com/jquery-3.2.1.min.js" integrity="sha256-hwg4gsxgFZhOsEEamdOYGBf13FyQuiTwlAQgxVSNgt4=" crossorigin="anonymous"></script>
<script>window.jQuery || document.write('<script src="js/vendor/jquery-3.2.1.min.js"><\/script>')</script>
<script src="js/plugins.js"></script>
<script src="js/main.js"></script>
</body>
Expand Down
Binary file added dist/icon.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
3 changes: 2 additions & 1 deletion dist/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,8 @@
<meta name="description" content="">
<meta name="viewport" content="width=device-width, initial-scale=1">

<link rel="apple-touch-icon" href="apple-touch-icon.png">
<link rel="manifest" href="site.webmanifest">
<link rel="apple-touch-icon" href="icon.png">
<!-- Place favicon.ico in the root directory -->

<link rel="stylesheet" href="css/normalize.css">
Expand Down
8 changes: 8 additions & 0 deletions dist/site.webmanifest
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
{
"icons": [{
"src": "icon.png",
"sizes": "192x192",
"type": "image/png"
}],
"start_url": "/"
}
Binary file removed src/apple-touch-icon.png
Binary file not shown.
Binary file added src/icon.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
3 changes: 2 additions & 1 deletion src/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,8 @@
<meta name="description" content="">
<meta name="viewport" content="width=device-width, initial-scale=1">

<link rel="apple-touch-icon" href="apple-touch-icon.png">
<link rel="manifest" href="site.webmanifest">
<link rel="apple-touch-icon" href="icon.png">
<!-- Place favicon.ico in the root directory -->

<link rel="stylesheet" href="css/normalize.css">
Expand Down
8 changes: 8 additions & 0 deletions src/site.webmanifest
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
{
"icons": [{
"src": "icon.png",
"sizes": "192x192",
"type": "image/png"
}],
"start_url": "/"
}
4 changes: 3 additions & 1 deletion test/file_existence.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@ const expectedFilesInDistDir = [
'.gitignore',
'.htaccess',
'404.html',
'apple-touch-icon.png',
'browserconfig.xml',

'css/', // for directories, a `/` character
Expand All @@ -41,6 +40,8 @@ const expectedFilesInDistDir = [
'favicon.ico',
'humans.txt',

'icon.png',

'img/',
'img/.gitignore',

Expand All @@ -55,6 +56,7 @@ const expectedFilesInDistDir = [

'LICENSE.txt',
'robots.txt',
'site.webmanifest',
'tile-wide.png',
'tile.png'

Expand Down

0 comments on commit bc2710e

Please sign in to comment.