Skip to content

Commit 37b8581

Browse files
author
Shuwen Qian
committed
Add apple-touch-icon to docs build
1 parent 7f21467 commit 37b8581

5 files changed

Lines changed: 5 additions & 2 deletions

File tree

apple-ipad-icon@2x.png

6.98 KB
Loading

apple-iphone-icon@2x.png

5.47 KB
Loading

docs/head.html

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,8 @@
88
<meta name="viewport" content="width=device-width,minimum-scale=1,maximum-scale=1"/>
99
<title>Strand Web Components</title>
1010
<link rel="shortcut icon" href="favicon.ico" type="image/x-icon" />
11+
<link rel="apple-touch-icon" href="apple-iphone-icon@2x.png" sizes="120x120" type="image/png" />
12+
<link rel="apple-touch-icon" href="apple-ipad-icon@2x.png" sizes="152x152" type="image/png" />
1113
<script language="javascript" src="bower_components/webcomponentsjs/webcomponents-lite.js"></script>
1214
<link rel="stylesheet" type="text/css" href="docs.css"/>
1315
<link rel="stylesheet" href="//cdnjs.cloudflare.com/ajax/libs/highlight.js/8.8.0/styles/github.min.css">
328 KB
Binary file not shown.

gulp/tasks/docs.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,12 +26,13 @@
2626
});
2727

2828
gulp.task('copy:docs', function() {
29-
var assets = gulp.src(j(C.DOCS,'/images/**'),{base:C.DOCS});
29+
var assets = gulp.src(j(C.DOCS,'/images/*.svg'),{base:C.DOCS});
3030
var cname = gulp.src('CNAME');
3131
var license = gulp.src('LICENSE.txt');
32+
var touchIcons = gulp.src('apple-*.png');
3233
var favicon = gulp.src('favicon.ico');
3334

34-
var merged_static = merge(assets, cname, license, favicon)
35+
var merged_static = merge(assets, cname, license, touchIcons, favicon)
3536
.pipe(gulp.dest(C.BUILD_DOCS));
3637

3738
var bower_components = gulp.src([j(C.BOWER,'/webcomponentsjs/**/*'), j(C.BOWER,'/polymer/**/*')], {base:C.BOWER})

0 commit comments

Comments
 (0)