-
Notifications
You must be signed in to change notification settings - Fork 5
Wiki Settings
benbjohnson edited this page Nov 22, 2010
·
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:
-
title
- The title of the wiki. This is displayed at the top of each page. -
source_url
- The URL for the source code project that this 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