Permalink
Browse files

Merge pull request #5621 from rogerogden/patch-1

Merge pull request 5621
  • Loading branch information...
2 parents 2236889 + 7b73abc commit bf33dc7f50e3f979c76dfe5375b663fc96071d1f @jekyllbot jekyllbot committed on GitHub Jan 10, 2017
Showing with 5 additions and 5 deletions.
  1. +5 −5 lib/jekyll/readers/data_reader.rb
@@ -7,20 +7,20 @@ def initialize(site)
@entry_filter = EntryFilter.new(site)
end
- # Read all the files in <source>/<dir>/_drafts and create a new Draft
- # object with each one.
+ # Read all the files in <dir> and adds them to @content
#
# dir - The String relative path of the directory to read.
#
- # Returns nothing.
+ # Returns @content, a Hash of the .yaml, .yml,
+ # .json, and .csv files in the base directory
def read(dir)
base = site.in_source_dir(dir)
read_data_to(base, @content)
@content
end
- # Read and parse all yaml files under <dir> and add them to the
- # <data> variable.
+ # Read and parse all .yaml, .yml, .json, and .csv
+ # files under <dir> and add them to the <data> variable.
#
# dir - The string absolute path of the directory to read.
# data - The variable to which data will be added.

0 comments on commit bf33dc7

Please sign in to comment.