Skip to content
Newer
Older
100644 66 lines (55 sloc) 3.13 KB
4029085 @wycats Initial commit
wycats authored Aug 27, 2011
1 # A list of file extensions that nanoc will consider to be textual rather than
2 # binary. If an item with an extension not in this list is found, the file
3 # will be considered as binary.
4 text_extensions: [ 'css', 'erb', 'haml', 'htm', 'html', 'js', 'less', 'markdown', 'md', 'php', 'rb', 'sass', 'scss', 'txt', 'xhtml', 'xml' ]
5
6 # The path to the directory where all generated files will be written to. This
7 # can be an absolute path starting with a slash, but it can also be path
8 # relative to the site directory.
9 output_dir: output
10
11 # A list of index filenames, i.e. names of files that will be served by a web
12 # server when a directory is requested. Usually, index files are named
13 # “index.hml”, but depending on the web server, this may be something else,
14 # such as “default.htm”. This list is used by nanoc to generate pretty URLs.
15 index_filenames: [ 'index.html' ]
16
17 # Whether or not to generate a diff of the compiled content when compiling a
18 # site. The diff will contain the differences between the compiled content
19 # before and after the last site compilation.
20 enable_output_diff: false
21
22 # The data sources where nanoc loads its data from. This is an array of
23 # hashes; each array element represents a single data source. By default,
24 # there is only a single data source that reads data from the “content/” and
25 # “layout/” directories in the site directory.
26 data_sources:
27 -
28 # The type is the identifier of the data source. By default, this will be
29 # `filesystem_unified`.
30 type: filesystem_unified
31
32 # The path where items should be mounted (comparable to mount points in
33 # Unix-like systems). This is “/” by default, meaning that items will have
34 # “/” prefixed to their identifiers. If the items root were “/en/”
35 # instead, an item at content/about.html would have an identifier of
36 # “/en/about/” instead of just “/about/”.
37 items_root: /
38
39 # The path where layouts should be mounted. The layouts root behaves the
40 # same as the items root, but applies to layouts rather than items.
41 layouts_root: /
42
bca2757 @ajpiano set allow_periods_in_identifiers flag to true to allow for proper com…
ajpiano authored Oct 29, 2011
43 # This flag allows for files like jquery.plugin.js or foo.bar.css to compile properly
44 config:
45 allow_periods_in_identifiers: true
40efba6 @danheberden Force encoding type for non-shells like php-exec
danheberden authored Nov 21, 2011
46 # force encoding for non-shell (php-exec, etc)
47 encoding: utf-8
bca2757 @ajpiano set allow_periods_in_identifiers flag to true to allow for proper com…
ajpiano authored Oct 29, 2011
48
4029085 @wycats Initial commit
wycats authored Aug 27, 2011
49 # Configuration for the “watch” command, which watches a site for changes and
50 # recompiles if necessary.
51 watcher:
52 # A list of directories to watch for changes. When editing this, make sure
53 # that the “output/” and “tmp/” directories are _not_ included in this list,
54 # because recompiling the site will cause these directories to change, which
55 # will cause the site to be recompiled, which will cause these directories
56 # to change, which will cause the site to be recompiled again, and so on.
57 dirs_to_watch: [ 'content', 'layouts', 'lib' ]
58
59 # A list of single files to watch for changes. As mentioned above, don’t put
60 # any files from the “output/” or “tmp/” directories in here.
61 files_to_watch: [ 'config.yaml', 'Rules' ]
62
63 # When to send notifications (using Growl or notify-send).
64 notify_on_compilation_success: true
65 notify_on_compilation_failure: true
Something went wrong with that request. Please try again.