Module: Jekyll::WebAwesome
- Defined in:
- lib/jekyll/webawesome.rb,
lib/jekyll/webawesome/plugin.rb,
lib/jekyll/webawesome/version.rb,
lib/jekyll/webawesome/code_block_transformer.rb
Overview
Main module for Jekyll WebAwesome plugin
Defined Under Namespace
Modules: CodeBlockTransformer Classes: Configuration, Error, Plugin
Constant Summary collapse
- VERSION =
'0.7.1'
Class Attribute Summary collapse
-
.configuration ⇒ Object
Returns the value of attribute configuration.
Class Method Summary collapse
- .configure {|configuration| ... } ⇒ Object
-
.sync_to_markawesome ⇒ Object
Sync Jekyll WebAwesome configuration to Markawesome.
Class Attribute Details
.configuration ⇒ Object
Returns the value of attribute configuration.
15 16 17 |
# File 'lib/jekyll/webawesome.rb', line 15 def configuration @configuration end |
Class Method Details
.configure {|configuration| ... } ⇒ Object
17 18 19 20 21 22 23 |
# File 'lib/jekyll/webawesome.rb', line 17 def configure self.configuration ||= Configuration.new yield(configuration) if block_given? # Sync configuration to Markawesome sync_to_markawesome configuration end |
.sync_to_markawesome ⇒ Object
Sync Jekyll WebAwesome configuration to Markawesome
26 27 28 29 30 31 32 33 |
# File 'lib/jekyll/webawesome.rb', line 26 def sync_to_markawesome return unless configuration Markawesome.configure do |config| config.callout_icons = configuration.callout_icons if configuration.callout_icons config.custom_components = configuration.custom_components if configuration.custom_components end end |