lib/nanoc/cli/commands/create-site.rb in nanoc-4.0.0b4 vs lib/nanoc/cli/commands/create-site.rb in nanoc-4.0.0rc1
- old
+ new
@@ -22,22 +22,22 @@
string_pattern_type: glob
# A list of file extensions that nanoc will consider to be textual rather than
# binary. If an item with an extension not in this list is found, the file
# will be considered as binary.
-text_extensions: #{array_to_yaml(Nanoc::Int::Site::DEFAULT_CONFIG[:text_extensions])}
+text_extensions: #{array_to_yaml(Nanoc::Int::Configuration::DEFAULT_CONFIG[:text_extensions])}
# The path to the directory where all generated files will be written to. This
# can be an absolute path starting with a slash, but it can also be path
# relative to the site directory.
-output_dir: #{Nanoc::Int::Site::DEFAULT_CONFIG[:output_dir]}
+output_dir: #{Nanoc::Int::Configuration::DEFAULT_CONFIG[:output_dir]}
# A list of index filenames, i.e. names of files that will be served by a web
# server when a directory is requested. Usually, index files are named
# “index.html”, but depending on the web server, this may be something else,
# such as “default.htm”. This list is used by nanoc to generate pretty URLs.
-index_filenames: #{array_to_yaml(Nanoc::Int::Site::DEFAULT_CONFIG[:index_filenames])}
+index_filenames: #{array_to_yaml(Nanoc::Int::Configuration::DEFAULT_CONFIG[:index_filenames])}
# Whether or not to generate a diff of the compiled content when compiling a
# site. The diff will contain the differences between the compiled content
# before and after the last site compilation.
enable_output_diff: false
@@ -57,22 +57,22 @@
# there is only a single data source that reads data from the “content/” and
# “layout/” directories in the site directory.
data_sources:
-
# The type is the identifier of the data source.
- type: #{Nanoc::Int::Site::DEFAULT_DATA_SOURCE_CONFIG[:type]}
+ type: #{Nanoc::Int::Configuration::DEFAULT_DATA_SOURCE_CONFIG[:type]}
# The path where items should be mounted (comparable to mount points in
# Unix-like systems). This is “/” by default, meaning that items will have
# “/” prefixed to their identifiers. If the items root were “/en/”
# instead, an item at content/about.html would have an identifier of
# “/en/about/” instead of just “/about/”.
- items_root: #{Nanoc::Int::Site::DEFAULT_DATA_SOURCE_CONFIG[:items_root]}
+ items_root: #{Nanoc::Int::Configuration::DEFAULT_DATA_SOURCE_CONFIG[:items_root]}
# The path where layouts should be mounted. The layouts root behaves the
# same as the items root, but applies to layouts rather than items.
- layouts_root: #{Nanoc::Int::Site::DEFAULT_DATA_SOURCE_CONFIG[:layouts_root]}
+ layouts_root: #{Nanoc::Int::Configuration::DEFAULT_DATA_SOURCE_CONFIG[:layouts_root]}
# The encoding to use for input files. If your input files are not in
# UTF-8 (which they should be!), change this.
encoding: utf-8
@@ -264,17 +264,18 @@
<%= yield %>
</div>
<div id="sidebar">
<h2>Documentation</h2>
<ul>
- <li><a href="http://nanoc.ws/docs/">Documentation</a></li>
- <li><a href="http://nanoc.ws/docs/tutorial/">Getting Started</a></li>
+ <li><a href="http://v4.nanoc.ws/about/">About</a></li>
+ <li><a href="http://v4.nanoc.ws/doc/">Documentation</a></li>
+ <li><a href="http://v4.nanoc.ws/doc/tutorial/">Tutorial</a></li>
</ul>
<h2>Community</h2>
<ul>
- <li><a href="http://groups.google.com/group/nanoc/">Discussion Group</a></li>
- <li><a href="irc://chat.freenode.net/#nanoc">IRC Channel</a></li>
- <li><a href="http://github.com/nanoc/nanoc/wiki/">Wiki</a></li>
+ <li><a href="http://groups.google.com/group/nanoc/">Discussion group</a></li>
+ <li><a href="irc://chat.freenode.net/#nanoc">IRC channel</a></li>
+ <li><a href="http://v4.nanoc.ws/contributing/">Contributing</a></li>
</ul>
</div>
</body>
</html>
EOS