Module: Jekyll::VersionedFiles
- Defined in:
- lib/jekyll/versioned_files.rb,
lib/jekyll/versioned_files/styler.rb,
lib/jekyll/versioned_files/counter.rb,
lib/jekyll/versioned_files/version.rb,
lib/jekyll/versioned_files/frontmatter.rb,
lib/jekyll/versioned_files/filedocuments.rb,
lib/jekyll/versioned_files/filecollection.rb
Defined Under Namespace
Classes: Counter, FileCollection, FileDocuments, FrontMatter, Styler
Constant Summary collapse
- ERROR_MSG =
{ :Argument_options => "Missing `versioned_file_options` in config. Please update your _config.yml", :Argument_files => "Missing a `versioned_file_options['files']` value in config. "\ "Please update your _config.yml with a file to process." }.freeze
- COLLECTION_LABEL =
"versioned_files"- COLLECTION_METADATA =
{ "output" => false, "permalink" => "/:collection/:path/", "versioned" => true }.freeze
- FORMAT_OPTIONS =
{ "diff_ignore" => { "ignore-all-space" => false, "ignore-blank-lines" => true, "ignore-space-change" => true }, "diff_limit" => false, "output" => "markdown" }.freeze
- FRONTMATTER =
{ "permalink" => "orig_permalink", "no_change" => "no_change", "diff_del" => "diff_del", "diff_ins" => "diff_ins", "sha" => "sha", "ver" => "ver" }.freeze
- CONFIG_OPTIONS =
{ "frontmatter" => FRONTMATTER, "formatting" => FORMAT_OPTIONS }.freeze
- VERSION =
"1.0.1"
Class Attribute Summary collapse
-
.collection_dir ⇒ Object
Returns the value of attribute collection_dir.
-
.collection_label ⇒ Object
Returns the value of attribute collection_label.
-
.collection_metadata ⇒ Object
Returns the value of attribute collection_metadata.
-
.config_collection ⇒ Object
Returns the value of attribute config_collection.
-
.config_options ⇒ Object
Returns the value of attribute config_options.
-
.diff_limit ⇒ Object
Returns the value of attribute diff_limit.
-
.files ⇒ Object
Returns the value of attribute files.
-
.format_options ⇒ Object
Returns the value of attribute format_options.
-
.frontmatter ⇒ Object
Returns the value of attribute frontmatter.
Class Method Summary collapse
Class Attribute Details
.collection_dir ⇒ Object
Returns the value of attribute collection_dir.
11 12 13 |
# File 'lib/jekyll/versioned_files.rb', line 11 def collection_dir @collection_dir end |
.collection_label ⇒ Object
Returns the value of attribute collection_label.
11 12 13 |
# File 'lib/jekyll/versioned_files.rb', line 11 def collection_label @collection_label end |
.collection_metadata ⇒ Object
Returns the value of attribute collection_metadata.
11 12 13 |
# File 'lib/jekyll/versioned_files.rb', line 11 def end |
.config_collection ⇒ Object
Returns the value of attribute config_collection.
11 12 13 |
# File 'lib/jekyll/versioned_files.rb', line 11 def config_collection @config_collection end |
.config_options ⇒ Object
Returns the value of attribute config_options.
11 12 13 |
# File 'lib/jekyll/versioned_files.rb', line 11 def end |
.diff_limit ⇒ Object
Returns the value of attribute diff_limit.
11 12 13 |
# File 'lib/jekyll/versioned_files.rb', line 11 def diff_limit @diff_limit end |
.files ⇒ Object
Returns the value of attribute files.
11 12 13 |
# File 'lib/jekyll/versioned_files.rb', line 11 def files @files end |
.format_options ⇒ Object
Returns the value of attribute format_options.
11 12 13 |
# File 'lib/jekyll/versioned_files.rb', line 11 def end |
.frontmatter ⇒ Object
Returns the value of attribute frontmatter.
11 12 13 |
# File 'lib/jekyll/versioned_files.rb', line 11 def frontmatter @frontmatter end |
Class Method Details
.make_dir(dir) ⇒ Object
54 55 56 |
# File 'lib/jekyll/versioned_files.rb', line 54 def self.make_dir(dir) FileUtils.mkdir_p(dir) unless File.directory?(dir) end |
.merge!(default, new_hash) ⇒ Object
58 59 60 |
# File 'lib/jekyll/versioned_files.rb', line 58 def self.merge!(default, new_hash) Jekyll::Utils.deep_merge_hashes!(default, new_hash) end |