config.yaml 3.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081
  1. test: false
  2. base_url: http://jpmouse.free.fr
  3. images_per_page: 9
  4. # A list of file extensions that nanoc will consider to be textual rather than
  5. # binary. If an item with an extension not in this list is found, the file
  6. # will be considered as binary.
  7. text_extensions: [ 'coffee', 'css', 'erb', 'haml', 'handlebars', 'hb', 'htm', 'html', 'js', 'less', 'markdown', 'md', 'ms', 'mustache', 'php', 'rb', 'sass', 'scss', 'txt', 'xhtml', 'xml' ]
  8. # The path to the directory where all generated files will be written to. This
  9. # can be an absolute path starting with a slash, but it can also be path
  10. # relative to the site directory.
  11. output_dir: output
  12. # A list of index filenames, i.e. names of files that will be served by a web
  13. # server when a directory is requested. Usually, index files are named
  14. # “index.html”, but depending on the web server, this may be something else,
  15. # such as “default.htm”. This list is used by nanoc to generate pretty URLs.
  16. index_filenames: [ 'index.html' ]
  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. prune:
  22. # Whether to automatically remove files not managed by nanoc from the output
  23. # directory. For safety reasons, this is turned off by default.
  24. auto_prune: false
  25. # Which files and directories you want to exclude from pruning. If you version
  26. # your output directory, you should probably exclude VCS directories such as
  27. # .git, .svn etc.
  28. exclude: [ '.git', '.hg', '.svn', 'CVS' ]
  29. # The data sources where nanoc loads its data from. This is an array of
  30. # hashes; each array element represents a single data source. By default,
  31. # there is only a single data source that reads data from the “content/” and
  32. # “layout/” directories in the site directory.
  33. data_sources:
  34. -
  35. # The type is the identifier of the data source. By default, this will be
  36. # `filesystem_unified`.
  37. type: filesystem_unified
  38. # The path where items should be mounted (comparable to mount points in
  39. # Unix-like systems). This is “/” by default, meaning that items will have
  40. # “/” prefixed to their identifiers. If the items root were “/en/”
  41. # instead, an item at content/about.html would have an identifier of
  42. # “/en/about/” instead of just “/about/”.
  43. items_root: /
  44. # The path where layouts should be mounted. The layouts root behaves the
  45. # same as the items root, but applies to layouts rather than items.
  46. layouts_root: /
  47. # Whether to allow periods in identifiers. When turned off, everything
  48. # past the first period is considered to be the extension, and when
  49. # turned on, only the characters past the last period are considered to
  50. # be the extension. For example, a file named “content/about.html.erb”
  51. # will have the identifier “/about/” when turned off, but when turned on
  52. # it will become “/about.html/” instead.
  53. allow_periods_in_identifiers: false
  54. # Configuration for the “watch” command, which watches a site for changes and
  55. # recompiles if necessary.
  56. watcher:
  57. # A list of directories to watch for changes. When editing this, make sure
  58. # that the “output/” and “tmp/” directories are _not_ included in this list,
  59. # because recompiling the site will cause these directories to change, which
  60. # will cause the site to be recompiled, which will cause these directories
  61. # to change, which will cause the site to be recompiled again, and so on.
  62. dirs_to_watch: [ 'content', 'layouts', 'lib' ]
  63. # A list of single files to watch for changes. As mentioned above, don’t put
  64. # any files from the “output/” or “tmp/” directories in here.
  65. files_to_watch: [ 'config.yaml', 'Rules' ]
  66. # When to send notifications (using Growl or notify-send).
  67. notify_on_compilation_success: true
  68. notify_on_compilation_failure: true