# This is a YAML formatted configuration file. See http://www.yaml.org/ for
# details.
#

### SITE DETAILS #############################################################
# Generic site information.
#

# site_title: This is the title for your site.
site_title: "Contentment Sample Site"

# site_logo: This is the URL that is used for your site logo.
site_logo: "/content/themes/images/default/logo.png"

# site_url: This is the central page of your site and is generally used as the
# URL reached when clicking on the site masthead in a typical theme.
site_url: "/"

# site_slogan: This is the your site's slogan/motto/mission/etc.
site_slogan: "Keeping your content happy since 2005."

# site_footer: Copyright and stuff like that can go here.
site_footer: "Steep prices and trees!"

### THEMES ###################################################################
# Default theme
#

# theme_default: Name of the theme to use by default
theme_default: 'default'

# master_default: Name of the master template to use by default
master_default: 'main'

# master_index_default: Name of the mater index template to use by default
master_index_default: 'toc-heir'

### FILE HANDLING ############################################################
# General file and path handling.
#

# temp_dir: This is the name of the directory we will tell Mason to store it's
# temporary data files.
temp_dir: "/tmp/mason/data"

# vfs: This is the Virtual File System configuration. See the documentation for
# Contentment::VFS and File::System (and the various File::System::* modules)
# for more information.
vfs:
 - 'Layered'
 - [ 'Real', root, '/path/to/site' ]
 - [ 'Real', root, '/path/to/master' ]

# base: All incomplete URIs in the system should start with /$base to be
# absolute (relative to the server)
base:

# mason_files: This is a regular expression. Any file matching this expression
# will be loaded as a Mason component. Anything else will be treated as a
# regular file (not directly given to Mason for parsing).
mason_files: !perl/regexp:
 REGEXP: '\.(?:mhtml|mason)$'

# non_indexed_files: this is a regexp matching all the files that shouldn't be
# included in typical indexes.
non_indexed_files: !perl/regexp:
  REGEXP: '(?i:^\.svn$|^CVS$|^(?:auto|d)handler$|\.sw.$|^\#|~$|\.jpg$|\.gif$\.bmp$|\.png$|\.o$|^a.out$|\.exe$|\.xls$|^bin$)'

# filetype_plugins: this is a list of modules that are used to check a file's
# type based upon it's file name or contents and then return properties about
# a given file of that type.
filetype_plugins:
 - 'Contentment::FileType::Mason'
 - 'Contentment::FileType::HTML'
 - 'Contentment::FileType::POD'
 - 'Contentment::FileType::Other'

### LOGGING #################################################################
# Generic log settings.
#

# log4perl_conf: This is the name of the file used to initialize Log::Log4perl,
# which is used for logging by Contentment.
log4perl_conf: "/path/to/log4perl.conf"

### DATABASE #################################################################
# Generic database settings.
#

# Database settings
#  * dbi_dsn: This is the datasource URI used to identify the database
#  * dbi_user: This is the user to connect to the database as
#  * dbi_pass: This is the user's password
#  * dbi_opt: These are any additional options to pass on to the system.
dbi_dsn:  "dbi:mysql:mydb"
dbi_user: "dbuser"
dbi_pass: "secret"
dbi_opt:
 RaiseError: 1
 LongReadLen: 65536

# sql_type: some components use SQLFairy to perform automatic generation SQL
# code to create tables they require. This tells them which SQL::Translator
# producer to use.
sql_type: MySQL

### SECURITY #################################################################
# Generic security settings.
#

# security_module: user and group information may be stored within various
# security mdoules (possibly user defined). This option chooses the module to
# use for storing and fetching these users and groups. (See
# Contentment::Security for details.) The default should suffice unless you know
# you need something different.
security_module: 'Contentment::Security::DBI'

### POD FILETYPES ############################################################
# These settings are specific to Contentment::FileType::POD.
#

# pod_bases: this is used by Contentment::Transform::Pod2Html to determine where
# to look for Pod documents within the VFS.
pod_bases:
 - '/'

# pod_fallback: this is used by Contentment::Transform:Pod2Html to determine
# where to send the user in the case of Pod documents that can't be found in the
# VFS.
pod_fallback: 'http://search.cpan.org/perldoc?'
