Skip to content

Commit dff74e3

Browse files
user378230fcaballero
authored andcommitted
docs(examples) fix double header/footer wrapping
filenames plugin appeared to be causing header and footer additions to be run twice. Also removes dodgy character at start of header html partial
1 parent c990206 commit dff74e3

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

docs/partials/_header.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
<!DOCTYPE html>
1+
<!DOCTYPE html>
22
<html lang="en" ng-app="demo">
33
<head>
44
<meta charset="utf-8">

gulpfile.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -170,9 +170,9 @@ gulp.task('docs:assets', function () {
170170

171171
gulp.task('docs:examples', function () {
172172
return gulp.src(['docs/examples/*.html'])
173-
.pipe($.filenames('exampleFiles'))
174173
.pipe($.header(fs.readFileSync('docs/partials/_header.html')))
175174
.pipe($.footer(fs.readFileSync('docs/partials/_footer.html')))
175+
.pipe($.filenames('exampleFiles'))
176176
.pipe(gulp.dest('./docs-built/'));
177177
});
178178

0 commit comments

Comments
 (0)