Closed bobthecow closed 11 years ago
The problem is that Nanoc::Site.new
doesn’t properly work if you give it a path that differs from "."
. Too much stuff depends on the current working directory to be the nanoc site.
Dir.chdir(@base_dir) do
site = ::Nanoc::Site.new(@base_dir)
site.compile
end
That works! Can you update the pull request?
Yep :)
Allows using guard-nanoc to recompile nanoc sites in subdirectories of guarded projects.