Module: Jekyll
- Defined in:
- lib/jekyll/url.rb,
lib/monad.rb,
lib/jekyll.rb,
lib/jekyll/page.rb,
lib/jekyll/post.rb,
lib/jekyll/site.rb,
lib/jekyll/draft.rb,
lib/jekyll/errors.rb,
lib/jekyll/layout.rb,
lib/jekyll/plugin.rb,
lib/jekyll/cleaner.rb,
lib/jekyll/command.rb,
lib/jekyll/excerpt.rb,
lib/jekyll/filters.rb,
lib/jekyll/converter.rb,
lib/jekyll/generator.rb,
lib/jekyll/stevenson.rb,
lib/jekyll/tags/gist.rb,
lib/jekyll/deprecator.rb,
lib/jekyll/convertible.rb,
lib/jekyll/static_file.rb,
lib/jekyll/commands/new.rb,
lib/jekyll/tags/include.rb,
lib/jekyll/configuration.rb,
lib/jekyll/related_posts.rb,
lib/jekyll/tags/post_url.rb,
lib/jekyll/commands/build.rb,
lib/jekyll/commands/serve.rb,
lib/jekyll/tags/highlight.rb,
lib/jekyll/commands/doctor.rb,
lib/jekyll/converters/textile.rb,
lib/jekyll/converters/identity.rb,
lib/jekyll/converters/markdown.rb,
lib/jekyll/drivers/json_driver.rb,
lib/jekyll/drivers/yaml_driver.rb,
lib/jekyll/generators/pagination.rb,
lib/jekyll/converters/markdown/maruku_parser.rb,
lib/jekyll/converters/markdown/kramdown_parser.rb,
lib/jekyll/converters/markdown/rdiscount_parser.rb,
lib/jekyll/converters/markdown/redcarpet_parser.rb
Overview
Convertible provides methods for converting a pagelike item from a certain type of markup into actual content
Requires
self.site -> Jekyll::Site
self.content
self.content=
self.data=
self.ext=
self.output=
self.name
Defined Under Namespace
Modules: Commands, Converters, Convertible, Drivers, Filters, Generators, Tags Classes: Command, Configuration, Converter, Deprecator, Draft, Excerpt, FatalException, Generator, GistTag, Layout, Page, Pager, Plugin, Post, RelatedPosts, Site, StaticFile, Stevenson, URL
Constant Summary collapse
- VERSION =
'1.2.1'
Class Method Summary collapse
-
.configuration(override) ⇒ Object
Public: Generate a Jekyll configuration Hash by merging the default options with anything in _config.yml, and adding the given options on top.
- .logger ⇒ Object
-
.set_timezone(timezone) ⇒ Object
Static: Set the TZ environment variable to use the timezone specified.
Class Method Details
.configuration(override) ⇒ Object
Public: Generate a Jekyll configuration Hash by merging the default options with anything in _config.yml, and adding the given options on top.
override - A Hash of config directives that override any options in both
the defaults and the config file. See Jekyll::Configuration::DEFAULTS for a
list of option names and their defaults.
Returns the final configuration Hash.
75 76 77 78 79 80 81 82 83 84 85 |
# File 'lib/monad.rb', line 75 def self.configuration(override) config = Configuration[Configuration::DEFAULTS] override = Configuration[override].stringify_keys config = config.read_config_files(config.config_files(override)) # Merge DEFAULTS < _config.yml < override config = config.deep_merge(override).stringify_keys set_timezone(config['timezone']) if config['timezone'] config end |
.logger ⇒ Object
96 97 98 |
# File 'lib/monad.rb', line 96 def self.logger @logger ||= Stevenson.new end |
.set_timezone(timezone) ⇒ Object
Static: Set the TZ environment variable to use the timezone specified
timezone - the IANA Time Zone
Returns nothing
92 93 94 |
# File 'lib/monad.rb', line 92 def self.set_timezone(timezone) ENV['TZ'] = timezone end |