-
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 usesrsyncto copy files to the stage directory. The default command isrsync -arv --del --exclude .git* '%s/' '%s/', where the first%sis the source and the second%sis 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.htmlpage. Default isHome. -
rss- Offer an automatic RSS feed at/rss.xmlfor 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:colorandposition. Validcolorvalues are:red,green,darkblue,orange,grayandwhite. Validpositionvalues are:leftandright. If thepositionis omitted then it defaults toright. If a non-validcolorvalue is specified the it is assumed to be a relative or absolute URL. Note that thesource_urlis 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 atitleand anhrefproperty set. Thehrefcan 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