Rake task added to move History into site and update its formatting.
This commit is contained in:
		
							parent
							
								
									eb5a8a6358
								
							
						
					
					
						commit
						2c5807faad
					
				
							
								
								
									
										20
									
								
								Rakefile
								
								
								
								
							
							
						
						
									
										20
									
								
								Rakefile
								
								
								
								
							|  | @ -24,6 +24,10 @@ def date | ||||||
|   Date.today.to_s |   Date.today.to_s | ||||||
| end | end | ||||||
| 
 | 
 | ||||||
|  | def file_date | ||||||
|  |   Date.today.strftime("%F") | ||||||
|  | end | ||||||
|  | 
 | ||||||
| def rubyforge_project | def rubyforge_project | ||||||
|   name |   name | ||||||
| end | end | ||||||
|  | @ -143,6 +147,22 @@ namespace :site do | ||||||
|     end |     end | ||||||
|     puts 'Done.' |     puts 'Done.' | ||||||
|   end |   end | ||||||
|  | 
 | ||||||
|  |   desc "Move the changelist over to _posts directory and update its formatting." | ||||||
|  |   task :changelist do | ||||||
|  |     # First lets go ahead and format the file correctly (mainly bullet points) | ||||||
|  |     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)} | ||||||
|  |       end | ||||||
|  |     else | ||||||
|  |       puts "Uh Oh!" | ||||||
|  |     end | ||||||
|  |   end | ||||||
| end | end | ||||||
| 
 | 
 | ||||||
| ############################################################################# | ############################################################################# | ||||||
|  |  | ||||||
|  | @ -1,8 +1,11 @@ | ||||||
| --- | ## HEAD | ||||||
| layout: docs | ### Major Enhancements | ||||||
| title: Changelist | ### Minor Enhancements | ||||||
| prev_section: upgrading | ### Bug Fixes | ||||||
| --- | - Catching that Redcarpet gem isn't installed (#1059) | ||||||
|  | 
 | ||||||
|  | ### Site Enhancements | ||||||
|  | ### Development Fixes | ||||||
| 
 | 
 | ||||||
| ## 1.0.1 / 2013-05-08 | ## 1.0.1 / 2013-05-08 | ||||||
| 
 | 
 | ||||||
|  | @ -77,7 +80,7 @@ prev_section: upgrading | ||||||
| - Truncate post slugs when importing from Tumblr (#496) | - Truncate post slugs when importing from Tumblr (#496) | ||||||
| - Add glob support to include, exclude option (#743) | - Add glob support to include, exclude option (#743) | ||||||
| - Layout of Page or Post defaults to 'page' or 'post', respectively (#580) | - Layout of Page or Post defaults to 'page' or 'post', respectively (#580) | ||||||
|   REPEALED by (#977) |     REPEALED by (#977) | ||||||
| - "Keep files" feature (#685) | - "Keep files" feature (#685) | ||||||
| - Output full path & name for files that don't parse (#745) | - Output full path & name for files that don't parse (#745) | ||||||
| - Add source and destination directory protection (#535) | - Add source and destination directory protection (#535) | ||||||
|  | @ -104,7 +107,7 @@ prev_section: upgrading | ||||||
| - Fix broken post_url with posts with a time in their YAML Front-Matter (#831) | - Fix broken post_url with posts with a time in their YAML Front-Matter (#831) | ||||||
| - Look for plugins under the source directory (#654) | - Look for plugins under the source directory (#654) | ||||||
| - Tumblr Migrator: finds _posts dir correctly, fixes truncation of long | - Tumblr Migrator: finds _posts dir correctly, fixes truncation of long | ||||||
|     post names (#775) |       post names (#775) | ||||||
| - Force Categories to be Strings (#767) | - Force Categories to be Strings (#767) | ||||||
| - Safe YAML plugin to prevent vulnerability (#777) | - Safe YAML plugin to prevent vulnerability (#777) | ||||||
| - Add SVG support to Jekyll/WEBrick. (#407, #406) | - Add SVG support to Jekyll/WEBrick. (#407, #406) | ||||||
|  | @ -123,13 +126,13 @@ prev_section: upgrading | ||||||
| ### Development Fixes | ### Development Fixes | ||||||
| - Exclude Cucumber 1.2.4, which causes tests to fail in 1.9.2 (#938) | - Exclude Cucumber 1.2.4, which causes tests to fail in 1.9.2 (#938) | ||||||
| - Added "features:html" rake task for debugging purposes, cleaned up | - Added "features:html" rake task for debugging purposes, cleaned up | ||||||
|     cucumber profiles (#832) |       cucumber profiles (#832) | ||||||
| - Explicitly require HTTPS rubygems source in Gemfile (#826) | - Explicitly require HTTPS rubygems source in Gemfile (#826) | ||||||
| - Changed Ruby version for development to 1.9.3-p374 from p362 (#801) | - Changed Ruby version for development to 1.9.3-p374 from p362 (#801) | ||||||
| - Including a link to the GitHub Ruby style guide in CONTRIBUTING.md (#806) | - Including a link to the GitHub Ruby style guide in CONTRIBUTING.md (#806) | ||||||
| - Added script/bootstrap (#776) | - Added script/bootstrap (#776) | ||||||
| - Running Simplecov under 2 conditions: ENV(COVERAGE)=true and with Ruby version | - Running Simplecov under 2 conditions: ENV(COVERAGE)=true and with Ruby version | ||||||
|     of greater than 1.9 (#771) |       of greater than 1.9 (#771) | ||||||
| - Switch to Simplecov for coverage report (#765) | - Switch to Simplecov for coverage report (#765) | ||||||
| 
 | 
 | ||||||
| ## 0.12.1 / 2013-02-19 | ## 0.12.1 / 2013-02-19 | ||||||
|  | @ -237,15 +240,15 @@ prev_section: upgrading | ||||||
| - Proper plugin system (#19, #100) | - Proper plugin system (#19, #100) | ||||||
| - Add safe mode so unsafe converters/generators can be added | - Add safe mode so unsafe converters/generators can be added | ||||||
| - Maruku is now the only processor dependency installed by default. | - Maruku is now the only processor dependency installed by default. | ||||||
|     Other processors will be lazy-loaded when necessary (and prompt the |       Other processors will be lazy-loaded when necessary (and prompt the | ||||||
|     user to install them when necessary) (#57) |       user to install them when necessary) (#57) | ||||||
| 
 | 
 | ||||||
| ### Minor Enhancements | ### Minor Enhancements | ||||||
| - Inclusion/exclusion of future dated posts (#59) | - Inclusion/exclusion of future dated posts (#59) | ||||||
| - Generation for a specific time (#59) | - Generation for a specific time (#59) | ||||||
| - Allocate site.time on render not per site_payload invocation (#59) | - Allocate site.time on render not per site_payload invocation (#59) | ||||||
| - Pages now present in the site payload and can be used through the | - Pages now present in the site payload and can be used through the | ||||||
|     site.pages and site.html_pages variables |       site.pages and site.html_pages variables | ||||||
| - Generate phase added to site#process and pagination is now a generator | - Generate phase added to site#process and pagination is now a generator | ||||||
| - Switch to RakeGem for build/test process | - Switch to RakeGem for build/test process | ||||||
| - Only regenerate static files when they have changed (#142) | - Only regenerate static files when they have changed (#142) | ||||||
|  | @ -268,7 +271,7 @@ prev_section: upgrading | ||||||
| - Fix pagination to adhere to read/render/write paradigm | - Fix pagination to adhere to read/render/write paradigm | ||||||
| - Test Enhancement | - Test Enhancement | ||||||
| - cucumber features no longer use site.posts.first where a better | - cucumber features no longer use site.posts.first where a better | ||||||
|     alternative is available |       alternative is available | ||||||
| 
 | 
 | ||||||
| ## 0.5.6 / 2010-01-08 | ## 0.5.6 / 2010-01-08 | ||||||
| - Bug Fixes | - Bug Fixes | ||||||
|  | @ -288,7 +291,7 @@ prev_section: upgrading | ||||||
| 
 | 
 | ||||||
| ## NOTE | ## NOTE | ||||||
| - After this point I will no longer be giving credit in the history; | - After this point I will no longer be giving credit in the history; | ||||||
|   that is what the commit log is for. |     that is what the commit log is for. | ||||||
| 
 | 
 | ||||||
| ## 0.5.4 / 2009-08-23 | ## 0.5.4 / 2009-08-23 | ||||||
| - Bug Fixes | - Bug Fixes | ||||||
|  | @ -297,77 +300,77 @@ prev_section: upgrading | ||||||
| ## 0.5.3 / 2009-07-14 | ## 0.5.3 / 2009-07-14 | ||||||
| - Bug Fixes | - Bug Fixes | ||||||
| - Solving the permalink bug where non-html files wouldn't work | - Solving the permalink bug where non-html files wouldn't work | ||||||
|     [github.com/jeffrydegrande] |       [github.com/jeffrydegrande] | ||||||
| 
 | 
 | ||||||
| ## 0.5.2 / 2009-06-24 | ## 0.5.2 / 2009-06-24 | ||||||
| - Enhancements | - Enhancements | ||||||
| - Added --paginate option to the executable along with a paginator object | - Added --paginate option to the executable along with a paginator object | ||||||
|     for the payload [github.com/calavera] |       for the payload [github.com/calavera] | ||||||
| - Upgraded RedCloth to 4.2.1, which makes `<notextile>` tags work once | - Upgraded RedCloth to 4.2.1, which makes <notextile> tags work once | ||||||
|     again. |       again. | ||||||
| - Configuration options set in config.yml are now available through the | - Configuration options set in config.yml are now available through the | ||||||
|     site payload [github.com/vilcans] |       site payload [github.com/vilcans] | ||||||
| - Posts can now have an empty YAML front matter or none at all | - Posts can now have an empty YAML front matter or none at all | ||||||
|     [github.com/bahuvrihi] |       [github.com/bahuvrihi] | ||||||
| - Bug Fixes | - Bug Fixes | ||||||
| - Fixing Ruby 1.9 issue that requires to_s on the err object | - Fixing Ruby 1.9 issue that requires to_s on the err object | ||||||
|     [github.com/Chrononaut] |       [github.com/Chrononaut] | ||||||
| - Fixes for pagination and ordering posts on the same day [github.com/ujh] | - Fixes for pagination and ordering posts on the same day [github.com/ujh] | ||||||
| - Made pages respect permalinks style and permalinks in yml front matter | - Made pages respect permalinks style and permalinks in yml front matter | ||||||
|     [github.com/eugenebolshakov] |       [github.com/eugenebolshakov] | ||||||
| - Index.html file should always have index.html permalink | - Index.html file should always have index.html permalink | ||||||
|     [github.com/eugenebolshakov] |       [github.com/eugenebolshakov] | ||||||
| - Added trailing slash to pretty permalink style so Apache is happy | - Added trailing slash to pretty permalink style so Apache is happy | ||||||
|     [github.com/eugenebolshakov] |       [github.com/eugenebolshakov] | ||||||
| - Bad markdown processor in config fails sooner and with better message | - Bad markdown processor in config fails sooner and with better message | ||||||
|     [github.com/gcnovus] |       [github.com/gcnovus] | ||||||
| - Allow CRLFs in yaml frontmatter [github.com/juretta] | - Allow CRLFs in yaml frontmatter [github.com/juretta] | ||||||
| - Added Date#xmlschema for Ruby versions < 1.9 | - Added Date#xmlschema for Ruby versions < 1.9 | ||||||
| 
 | 
 | ||||||
| ## 0.5.1 / 2009-05-06 | ## 0.5.1 / 2009-05-06 | ||||||
| ### Major Enhancements | ### Major Enhancements | ||||||
| - Next/previous posts in site payload [github.com/pantulis, | - Next/previous posts in site payload [github.com/pantulis, | ||||||
|     github.com/tomo] |       github.com/tomo] | ||||||
| - Permalink templating system | - Permalink templating system | ||||||
| - Moved most of the README out to the GitHub wiki | - Moved most of the README out to the GitHub wiki | ||||||
| - Exclude option in configuration so specified files won't be brought over | - Exclude option in configuration so specified files won't be brought over | ||||||
|     with generated site [github.com/duritong] |       with generated site [github.com/duritong] | ||||||
| - Bug Fixes | - Bug Fixes | ||||||
| - Making sure config.yaml references are all gone, using only config.yml | - Making sure config.yaml references are all gone, using only config.yml | ||||||
| - Fixed syntax highlighting breaking for UTF-8 code [github.com/henrik] | - Fixed syntax highlighting breaking for UTF-8 code [github.com/henrik] | ||||||
| - Worked around RDiscount bug that prevents Markdown from getting parsed | - Worked around RDiscount bug that prevents Markdown from getting parsed | ||||||
|     after highlight [github.com/henrik] |       after highlight [github.com/henrik] | ||||||
| - CGI escaped post titles [github.com/Chrononaut] | - CGI escaped post titles [github.com/Chrononaut] | ||||||
| 
 | 
 | ||||||
| ## 0.5.0 / 2009-04-07 | ## 0.5.0 / 2009-04-07 | ||||||
| ### Minor Enhancements | ### Minor Enhancements | ||||||
| - Ability to set post categories via YAML [github.com/qrush] | - Ability to set post categories via YAML [github.com/qrush] | ||||||
| - Ability to set prevent a post from publishing via YAML | - Ability to set prevent a post from publishing via YAML | ||||||
|     [github.com/qrush] |       [github.com/qrush] | ||||||
| - Add textilize filter [github.com/willcodeforfoo] | - Add textilize filter [github.com/willcodeforfoo] | ||||||
| - Add 'pretty' permalink style for wordpress-like urls | - Add 'pretty' permalink style for wordpress-like urls | ||||||
|     [github.com/dysinger] |       [github.com/dysinger] | ||||||
| - Made it possible to enter categories from YAML as an array | - Made it possible to enter categories from YAML as an array | ||||||
|     [github.com/Chrononaut] |       [github.com/Chrononaut] | ||||||
| - Ignore Emacs autosave files [github.com/Chrononaut] | - Ignore Emacs autosave files [github.com/Chrononaut] | ||||||
| - Bug Fixes | - Bug Fixes | ||||||
| - Use block syntax of popen4 to ensure that subprocesses are properly | - Use block syntax of popen4 to ensure that subprocesses are properly | ||||||
|     disposed [github.com/jqr] |       disposed [github.com/jqr] | ||||||
| - Close open4 streams to prevent zombies [github.com/rtomayko] | - Close open4 streams to prevent zombies [github.com/rtomayko] | ||||||
| - Only query required fields from the WP Database [github.com/ariejan] | - Only query required fields from the WP Database [github.com/ariejan] | ||||||
| - Prevent _posts from being copied to the destination directory | - Prevent _posts from being copied to the destination directory | ||||||
|     [github.com/bdimcheff] |       [github.com/bdimcheff] | ||||||
| - Refactors | - Refactors | ||||||
| - Factored the filtering code into a method [github.com/Chrononaut] | - Factored the filtering code into a method [github.com/Chrononaut] | ||||||
| - Fix tests and convert to Shoulda [github.com/qrush, | - Fix tests and convert to Shoulda [github.com/qrush, | ||||||
|     github.com/technicalpickles] |       github.com/technicalpickles] | ||||||
| - Add Cucumber acceptance test suite [github.com/qrush, | - Add Cucumber acceptance test suite [github.com/qrush, | ||||||
|     github.com/technicalpickles] |       github.com/technicalpickles] | ||||||
| 
 | 
 | ||||||
| ## 0.4.1 | ## 0.4.1 | ||||||
| ### Minor Enhancements | ### Minor Enhancements | ||||||
| - Changed date format on wordpress converter (zeropadding) | - Changed date format on wordpress converter (zeropadding) | ||||||
|     [github.com/dysinger] |       [github.com/dysinger] | ||||||
| - Bug Fixes | - Bug Fixes | ||||||
| - Add jekyll binary as executable to gemspec [github.com/dysinger] | - Add jekyll binary as executable to gemspec [github.com/dysinger] | ||||||
| 
 | 
 | ||||||
|  | @ -382,13 +385,13 @@ prev_section: upgrading | ||||||
| - Add a converter for textpattern [github.com/PerfectlyNormal] | - Add a converter for textpattern [github.com/PerfectlyNormal] | ||||||
| - Add a working Mephisto / MySQL converter [github.com/ivey] | - Add a working Mephisto / MySQL converter [github.com/ivey] | ||||||
| - Allowing .htaccess files to be copied over into the generated site | - Allowing .htaccess files to be copied over into the generated site | ||||||
|     [github.com/briandoll] |       [github.com/briandoll] | ||||||
| - Add option to not put file date in permalink URL [github.com/mreid] | - Add option to not put file date in permalink URL [github.com/mreid] | ||||||
| - Add line number capabilities to highlight blocks [github.com/jcon] | - Add line number capabilities to highlight blocks [github.com/jcon] | ||||||
| - Bug Fixes | - Bug Fixes | ||||||
| - Fix permalink behavior [github.com/cavalle] | - Fix permalink behavior [github.com/cavalle] | ||||||
| - Fixed an issue with pygments, markdown, and newlines | - Fixed an issue with pygments, markdown, and newlines | ||||||
|     [github.com/zpinter] |       [github.com/zpinter] | ||||||
| - Ampersands need to be escaped [github.com/pufuwozu, github.com/ap] | - Ampersands need to be escaped [github.com/pufuwozu, github.com/ap] | ||||||
| - Test and fix the site.categories hash [github.com/zzot] | - Test and fix the site.categories hash [github.com/zzot] | ||||||
| - Fix site payload available to files [github.com/matrix9180] | - Fix site payload available to files [github.com/matrix9180] | ||||||
|  | @ -396,21 +399,21 @@ prev_section: upgrading | ||||||
| ## 0.3.0 / 2008-12-24 | ## 0.3.0 / 2008-12-24 | ||||||
| ### Major Enhancements | ### Major Enhancements | ||||||
| - Added --server option to start a simple WEBrick server on destination | - Added --server option to start a simple WEBrick server on destination | ||||||
|     directory [github.com/johnreilly and github.com/mchung] |       directory [github.com/johnreilly and github.com/mchung] | ||||||
| 
 | 
 | ||||||
| ### Minor Enhancements | ### Minor Enhancements | ||||||
| - Added post categories based on directories containing _posts | - Added post categories based on directories containing _posts | ||||||
|     [github.com/mreid] |       [github.com/mreid] | ||||||
| - Added post topics based on directories underneath _posts | - Added post topics based on directories underneath _posts | ||||||
| - Added new date filter that shows the full month name [github.com/mreid] | - Added new date filter that shows the full month name [github.com/mreid] | ||||||
| - Merge Post's YAML front matter into its to_liquid payload | - Merge Post's YAML front matter into its to_liquid payload | ||||||
|     [github.com/remi] |       [github.com/remi] | ||||||
| - Restrict includes to regular files underneath _includes | - Restrict includes to regular files underneath _includes | ||||||
| - Bug Fixes | - Bug Fixes | ||||||
| - Change YAML delimiter matcher so as to not chew up 2nd level markdown | - Change YAML delimiter matcher so as to not chew up 2nd level markdown | ||||||
|     headers [github.com/mreid] |       headers [github.com/mreid] | ||||||
| - Fix bug that meant page data (such as the date) was not available in | - Fix bug that meant page data (such as the date) was not available in | ||||||
|     templates [github.com/mreid] |       templates [github.com/mreid] | ||||||
| - Properly reject directories in _layouts | - Properly reject directories in _layouts | ||||||
| 
 | 
 | ||||||
| ## 0.2.1 / 2008-12-15 | ## 0.2.1 / 2008-12-15 | ||||||
|  | @ -436,10 +439,10 @@ prev_section: upgrading | ||||||
| 
 | 
 | ||||||
| ### Minor Enhancements | ### Minor Enhancements | ||||||
| - Output informative message if RDiscount is not available | - Output informative message if RDiscount is not available | ||||||
|     [github.com/JackDanger] |       [github.com/JackDanger] | ||||||
| - Bug Fixes | - Bug Fixes | ||||||
| - Prevent Jekyll from picking up the output directory as a source | - Prevent Jekyll from picking up the output directory as a source | ||||||
|     [github.com/JackDanger] |       [github.com/JackDanger] | ||||||
| - Skip related_posts when there is only one post [github.com/JackDanger] | - Skip related_posts when there is only one post [github.com/JackDanger] | ||||||
| 
 | 
 | ||||||
| ## 0.1.4 / 2008-12-08 | ## 0.1.4 / 2008-12-08 | ||||||
|  | @ -460,7 +463,7 @@ prev_section: upgrading | ||||||
| - Add a real "related posts" implementation using Classifier | - Add a real "related posts" implementation using Classifier | ||||||
| - Command Line Changes | - Command Line Changes | ||||||
| - Allow cli to be called with 0, 1, or 2 args intuiting dir paths | - Allow cli to be called with 0, 1, or 2 args intuiting dir paths | ||||||
|     if they are omitted |       if they are omitted | ||||||
| 
 | 
 | ||||||
| ## 0.1.1 / 2008-11-22 | ## 0.1.1 / 2008-11-22 | ||||||
| - Minor Additions | - Minor Additions | ||||||
		Loading…
	
		Reference in New Issue