Skip to content

Commit

Permalink
Ignore hidden files when generating docs. (#30)
Browse files Browse the repository at this point in the history
  • Loading branch information
jverkoey authored and kfranqueiro committed Mar 1, 2019
1 parent b9838b2 commit 8147f9c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion scripts/lib/platform-site.js
Original file line number Diff line number Diff line change
Expand Up @@ -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_;
Expand Down

0 comments on commit 8147f9c

Please sign in to comment.