Skip to content

Commit

Permalink
fixed documentation and removed unecessary site being passed to stati…
Browse files Browse the repository at this point in the history
…c_file constructor
  • Loading branch information
Karl Seguin committed Jan 20, 2012
1 parent f42ea52 commit 4fa4ecf
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
2 changes: 1 addition & 1 deletion lib/jekyll/site.rb
Expand Up @@ -143,7 +143,7 @@ def read_directories(dir = '')
else
destination_dir = self.public_root.nil? ? dir : dir.sub(/^#{Regexp.escape(self.public_root)}/, '')
# otherwise treat it as a static file
static_files << StaticFile.new(self, self.source, dir, destination_dir, f)
static_files << StaticFile.new(self.source, dir, destination_dir, f)
end
end
end
Expand Down
7 changes: 3 additions & 4 deletions lib/jekyll/static_file.rb
Expand Up @@ -6,12 +6,11 @@ class StaticFile

# Initialize a new StaticFile.
#
# site - The Site.
# base - The String path to the <source>.
# dir - The String path between <source> and the file.
# source_dir - The String path between <source> and the file.
# destination_dir - The String path between <destinations> and the file.
# name - The String filename of the file.
def initialize(site, base, source_dir, destination_dir, name)
@site = site
def initialize(base, source_dir, destination_dir, name)
@base = base
@source_dir = source_dir
@destination_dir = destination_dir
Expand Down

0 comments on commit 4fa4ecf

Please sign in to comment.