From 16954daa19caa6f1290d0d732c9ee661a840aac1 Mon Sep 17 00:00:00 2001 From: zachgersh Date: Sat, 11 May 2013 21:16:50 -0700 Subject: [PATCH] Updated rakefile to support new directory and parsing structure. --- Rakefile | 22 +++++++++++++++------- site/_includes/docs_contents.html | 4 ++-- site/docs/history/index.md | 20 ++++++++++++++++++-- 3 files changed, 35 insertions(+), 11 deletions(-) diff --git a/Rakefile b/Rakefile index f2fe1b82..c0aeec44 100644 --- a/Rakefile +++ b/Rakefile @@ -148,20 +148,28 @@ namespace :site do puts 'Done.' end - desc "Move the changelist over to _posts directory and update its formatting." - task :changelist do + desc "Move the History.markdown over to the /docs/history directory." + task :history do # First lets go ahead and format the file correctly (mainly bullet points) + puts "Generating the History doc!" if File.exist?("History.markdown") file_time = File.read("History.markdown") - replaced = file_time.gsub(/\s{2}\*{1}/, "-") - # Now we need to copy the file into the _posts directory with the proper date - Dir.chdir('site/_posts') do - sh "rm -rf *-changelist.md" - File.open("#{file_date}-changelist.md", "w") {|file| file.write(replaced)} + # Replacing the contents of the file for the markdown bullets + rep_bullets = file_time.gsub(/\s{2}\*{1}/, "-") + # Create a hash for the front matter that is to be included + front_matter = {"layout" => "docs", "title" => "History", + "permalink" => "/docs/history/"} + # Finally we need to copy the file to the /history directory + Dir.chdir('site/docs/history') do + File.open("index.md", "w") do |file| + file.write("#{front_matter.to_yaml}---\n\n") + file.write(rep_bullets) + end end else puts "Uh Oh!" end + puts "Done!" end end diff --git a/site/_includes/docs_contents.html b/site/_includes/docs_contents.html index 804569cd..29c64c78 100644 --- a/site/_includes/docs_contents.html +++ b/site/_includes/docs_contents.html @@ -80,8 +80,8 @@
  • Upgrading
  • -
  • - Changelist +
  • + History
  • diff --git a/site/docs/history/index.md b/site/docs/history/index.md index 38a22af3..7ba26df4 100644 --- a/site/docs/history/index.md +++ b/site/docs/history/index.md @@ -1,9 +1,25 @@ --- layout: docs -title: Changelist -prev_section: upgrading +title: History +permalink: /docs/history/ --- +## HEAD +### Major Enhancements +### Minor Enhancements +- Update pygments.rb version to 0.5.0 (#1061) +- Update Kramdown version to 1.0.2 (#1067) + +### Bug Fixes +- Catching that Redcarpet gem isn't installed (#1059) + +### Site Enhancements +- Remove pygments-installation instructions, as pygments.rb is bundled with it (#1079) +- Move pages to be Pages for realz (#985) +- Updated links to Liquid documentation (#1073) + +### Development Fixes + ## 1.0.1 / 2013-05-08 ### Minor Enhancements