From 48d092093def8197dbf5b2fc7bfef8ecc0e7851a Mon Sep 17 00:00:00 2001 From: Paul Gschwendtner Date: Mon, 7 Aug 2017 19:19:15 +0200 Subject: [PATCH] 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. --- tools/gulp/tasks/docs.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/gulp/tasks/docs.ts b/tools/gulp/tasks/docs.ts index 0751d594967..5360b72cc27 100644 --- a/tools/gulp/tasks/docs.ts +++ b/tools/gulp/tasks/docs.ts @@ -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)')