Skip to content

Commit a8bd03e

Browse files
committed
chore(build): Update site tasks
1 parent 9f97ed0 commit a8bd03e

File tree

1 file changed

+2
-16
lines changed

1 file changed

+2
-16
lines changed

Gruntfile.js

Lines changed: 2 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -216,7 +216,7 @@ module.exports = function(grunt) {
216216
]
217217
},
218218
files: [
219-
{src: ['site/**/*.html'], dest: './'}
219+
{src: ['site/index.html'], dest: './'}
220220
]
221221
},
222222
siteIndexTitle: {
@@ -236,20 +236,6 @@ module.exports = function(grunt) {
236236
files: [
237237
{src: ['site/index.html'], dest: './'}
238238
]
239-
},
240-
siteMkdocsFix : { // https://github.com/tomchristie/mkdocs/issues/240. Wait for Mkdocs>0.11.1.
241-
options: {
242-
usePrefix: false,
243-
patterns: [
244-
{
245-
match: /script src=".{2}\/assets/g,
246-
replacement: 'script src="assets'
247-
}
248-
]
249-
},
250-
files: [
251-
{src: ['site/**/*.html'], dest: './'}
252-
]
253239
}
254240
},
255241
'gh-pages': {
@@ -320,7 +306,7 @@ module.exports = function(grunt) {
320306

321307
grunt.registerTask('buildDemo', ['run:buildDemo']);
322308

323-
grunt.registerTask('buildSite', ['clean:site', 'run:buildDocs', 'run:buildDemo', 'copy:demoToSite', 'copy:ghPagesToSite', 'replace:site', 'replace:siteIndexTitle', 'replace:siteMkdocsFix']);
309+
grunt.registerTask('buildSite', ['clean:site', 'run:buildDocs', 'run:buildDemo', 'copy:demoToSite', 'copy:ghPagesToSite', 'replace:site', 'replace:siteIndexTitle']);
324310

325311
grunt.registerTask('uploadSite', ['gh-pages']);
326312

0 commit comments

Comments
 (0)