Sha256: 2ebb72ff9179a860de027ade84981214affd0feed2e665993f50dc75bb025d31
Contents?: true
Size: 1.03 KB
Versions: 2
Compression:
Stored size: 1.03 KB
Contents
# (c) Copyright 2020 Ribose Inc. # require "jekyll" require "glossarist" module Jekyll module Geolexica # Loads Rake tasks which are provided in this gem. # # In order to load these tasks, following lines should be added to given # site's Rakefile: # # require "jekyll-geolexica" # ::Jekyll::Geolexica.load_tasks def self.load_tasks tasks_path = File.expand_path("../tasks", __dir__) Rake.add_rakelib(tasks_path) end end end # Unfortunately, Zeitwerk::Loader.for_gem doesn't work well when gem's main # namespace is compound. # Also, Jekyll::Geolexica must be defined prior passing it to #push_dir. require "zeitwerk" loader = Zeitwerk::Loader.new loader.tag = "jekyll-geolexica" loader.push_dir(File.join(__dir__, "geolexica"), namespace: Jekyll::Geolexica) loader.inflector = Zeitwerk::GemInflector.new(__FILE__) loader.setup # Jekyll-Geolexica must be loaded eagerly because Jekyll has no other way # to learn about gem's features. loader.eager_load Jekyll::Geolexica::Hooks.register_all_hooks
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
jekyll-geolexica-1.9.1 | lib/jekyll/geolexica.rb |
jekyll-geolexica-1.9.0 | lib/jekyll/geolexica.rb |