Fix merge conflict.

This commit is contained in:
Parker Moore 2013-09-07 00:12:15 -04:00
commit d9f73cad9d
7 changed files with 72 additions and 113 deletions

View File

@ -3,13 +3,16 @@
### Major Enhancements ### Major Enhancements
### Minor Enhancements ### Minor Enhancements
* Disable reverse lookup when running `jekyll serve` (#1363)
### Bug Fixes ### Bug Fixes
### Development Fixes ### Development Fixes
* Add a rake task to generate a new release post (#1404)
### Site Enhancements ### Site Enhancements
* Fix a couple of validation errors on the site (#1511) * Fix a couple of validation errors on the site (#1511)
* Make navigation menus reusable (#1507)
* Fix link to History page from Release v1.2.0 notes post. * Fix link to History page from Release v1.2.0 notes post.
## v1.2.0 / 2013-09-06 ## v1.2.0 / 2013-09-06

View File

@ -211,6 +211,30 @@ namespace :site do
abort "You seem to have misplaced your History.markdown file. I can haz?" abort "You seem to have misplaced your History.markdown file. I can haz?"
end end
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 end
############################################################################# #############################################################################

View File

@ -20,7 +20,8 @@ module Jekyll
s = HTTPServer.new( s = HTTPServer.new(
:Port => options['port'], :Port => options['port'],
:BindAddress => options['host'], :BindAddress => options['host'],
:MimeTypes => mime_types :MimeTypes => mime_types,
:DoNotReverseLookup => true
) )
s.mount(options['baseurl'], HTTPServlet::FileHandler, destination, fh_option) s.mount(options['baseurl'], HTTPServlet::FileHandler, destination, fh_option)

View File

@ -1,97 +1,16 @@
<div class="unit one-fifth hide-on-mobiles"> <div class="unit one-fifth hide-on-mobiles">
<aside> <aside>
<h4>Getting Started</h4> <h4>Getting Started</h4>
<ul> {% include docs_ul.html items='home quickstart installation usage structure configuration' %}
<li class="{% if page.title == 'Welcome' %}current{% endif %}">
<a href="{{ site.url }}/docs/home/">Welcome</a>
</li>
<li class="{% if page.title == 'Quick-start guide' %}current{% endif %}">
<a href="{{ site.url }}/docs/quickstart/">Quick-start guide</a>
</li>
<li class="{% if page.title == 'Installation' %}current{% endif %}">
<a href="{{ site.url }}/docs/installation/">Installation</a>
</li>
<li class="{% if page.title == 'Basic Usage' %}current{% endif %}">
<a href="{{ site.url }}/docs/usage/">Basic Usage</a>
</li>
<li class="{% if page.title == 'Directory structure' %}current{% endif %}">
<a href="{{ site.url }}/docs/structure/">Directory structure</a>
</li>
<li class="{% if page.title == 'Configuration' %}current{% endif %}">
<a href="{{ site.url }}/docs/configuration/">Configuration</a>
</li>
</ul>
<h4>Your Content</h4> <h4>Your Content</h4>
<ul> {% include docs_ul.html items='frontmatter posts drafts pages variables migrations' %}
<li class="{% if page.title == 'Front-matter' %}current{% endif %}">
<a href="{{ site.url }}/docs/frontmatter/">Front-matter</a>
</li>
<li class="{% if page.title == 'Writing posts' %}current{% endif %}">
<a href="{{ site.url }}/docs/posts/">Writing posts</a>
</li>
<li class="{% if page.title == 'Working with drafts' %}current{% endif %}">
<a href="{{ site.url }}/docs/drafts/">Working with drafts</a>
</li>
<li class="{% if page.title == 'Creating pages' %}current{% endif %}">
<a href="{{ site.url }}/docs/pages/">Creating pages</a>
</li>
<li class="{% if page.title == 'Variables' %}current{% endif %}">
<a href="{{ site.url }}/docs/variables/">Variables</a>
</li>
<li class="{% if page.title == 'Blog migrations' %}current{% endif %}">
<a href="{{ site.url }}/docs/migrations/">Blog migrations</a>
</li>
</ul>
<h4>Customization</h4> <h4>Customization</h4>
<ul> {% include docs_ul.html items='templates permalinks pagination plugins extras' %}
<li class="{% if page.title == 'Templates' %}current{% endif %}">
<a href="{{ site.url }}/docs/templates/">Templates</a>
</li>
<li class="{% if page.title == 'Permalinks' %}current{% endif %}">
<a href="{{ site.url }}/docs/permalinks/">Permalinks</a>
</li>
<li class="{% if page.title == 'Pagination' %}current{% endif %}">
<a href="{{ site.url }}/docs/pagination/">Pagination</a>
</li>
<li class="{% if page.title == 'Plugins' %}current{% endif %}">
<a href="{{ site.url }}/docs/plugins/">Plugins</a>
</li>
<li class="{% if page.title == 'Extras' %}current{% endif %}">
<a href="{{ site.url }}/docs/extras/">Extras</a>
</li>
</ul>
<h4>Deployment</h4> <h4>Deployment</h4>
<ul> {% include docs_ul.html items='github-pages deployment-methods' %}
<li class="{% if page.title == 'GitHub Pages' %}current{% endif %}">
<a href="{{ site.url }}/docs/github-pages/">GitHub Pages</a>
</li>
<li class="{% if page.title == 'Deployment methods' %}current{% endif %}">
<a href="{{ site.url }}/docs/deployment-methods/">Other methods</a>
</li>
</ul>
<h4>Miscellaneous</h4> <h4>Miscellaneous</h4>
<ul> {% include docs_ul.html items='troubleshooting sites resources upgrading' %}
<li class="{% if page.title == 'Troubleshooting' %}current{% endif %}">
<a href="{{ site.url }}/docs/troubleshooting/">Troubleshooting</a>
</li>
<li class="{% if page.title == 'Sites using Jekyll' %}current{% endif %}">
<a href="{{ site.url }}/docs/sites/">Sites using Jekyll</a>
</li>
<li class="{% if page.title == 'Resources' %}current{% endif %}">
<a href="{{ site.url }}/docs/resources/">Resources</a>
</li>
<li class="{% if page.title == 'Upgrading' %}current{% endif %}">
<a href="{{ site.url }}/docs/upgrading/">Upgrading</a>
</li>
</ul>
<h4>Meta</h4> <h4>Meta</h4>
<ul> {% include docs_ul.html items='contributing history' %}
<li class="{% if page.title == 'Contributing' %}current{% endif %}">
<a href="{{ site.url }}/docs/contributing/">Contributing</a>
</li>
<li class="{% if page.title == 'History' %}current{% endif %}">
<a href="{{ site.url }}/docs/history/">History</a>
</li>
</ul>
</aside> </aside>
</div> </div>

View File

@ -2,41 +2,22 @@
<select onchange="if (this.value) window.location.href=this.value"> <select onchange="if (this.value) window.location.href=this.value">
<option value="">Navigate the docs…</option> <option value="">Navigate the docs…</option>
<optgroup label="Getting started"> <optgroup label="Getting started">
<option value="{{ site.url }}/docs/home/">Welcome</option> {% include docs_option.html items='home quickstart installation usage structure configuration' %}
<option value="{{ site.url }}/docs/quickstart/">Quick-start guide</option>
<option value="{{ site.url }}/docs/installation/">Installation</option>
<option value="{{ site.url }}/docs/usage/">Basic Usage</option>
<option value="{{ site.url }}/docs/structure/">Directory structure</option>
<option value="{{ site.url }}/docs/configuration/">Configuration</option>
</optgroup> </optgroup>
<optgroup label="Your Content"> <optgroup label="Your Content">
<option value="{{ site.url }}/docs/frontmatter/">Front-matter</option> {% include docs_option.html items='frontmatter posts drafts pages variables migrations' %}
<option value="{{ site.url }}/docs/posts/">Writing posts</option>
<option value="{{ site.url }}/docs/drafts/">Working with drafts</option>
<option value="{{ site.url }}/docs/pages/">Creating pages</option>
<option value="{{ site.url }}/docs/variables/">Variables</option>
<option value="{{ site.url }}/docs/migrations/">Blog migrations</option>
</optgroup> </optgroup>
<optgroup label="Customization"> <optgroup label="Customization">
<option value="{{ site.url }}/docs/templates/">Templates</option> {% include docs_option.html items='templates permalinks pagination plugins extras' %}
<option value="{{ site.url }}/docs/permalinks/">Permalinks</option>
<option value="{{ site.url }}/docs/pagination/">Pagination</option>
<option value="{{ site.url }}/docs/plugins/">Plugins</option>
<option value="{{ site.url }}/docs/extras/">Extras</option>
</optgroup> </optgroup>
<optgroup label="Deployment"> <optgroup label="Deployment">
<option value="{{ site.url }}/docs/github-pages/">GitHub Pages</option> {% include docs_option.html items='github-pages deployment-methods' %}
<option value="{{ site.url }}/docs/deployment-methods/">Other methods</option>
</optgroup> </optgroup>
<optgroup label="Miscellaneous"> <optgroup label="Miscellaneous">
<option value="{{ site.url }}/docs/troubleshooting/">Troubleshooting</option> {% include docs_option.html items='troubleshooting sites resources upgrading' %}
<option value="{{ site.url }}/docs/sites/">Sites using Jekyll</option>
<option value="{{ site.url }}/docs/resources/">Resources</option>
<option value="{{ site.url }}/docs/upgrading/">Upgrading</option>
</optgroup> </optgroup>
<optgroup label="Meta"> <optgroup label="Meta">
<option value="{{ site.url }}/docs/contributing/">Contributing</option> {% include docs_option.html items='contributing history' %}
<option value="{{ site.url }}/docs/history/">History</option>
</optgroup> </optgroup>
</select> </select>
</div> </div>

View File

@ -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 %}
<option value="{{ site.url }}{{ p.url }}">{{ p.title }}</option>
{% endif %}
{% endfor %}
{% endfor %}

View File

@ -0,0 +1,20 @@
{% assign items = include.items | split: ' ' %}
<ul>
{% 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 %}
<li class="{{ c }}"><a href="{{ site.url }}{{ p.url }}">{{ p.title }}</a></li>
{% endif %}
{% endfor %}
{% endfor %}
</ul>