From d8bf10d761c449996110b1ffbb780a0d816ad0c5 Mon Sep 17 00:00:00 2001 From: MURAOKA Taro Date: Tue, 30 Jul 2013 21:28:27 +0900 Subject: [PATCH 1/8] disable reverse lookup --- lib/jekyll/commands/serve.rb | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/jekyll/commands/serve.rb b/lib/jekyll/commands/serve.rb index ae28665b..cd5b974a 100644 --- a/lib/jekyll/commands/serve.rb +++ b/lib/jekyll/commands/serve.rb @@ -20,7 +20,8 @@ module Jekyll s = HTTPServer.new( :Port => options['port'], :BindAddress => options['host'], - :MimeTypes => mime_types + :MimeTypes => mime_types, + :DoNotReverseLookup => true ) s.mount(options['baseurl'], HTTPServlet::FileHandler, destination, fh_option) From d452135f1e72177b2481c9b51acc1c6987598fde Mon Sep 17 00:00:00 2001 From: Parker Moore Date: Sat, 10 Aug 2013 03:46:34 +0200 Subject: [PATCH 2/8] Add rake task to create a new release post. Adds all the necessary metadata and add two newlines at the top of the post to start with. --- Rakefile | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) diff --git a/Rakefile b/Rakefile index 37e2b4f6..4cefdac7 100644 --- a/Rakefile +++ b/Rakefile @@ -202,6 +202,30 @@ namespace :site do abort "You seem to have misplaced your History.markdown file. I can haz?" end end + + namespace :releases do + desc "Create new release post" + task :new, :version do |t, args| + raise "Specify a version: rake site:releases:new['1.2.3']" unless args.version + today = Time.new.strftime('%Y-%m-%d') + filename = "site/_posts/#{today}-jekyll-#{release.split('.').join('-')}-released.markdown" + + File.open(filename, "wb") do |post| + post.puts("---") + post.puts("layout: news_item") + post.puts("title: 'Jekyll #{release} Released'") + post.puts("date: #{Time.new.strftime('%Y-%m-%d %H:%M:%S %z')}") + post.puts("author: ") + post.puts("version: #{version}") + post.puts("categories: [release]") + post.puts("---") + post.puts + post.puts + end + + puts "Created #{filename}" + end + end end ############################################################################# From 3f7dcaa2ec7fea5985e6986cde7ec170d398adc4 Mon Sep 17 00:00:00 2001 From: Anatol Broder Date: Fri, 6 Sep 2013 01:59:22 +0200 Subject: [PATCH 3/8] Make navigation menu reusable --- site/_includes/docs_contents.html | 93 ++---------------------- site/_includes/docs_contents_mobile.html | 31 ++------ 2 files changed, 12 insertions(+), 112 deletions(-) diff --git a/site/_includes/docs_contents.html b/site/_includes/docs_contents.html index 57b6b32c..0df6c0a4 100644 --- a/site/_includes/docs_contents.html +++ b/site/_includes/docs_contents.html @@ -1,97 +1,16 @@
diff --git a/site/_includes/docs_contents_mobile.html b/site/_includes/docs_contents_mobile.html index 18be2227..fe2a09ef 100644 --- a/site/_includes/docs_contents_mobile.html +++ b/site/_includes/docs_contents_mobile.html @@ -2,41 +2,22 @@ From 102d83f78da74cef20a54ea7f93ec3b310928adf Mon Sep 17 00:00:00 2001 From: Anatol Broder Date: Fri, 6 Sep 2013 02:00:23 +0200 Subject: [PATCH 4/8] Make navigation menus reusable --- site/_includes/docs_option.html | 11 +++++++++++ site/_includes/docs_ul.html | 20 ++++++++++++++++++++ 2 files changed, 31 insertions(+) create mode 100644 site/_includes/docs_option.html create mode 100644 site/_includes/docs_ul.html diff --git a/site/_includes/docs_option.html b/site/_includes/docs_option.html new file mode 100644 index 00000000..8284ed96 --- /dev/null +++ b/site/_includes/docs_option.html @@ -0,0 +1,11 @@ +{% assign items = include.items | split: ' ' %} + +{% for item in items %} + {% assign item_url = item | prepend:'/docs/' | append:'/' %} + + {% for p in site.pages %} + {% if p.url == item_url %} + + {% endif %} + {% endfor %} +{% endfor %} diff --git a/site/_includes/docs_ul.html b/site/_includes/docs_ul.html new file mode 100644 index 00000000..fa7b9f60 --- /dev/null +++ b/site/_includes/docs_ul.html @@ -0,0 +1,20 @@ +{% assign items = include.items | split: ' ' %} + +
    +{% for item in items %} + {% assign item_url = item | prepend:'/docs/' | append:'/' %} + + {% if item_url == page.url %} + {% assign c = 'current' %} + {% else %} + {% assign c = '' %} + {% endif %} + + {% for p in site.pages %} + {% if p.url == item_url %} +
  • {{ p.title }}
  • + {% endif %} + {% endfor %} + +{% endfor %} +
From eb29209c24366b74259923694651e83589992327 Mon Sep 17 00:00:00 2001 From: Anatol Broder Date: Fri, 6 Sep 2013 20:40:00 +0200 Subject: [PATCH 5/8] Expand URL --- site/_includes/docs_ul.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/site/_includes/docs_ul.html b/site/_includes/docs_ul.html index fa7b9f60..4ba82479 100644 --- a/site/_includes/docs_ul.html +++ b/site/_includes/docs_ul.html @@ -12,7 +12,7 @@ {% for p in site.pages %} {% if p.url == item_url %} -
  • {{ p.title }}
  • +
  • {{ p.title }}
  • {% endif %} {% endfor %} From 3a6ffade0b2aa8ee208e15448408f1e2c3eb7946 Mon Sep 17 00:00:00 2001 From: Matt Rogers Date: Fri, 6 Sep 2013 22:38:38 -0500 Subject: [PATCH 6/8] Update history to reflect merge of #1363 --- History.markdown | 1 + 1 file changed, 1 insertion(+) diff --git a/History.markdown b/History.markdown index f07c7b7d..b964752b 100644 --- a/History.markdown +++ b/History.markdown @@ -3,6 +3,7 @@ ### Major Enhancements ### Minor Enhancements + * Disable reverse lookup when running `jekyll serve` (#1363) ### Bug Fixes From e1a8ade88e5592d00b7df7f30f3a88c10324f311 Mon Sep 17 00:00:00 2001 From: Matt Rogers Date: Fri, 6 Sep 2013 22:42:49 -0500 Subject: [PATCH 7/8] Update history to reflect merge of #1404 --- History.markdown | 1 + 1 file changed, 1 insertion(+) diff --git a/History.markdown b/History.markdown index b964752b..dd8c3f94 100644 --- a/History.markdown +++ b/History.markdown @@ -8,6 +8,7 @@ ### Bug Fixes ### Development Fixes + * Add a rake task to generate a new release post (#1404) ### Site Enhancements * Fix a couple of validation errors on the site (#1511) From e87006206e750f6ac5d358b75eafca9a589f990f Mon Sep 17 00:00:00 2001 From: Matt Rogers Date: Fri, 6 Sep 2013 22:58:42 -0500 Subject: [PATCH 8/8] Update history to reflect merge of #1507 --- History.markdown | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/History.markdown b/History.markdown index dd8c3f94..e6f2d3fc 100644 --- a/History.markdown +++ b/History.markdown @@ -3,7 +3,7 @@ ### Major Enhancements ### Minor Enhancements - * Disable reverse lookup when running `jekyll serve` (#1363) + * Disable reverse lookup when running `jekyll serve` (#1363) ### Bug Fixes @@ -12,6 +12,7 @@ ### Site Enhancements * Fix a couple of validation errors on the site (#1511) + * Make navigation menus reusable (#1507) ## v1.2.0 / 2013-09-06