From 6167747440a7083d7e26b9c462e1f97197b13d9a Mon Sep 17 00:00:00 2001 From: Parker Moore Date: Sun, 12 May 2013 01:07:58 +0200 Subject: [PATCH] Say happy things when everything is cool --- lib/jekyll/commands/doctor.rb | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/lib/jekyll/commands/doctor.rb b/lib/jekyll/commands/doctor.rb index 8338879d..5ac2a68d 100644 --- a/lib/jekyll/commands/doctor.rb +++ b/lib/jekyll/commands/doctor.rb @@ -6,17 +6,22 @@ module Jekyll site = Jekyll::Site.new(options) site.read - deprecate_relative_permalinks(site) + unless deprecated_relative_permalinks(site) + Jekyll::Logger.info "Your test results", "are in. Everything looks fine." + end end - def deprecate_relative_permalinks(site) + def deprecated_relative_permalinks(site) + contains_deprecated_pages = false site.pages.each do |page| if page.uses_relative_permalinks Jekyll::Logger.warn "Deprecation:", "'#{page.path}' uses relative" + " permalinks which will be automatically" + " deprecated in Jekyll v1.1." + contains_deprecated_pages = true end end + contains_deprecated_pages end end end