Skip to content
This repository has been archived by the owner on Nov 19, 2024. It is now read-only.

Commit

Permalink
Renamed cleanup to clean; formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
dshevtsov committed Aug 24, 2018
1 parent 672dafe commit 888ed98
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 8 deletions.
10 changes: 5 additions & 5 deletions Rakefile
Original file line number Diff line number Diff line change
Expand Up @@ -4,26 +4,26 @@ include Jekyll
include Proofer
include Converter

desc "Same as 'rake preview'"
desc "Same as 'rake', 'rake preview'"
task default: %w[preview]

desc "Same as 'test:report'"
task test: %w[test:report]

desc "Preview the devdocs locally"
task preview: %w[install cleanup] do
task preview: %w[install clean] do
print "Generating devdocs locally ... ".magenta
if File.exists?('_config.local.yml')
print "enabled the additional configuration parameters from _config.local.yml: $ ".magenta
preview_local
preview_local
else
print "enabled the default configuration; generating the entire devdocs $ ".magenta
preview
end
end

desc "Remove the generated content"
task :cleanup do
task :clean do
print "Cleaning after the last site generation: $ ".magenta
jekyll 'clean'
puts "Clean!".green
Expand All @@ -37,7 +37,7 @@ task :install do
end

desc "Build the entire web site"
task build: %w[cleanup] do
task build: %w[clean] do
print 'Building the site with Jekyll: $ '.magenta
jekyll 'build'
puts 'Built!'.green
Expand Down
4 changes: 2 additions & 2 deletions rakelib/converter.rb
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
module Converter
# Define the Kramdown method to convert markdown to HTML.
def kramdown( text )
Kramdown::Document.new( text ).to_html
Kramdown::Document.new( text ).to_html
end

# Read content in the given path
def content(path)
File.read(path)
File.read(path)
end

# The CSS to append to the HTML report with broken links
Expand Down
2 changes: 1 addition & 1 deletion rakelib/proofer.rb
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ def options
typhoeus: { :followlocation => true, :connecttimeout => 10, :timeout => 30 },
hydra: { :max_concurrency => 50 },
cache: { :timeframe => '30d' }
}
}
end

# Count the number of lines in the given file
Expand Down

0 comments on commit 888ed98

Please sign in to comment.