From 8147f9c4c581bf506ccaffb2cbae1d33710a6e51 Mon Sep 17 00:00:00 2001 From: featherless Date: Fri, 1 Mar 2019 12:08:31 -0500 Subject: [PATCH] Ignore hidden files when generating docs. (#30) --- scripts/lib/platform-site.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/scripts/lib/platform-site.js b/scripts/lib/platform-site.js index ffd47fbd7..9da475cab 100644 --- a/scripts/lib/platform-site.js +++ b/scripts/lib/platform-site.js @@ -64,7 +64,8 @@ class PlatformSite { if (!this.files_) { this.files_ = globSync(path.join(this.repoPath, FilePattern.JEKYLL_FILES), GLOB_OPTIONS) .map((filePath) => DocumentationFile.readFromPath(filePath, this.repoPath)) - .filter((file) => file.isValidJekyll); + .filter((file) => file.isValidJekyll) + .filter((file) => (file.path.indexOf('/.') === -1 && file.path.indexOf('.') !== 0)); } return this.files_;