fixed some typos

This commit is contained in:
Brandon Mathis 2012-06-17 11:20:05 -05:00
parent c2e14bf88e
commit cf0fd14476

View File

@ -22,7 +22,7 @@ deploy_branch = "gh-pages"
public_dir = "public" # compiled site directory public_dir = "public" # compiled site directory
source_dir = "source" # source file directory source_dir = "source" # source file directory
blog_index_dir = 'source' # directory for your blog's index page (if you put your index in source/blog/index.html, set this to 'source/blog') blog_index_dir = 'source' # directory for your blog's index page (if you put your index in source/blog/index.html, set this to 'source/blog')
deploy_dir = "_deploy" # deploy directory (for Github pages deployment) deploy_dir = "_deploy" # deploy directory (for GitHub pages deployment)
stash_dir = "_stash" # directory to stash posts for speedy generation stash_dir = "_stash" # directory to stash posts for speedy generation
posts_dir = "_posts" # directory for blog files posts_dir = "_posts" # directory for blog files
themes_dir = ".themes" # directory for blog files themes_dir = ".themes" # directory for blog files
@ -308,7 +308,7 @@ end
desc "deploy public directory to github pages" desc "deploy public directory to github pages"
multitask :push do multitask :push do
if File.directory?(deploy_dir) if File.directory?(deploy_dir)
puts "## Deploying branch to Github Pages " puts "## Deploying branch to GitHub Pages "
(Dir["#{deploy_dir}/*"]).each { |f| rm_rf(f) } (Dir["#{deploy_dir}/*"]).each { |f| rm_rf(f) }
Rake::Task[:copydot].invoke(public_dir, deploy_dir) Rake::Task[:copydot].invoke(public_dir, deploy_dir)
puts "Attempting pull, to sync local deployment repository" puts "Attempting pull, to sync local deployment repository"
@ -326,10 +326,10 @@ multitask :push do
system "git commit -m \"#{message}\"" system "git commit -m \"#{message}\""
puts "\n## Pushing generated #{deploy_dir} website" puts "\n## Pushing generated #{deploy_dir} website"
system "git push origin #{deploy_branch}" system "git push origin #{deploy_branch}"
puts "\n## Github Pages deploy complete" puts "\n## GitHub Pages deploy complete"
end end
else else
puts "This project isn't configured for deploying to Github Pages\nPlease run `rake setup_github_pages[your-deployment-repo-url]`." puts "This project isn't configured for deploying to GitHub Pages\nPlease run `rake setup_github_pages[your-deployment-repo-url]`."
end end
end end
@ -375,7 +375,7 @@ task :set_root_dir, :dir do |t, args|
end end
end end
desc "Set up _deploy folder and deploy branch for Github Pages deployment" desc "Set up _deploy folder and deploy branch for GitHub Pages deployment"
task :setup_github_pages, :repo do |t, args| task :setup_github_pages, :repo do |t, args|
if args.repo if args.repo
repo_url = args.repo repo_url = args.repo
@ -450,13 +450,13 @@ task :setup_github_pages, :repo do |t, args|
puts "!! WARNING: Your CNAME points to #{cname} but your _config.yml url is set to #{current_short_url} !!" puts "!! WARNING: Your CNAME points to #{cname} but your _config.yml url is set to #{current_short_url} !!"
puts "For help with setting up a CNAME follow the guide at http://help.github.com/pages/#custom_domains" puts "For help with setting up a CNAME follow the guide at http://help.github.com/pages/#custom_domains"
else else
puts "Github Pages will host your site at http://#{cname}" puts "GitHub Pages will host your site at http://#{cname}"
end end
else else
puts "Github Pages will host your site at #{url}." puts "GitHub Pages will host your site at #{url}."
puts "To host at \"your-site.com\", configure a CNAME: `echo \"your-domain.com\" > #{source_dir}/CNAME`" puts "To host at \"your-site.com\", configure a CNAME: `echo \"your-domain.com\" > #{source_dir}/CNAME`"
puts "Then change the url in _config.yml from #{current_url} to http://your-domain.com" puts "Then change the url in _config.yml from #{current_url} to http://your-domain.com"
puts "Finally, follow the guide at http://help.github.com/pages/#custom_domains for help pointing your domain to Github Pages" puts "Finally, follow the guide at http://help.github.com/pages/#custom_domains for help pointing your domain to GitHub Pages"
end end
puts "Deploy to #{repo_url} with `rake deploy`" puts "Deploy to #{repo_url} with `rake deploy`"
puts "Note: generated content is copied into _deploy/ which is not in version control." puts "Note: generated content is copied into _deploy/ which is not in version control."