build: fix docs generation highlight files task (#6285)

Recently with https://github.com/angular/material2/commit/edcbb24f11ae776b94d97634ae91e9175ffd6f8a the ambigious variable `path` has been renamed to `filePath`, but there is one remaining instance of `path` that didn't get updated.

This currently causes the docs-content CI job to fail.
This commit is contained in:
Paul Gschwendtner
2017-08-07 19:19:15 +02:00
committed by mmalerba
parent 509e3e90f5
commit 48d092093d
+1 -1
View File
@@ -110,7 +110,7 @@ task('highlight-examples', () => {
// rename files to fit format: [filename]-[filetype].html
const renameFile = (filePath: any) => {
const extension = filePath.extname.slice(1);
filePath.basename = `${path.basename}-${extension}`;
filePath.basename = `${filePath.basename}-${extension}`;
};
return src('src/material-examples/**/*.+(html|css|ts)')