Backend: Upgrade To Jekyll 1.3.0 & Remove Workarounds

* Require in Makefile that everyone use bundle to remove inconsistencies

* Require in Gemfile that everyone use Jekyll 1.3.*

* Require in Gemfile that everyone use Ruby 2.0.0 (already used by
  Travis and most developers)

* Remove workaround _plugin/svg.rb which showed SVG files in `jekyll
  serve` (fixed in Jekyll 1.0.0)

* Remove inconsistent file path workarounds in _plugins/autocrossref.rb
  and _plugins/inline-template.rb
This commit is contained in:
David A. Harding 2015-04-12 08:14:32 -04:00
parent a6d5b863bf
commit ca7b97134d
No known key found for this signature in database
GPG key ID: 4B29C30FF29EC4B7
6 changed files with 11 additions and 28 deletions

View file

@ -33,12 +33,10 @@ require 'yaml'
def render(context)
output = super
## Workaround for inconsistent relative directory
path = File.expand_path(File.dirname(__FILE__)) + "/.."
## Load terms from file
site = context.registers[:site].config
if !site.has_key?("crossref")
site['crossref'] = YAML.load_file(path + "/_autocrossref.yaml")
site['crossref'] = YAML.load_file("_autocrossref.yaml")
end
## Sort terms by reverse length, so longest matches get linked