diff options
author | Brandon Mathis <brandon@imathis.com> | 2011-06-17 22:24:48 -0400 |
---|---|---|
committer | Brandon Mathis <brandon@imathis.com> | 2011-06-17 22:24:48 -0400 |
commit | 21813059f255dcd338d4cc42aad51700126d6058 (patch) | |
tree | 7503e24c9c0858dfc9961df7063b817f5688df57 /Rakefile | |
parent | b0405cc3c2f901e20d8aa0bc1ed8c499065f0c8b (diff) | |
download | my_new_personal_website-21813059f255dcd338d4cc42aad51700126d6058.tar.xz my_new_personal_website-21813059f255dcd338d4cc42aad51700126d6058.zip |
1. Replaced Rdiscount in favor of Kramdown (better html5 support) for markdown processing.
2. Added updated instructions to the README
3. Removed unused media css directories
4. Improved use of color variables for page theming.
5. Improved Typography and blog styling.
6. Added support for simple pre and code styles
7. Misc styling and markup improvements.
Diffstat (limited to 'Rakefile')
-rw-r--r-- | Rakefile | 15 |
1 files changed, 10 insertions, 5 deletions
@@ -1,7 +1,6 @@ require "rubygems" require "bundler/setup" -port = "4000" # preview project port eg. http://localhost:4000 site = "public" # compiled site directory source = "source" # source file directory stash = "_stash" # directory to stash posts for speedy generation @@ -10,8 +9,8 @@ post_format = "markdown" # file format for new posts when using the post rake t ## -- Rsync Deploy config -- ## # Be sure your public key is listed in your server's ~/.ssh/authorized_keys file -ssh_user = "user@host.com" # for rsync deployment -document_root = "~/document_root/" # for rsync deployment +ssh_user = "mathisweb@imathis.com" +document_root = "~/dev.octopress.org/" ## -- Github Pages deploy config -- ## # Read http://pages.github.com for guidance @@ -28,7 +27,7 @@ task :install, :theme do |t, args| system "mkdir -p #{source}; cp -R themes/"+theme+"/source/ #{source}/" system "mkdir -p sass; cp -R themes/"+theme+"/sass/ sass/" system "mkdir -p _plugins; cp -R themes/"+theme+"/_plugins/ _plugins/" - system "mkdir -p #{source}/_posts"; + system "mkdir -p #{source}/#{posts}"; puts "## Layouts, images, and javascritps from the #{theme} theme have been installed into ./#{source}" puts "## Sass stylesheet sources from the #{theme} theme have been installed into ./sass" puts "## Plugins from the #{theme} theme have been installed into ./_plugins" @@ -54,8 +53,9 @@ task :post, :filename do |t, args| require './_plugins/titlecase.rb' args.with_defaults(:filename => 'new-post') open("#{source}/_posts/#{Time.now.strftime('%Y-%m-%d')}-#{args.filename.downcase.gsub(/[ _]/, '-')}.#{post_format}", 'w') do |post| + system "mkdir -p #{source}/#{posts}"; post.puts "---" - post.puts "title: \"#{args.filename.gsub(/[-_]/, ' ').titlecase}\"" + post.puts "title: #{args.filename.gsub(/[-_]/, ' ').titlecase}" post.puts "date: #{Time.now.strftime('%Y-%m-%d %H:%M')}" post.puts "layout: post" post.puts "---" @@ -77,6 +77,11 @@ task :integrate do FileUtils.mv Dir.glob("#{source}/#{stash}/*.*"), "#{source}/#{posts}/" end +desc "Clean out caches: _code_cache, _gist_cache, .sass-cache" +task :clean do + system "rm -rf _code_cache/** _gist_cache/** .sass-cache/**" +end + ############## # Deploying # ############## |