lib/nanoc3/base/site.rb in nanoc3-3.1.0b2 vs lib/nanoc3/base/site.rb in nanoc3-3.1.0rc1

- old
+ new

@@ -37,18 +37,24 @@ # The default configuration for a site. A site's configuration overrides # these options: when a {Nanoc3::Site} is created with a configuration # that lacks some options, the default value will be taken from # `DEFAULT_CONFIG`. DEFAULT_CONFIG = { - :text_extensions => %w( css erb haml htm html js less markdown md php rb sass txt ), - :output_dir => 'output', - :data_sources => [ {} ], - :index_filenames => [ 'index.html' ] + :text_extensions => %w( css erb haml htm html js less markdown md php rb sass txt ), + :output_dir => 'output', + :data_sources => [ {} ], + :index_filenames => [ 'index.html' ], + :enable_output_diff => false } # The site configuration. The configuration has the following keys: # + # * `text_extensions` ({Array<String>}) - A list of file extensions that + # will cause nanoc to threat the file as textual instead of binary. When + # the data source finds a content file with an extension that is + # included in this list, it will be marked as textual. + # # * `output_dir` ({String}) - The directory to which compiled items will # be written. This path is relative to the current working directory, # but can also be an absolute path. # # * `data_sources` ({Array<Hash>}) - A list of data sources for this site. @@ -57,9 +63,12 @@ # # * `index_filenames` ({Array<String>}) - A list of filenames that will be # stripped off full item paths to create cleaner URLs. For example, # `/about/` will be used instead of `/about/index.html`). The default # value should be okay in most cases. + # + # * `enable_output_diff` ({Boolean}) - True when diffs should be generated + # for the compiled content of this site; false otherwise. # # The list of data sources consists of hashes with the following keys: # # * `:type` ({String}) - The type of data source, i.e. its identifier. #