-
Notifications
You must be signed in to change notification settings - Fork 5
Wiki Settings
trans edited this page Jul 21, 2012
·
4 revisions
Each Gollum wiki can store individual settings in the _settings.yml
file at the root of the repository. This file can store the following options:
-
url
- The URL where the website will be accessible. -
title
- The title of the site. This is displayed at the top of each page. -
author
- Name and optionally email address of the webmaster. -
date_format
- Format of dates. Default is%B %d, %Y
. -
exclude
- List of files and file globs to exclude from site. -
include
- List of files and file globs to explicitly include, that would otherwise be excluded. Files with names stating with_
or.
are automatically excluded for instance.
NOTE: Deployment functionality is not fully in place as of v0.6.0, so these don't actually do anything yet, but it wouldn't hurt to set them up for when they do.
-
site_origin
- If deployment is handled via another git repository, give it's remote address. -
site_branch
- If the repository uses a special branch, give it here. For example,gh-pages
. -
site_stage
- Directory to stage files for deployment, if staging is required. For example this might be used if deployment is handled via a zip archive. The path is relative to the wiki's directory unless an absolute path is used. -
site_sync
- Smeagol usesrsync
to copy files to the stage directory. The default command isrsync -arv --del --exclude .git* '%s/' '%s/'
, where the first%s
is the source and the second%s
is the stage path.
Note that the site settings can be given as a sub-mapping, e.g.
site:
stage: ../site
origin: [email protected]:rubyworks/smeagol.git
branch: gh-pages
-
index
- Which page to use as theindex.html
page. Default isHome
. -
rss
- Offer an automatic RSS feed at/rss.xml
for post pages. -
source_url
- The URL for the source code project that the wiki represents. -
ribbon
- Enables the GitHub ribbon. This field takes two space-separated values:color
andposition
. Validcolor
values are:red
,green
,darkblue
,orange
,gray
andwhite
. Validposition
values are:left
andright
. If theposition
is omitted then it defaults toright
. If a non-validcolor
value is specified the it is assumed to be a relative or absolute URL. Note that thesource_url
is required in order to show the ribbon. -
tracking_id
- Your Google Analytics tracking id. The Google Analytics JavaScript tracking code will be inserted into your page automatically. -
menu
- An array of menu items. Each menu item should have atitle
and anhref
property set. Thehref
can specify another page in the wiki or a URL outside of the wiki.
This is an example of the settings.yml
file used for Smeagol:
title: Smeagol
source_url: http://github.com/benbjohnson/smeagol
ribbon: red right
tracking_id: UA-1234567-8
menu:
- title: Home
href: /
- title: Command Line
href: /Command-Line-Interface
- title: Settings
href: /Settings
- title: Templates
href: /Templates
- title: Misc
href: /Miscellaneous