Skip to content

Commit bf3c59b

Browse files
committed
Grunt replace:docs task updated.
1 parent 1c05e42 commit bf3c59b

1 file changed

Lines changed: 76 additions & 0 deletions

File tree

tasks/options/replace.js

Lines changed: 76 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,26 @@ module.exports = {
2222
src: ['docs/index.html'],
2323
dest: 'docs/index.html',
2424
replacements: [
25+
{
26+
from: /<p><img src="http:\/\/www.phaser.io\/images\/github\/welcome-div2.png" alt="div"><\/p>/g,
27+
to: ''
28+
},
29+
{
30+
from: /<p><img src="http:\/\/www.phaser.io\/images\/github\/div.png" alt="div"><\/p>/g,
31+
to: ''
32+
},
33+
{
34+
from: /&lt;div align=&quot;center&quot;&gt;&lt;img src=&quot;http:\/\/phaser.io\/images\/github\/news.jpg&quot;&gt;&lt;\/div&gt;/g,
35+
to: ''
36+
},
37+
{
38+
from: /&lt;div align=&quot;center&quot;&gt;&lt;img src=&quot;http:\/\/phaser.io\/images\/github\/books.jpg&quot;&gt;&lt;\/div&gt;/g,
39+
to: ''
40+
},
41+
{
42+
from: /&lt;div align=&quot;center&quot;&gt;&lt;img src=&quot;http:\/\/phaser.io\/images\/github\/books.jpg&quot;&gt;&lt;\/div&gt;/g,
43+
to: ''
44+
},
2545
{
2646
from: /(<p><img src="http:\/\/www\.phaser\.io\/images\/phaser2)[\s\S]*(<li><a href="#license">License<\/a><\/li>\s<\/ul>)/g,
2747
to: ''
@@ -33,6 +53,62 @@ module.exports = {
3353
{
3454
from: /(<p>&lt;).*(&gt;<\/p>)/g,
3555
to: ''
56+
},
57+
{
58+
from: '<a href="http://phaser.io/images/github/shot1a.jpg">![Game</a>][game1]',
59+
to: '<img src="http://phaser.io/images/github/shot1a.jpg">'
60+
},
61+
{
62+
from: '<a href="http://phaser.io/images/github/shot2a.jpg">![Game</a>][game2]',
63+
to: '<img src="http://phaser.io/images/github/shot2a.jpg"><br>'
64+
},
65+
{
66+
from: '<a href="http://phaser.io/images/github/shot3a.jpg">![Game</a>][game3]',
67+
to: '<img src="http://phaser.io/images/github/shot3a.jpg">'
68+
},
69+
{
70+
from: '<a href="http://phaser.io/images/github/shot4a.jpg">![Game</a>][game4]',
71+
to: '<img src="http://phaser.io/images/github/shot4a.jpg"><br>'
72+
},
73+
{
74+
from: '<a href="http://phaser.io/images/github/shot5b.jpg">![Game</a>][game5]',
75+
to: '<img src="http://phaser.io/images/github/shot5b.jpg">'
76+
},
77+
{
78+
from: '<a href="http://phaser.io/images/github/shot6b.jpg">![Game</a>][game6]',
79+
to: '<img src="http://phaser.io/images/github/shot6b.jpg">'
80+
},
81+
{
82+
from: '<a href="http://phaser.io/images/github/shot7b.jpg">![Game</a>][game7]',
83+
to: '<img src="http://phaser.io/images/github/shot7b.jpg"><br>'
84+
},
85+
{
86+
from: '<a href="http://phaser.io/images/github/shot8.jpg">![Game</a>][game8]',
87+
to: '<img src="http://phaser.io/images/github/shot8.jpg">'
88+
},
89+
{
90+
from: '<a href="http://phaser.io/images/github/shot9.jpg">![Game</a>][game9]',
91+
to: '<img src="http://phaser.io/images/github/shot9.jpg"><br>'
92+
},
93+
{
94+
from: '<a href="http://phaser.io/images/github/shot10.jpg">![Game</a>][game10]',
95+
to: '<img src="http://phaser.io/images/github/shot10.jpg">'
96+
},
97+
{
98+
from: '<a href="http://phaser.io/images/github/shot11.jpg">![Game</a>][game11]',
99+
to: '<img src="http://phaser.io/images/github/shot11.jpg"><br>'
100+
},
101+
{
102+
from: '<a href="http://phaser.io/images/github/shot12.jpg">![Game</a>][game12]',
103+
to: '<img src="http://phaser.io/images/github/shot12.jpg">'
104+
},
105+
{
106+
from: '<a href="http://phaser.io/images/github/shot13.jpg">![Game</a>][game13]',
107+
to: '<img src="http://phaser.io/images/github/shot13.jpg">'
108+
},
109+
{
110+
from: '<a href="http://phaser.io/images/github/shot14.jpg">![Game</a>]<a href="http://www.tempalabs.com/works/gattai/">game14</a>',
111+
to: '<img src="http://phaser.io/images/github/shot14.jpg">'
36112
}
37113
]
38114
}

0 commit comments

Comments
 (0)