bcotton / centos / centos.org

Forked from centos/centos.org 2 years ago
Clone
e8ec7a
# A list of file extensions that nanoc will consider to be textual rather than
e8ec7a
# binary. If an item with an extension not in this list is found,  the file
e8ec7a
# will be considered as binary.
e8ec7a
text_extensions: [ 'coffee', 'css', 'adoc', 'erb', 'haml', 'handlebars', 'hb', 'htm', 'html', 'js', 'less', 'markdown', 'md', 'ms', 'mustache', 'php', 'rb', 'sass', 'scss', 'txt', 'xhtml', 'xml' ]
e8ec7a
e8ec7a
# The path to the directory where all generated files will be written to. This
e8ec7a
# can be an absolute path starting with a slash, but it can also be path
e8ec7a
# relative to the site directory.
e8ec7a
output_dir: output
e8ec7a
e8ec7a
# A list of index filenames, i.e. names of files that will be served by a web
e8ec7a
# server when a directory is requested. Usually, index files are named
e8ec7a
# “index.html”, but depending on the web server, this may be something else,
e8ec7a
# such as “default.htm”. This list is used by nanoc to generate pretty URLs.
e8ec7a
index_filenames: [ 'index.html' ]
e8ec7a
e8ec7a
# Whether or not to generate a diff of the compiled content when compiling a
e8ec7a
# site. The diff will contain the differences between the compiled content
e8ec7a
# before and after the last site compilation.
e8ec7a
enable_output_diff: true
e8ec7a
e8ec7a
prune:
e8ec7a
  # Whether to automatically remove files not managed by nanoc from the output
e8ec7a
  # directory. For safety reasons, this is turned off by default.
e8ec7a
  auto_prune: true
e8ec7a
e8ec7a
  # Which files and directories you want to exclude from pruning. If you version
e8ec7a
  # your output directory, you should probably exclude VCS directories such as
e8ec7a
  # .git, .svn etc.
e8ec7a
  exclude: [ '.git', '.hg', '.svn', 'CVS' ]
e8ec7a
e8ec7a
# The data sources where nanoc loads its data from. This is an array of
e8ec7a
# hashes; each array element represents a single data source. By default,
e8ec7a
# there is only a single data source that reads data from the “content/” and
e8ec7a
# “layout/” directories in the site directory.
e8ec7a
data_sources:
e8ec7a
  -
e8ec7a
    # The type is the identifier of the data source. By default, this will be
e8ec7a
    # `filesystem_unified`.
e8ec7a
    type: filesystem_unified
e8ec7a
fdc62c
    # Forcing utf-8 : useful when used through container (https://github.com/nanoc/nanoc/issues/237)
fdc62c
    encoding: utf-8
e8ec7a
    # The path where items should be mounted (comparable to mount points in
e8ec7a
    # Unix-like systems). This is “/” by default, meaning that items will have
e8ec7a
    # “/” prefixed to their identifiers. If the items root were “/en/”
e8ec7a
    # instead, an item at content/about.html would have an identifier of
e8ec7a
    # “/en/about/” instead of just “/about/”.
e8ec7a
    items_root: /
e8ec7a
e8ec7a
    # The path where layouts should be mounted. The layouts root behaves the
e8ec7a
    # same as the items root, but applies to layouts rather than items.
e8ec7a
    layouts_root: /
e8ec7a
  -
e8ec7a
    type:         static
e8ec7a
    items_root:   /static/
e8ec7a
e8ec7a
    # Whether to allow periods in identifiers. When turned off, everything
e8ec7a
    # past the first period is considered to be the extension, and when
e8ec7a
    # turned on, only the characters past the last period are considered to
e8ec7a
    # be the extension. For example,  a file named “content/about.html.erb”
e8ec7a
    # will have the identifier “/about/” when turned off, but when turned on
e8ec7a
    # it will become “/about.html/” instead.
e8ec7a
    allow_periods_in_identifiers: false
e8ec7a
base_url: http://www.centos.org
e8ec7a
e8ec7a
# Configuration for the “watch” command, which watches a site for changes and
e8ec7a
# recompiles if necessary.
e8ec7a
watcher:
e8ec7a
  # A list of directories to watch for changes. When editing this, make sure
e8ec7a
  # that the “output/” and “tmp/” directories are _not_ included in this list,
e8ec7a
  # because recompiling the site will cause these directories to change, which
e8ec7a
  # will cause the site to be recompiled, which will cause these directories
e8ec7a
  # to change, which will cause the site to be recompiled again, and so on.
e8ec7a
  dirs_to_watch: [ 'content', 'layouts', 'lib' ]
e8ec7a
e8ec7a
  # A list of single files to watch for changes. As mentioned above, don’t put
e8ec7a
  # any files from the “output/” or “tmp/” directories in here.
e8ec7a
  files_to_watch: [ 'nanoc.yaml', 'Rules' ]
e8ec7a
e8ec7a
  # When to send notifications (using Growl or notify-send).
e8ec7a
  notify_on_compilation_success: true
e8ec7a
  notify_on_compilation_failure: true
e8ec7a
e8ec7a
#Deployment
e8ec7a
deploy:
622393
  prod:
e8ec7a
    kind: rsync
622393
    dst: "webcontent@web.p5.centos.org:/var/www/html/websitev2"
ab7a22
    options: [ '-aP', '--delete-after', '--exclude="*.csv"', '--exclude="*.rss"' ]
40b081
  backup:
e8ec7a
    kind: rsync
40b081
    dst: "webcontent@www.lon0.centos.org:/var/www/html/websitev2"
e8ec7a
    options: [ '-aP', '--delete-after', '--exclude="*.csv"', '--exclude="*.rss"' ]