Class: Jekyll::Site

Inherits:
Object
  • Object
show all
Defined in:
lib/hj7/tidy.rb,
lib/hj7/jammit.rb,
lib/hj7/notifier.rb

Instance Method Summary collapse

Instance Method Details

#processObject



5
6
7
8
9
10
11
12
13
14
# File 'lib/hj7/tidy.rb', line 5

def process
  process_without_tidy
  if config.has_key?("tidy") and config["tidy"].has_key?("config_file")
    config_file = config["tidy"]["config_file"]
    if File.exists?(config_file)
      puts "tidy!!"
      system "find _site -name \"*.html\" -exec tidy -config #{config_file} {} \\;"
    end
  end
end

#process_without_growlObject



106
107
108
109
110
111
112
113
114
115
# File 'lib/hj7/notifier.rb', line 106

def process
  process_without_tidy
  if config.has_key?("tidy") and config["tidy"].has_key?("config_file")
    config_file = config["tidy"]["config_file"]
    if File.exists?(config_file)
      puts "tidy!!"
      system "find _site -name \"*.html\" -exec tidy -config #{config_file} {} \\;"
    end
  end
end

#process_without_jammitObject



6
7
8
9
10
11
12
13
14
15
# File 'lib/hj7/jammit.rb', line 6

def process
  process_without_tidy
  if config.has_key?("tidy") and config["tidy"].has_key?("config_file")
    config_file = config["tidy"]["config_file"]
    if File.exists?(config_file)
      puts "tidy!!"
      system "find _site -name \"*.html\" -exec tidy -config #{config_file} {} \\;"
    end
  end
end

#process_without_tidyObject



3
# File 'lib/hj7/tidy.rb', line 3

alias :process_without_tidy :process