Configure Wiki2Go

Home

Configuring Wiki2Go

If you've created a new wiki with the following command

sudo Wiki2Go_make_site.rb -s http://wiki2go.nayima.be -u www-data 
  -g siteadmins -w Wiki2Go -t readwrite -d /var/sites/wiki2go 
you get a file similar to the one below in < installation dir>/site/scripts/CgiOptions.rb

This is where you can configure most of the working of Wiki2Go. The comments explain what the different options do

#!/usr/bin/env ruby

# Select which version of Wiki2Go is used. require 'rubygems' require_gem "Wiki2Go","~>1.17.0" require "Wiki2Go/ReadWriteWikiConfig"

class CgiOptions < Wiki2Go::ReadWriteWikiConfig

def initialize super('/var/sites/wiki2go')

# Set this to false when the site works ok. @debug = true # Choose whether to have a single wiki or several subwikis @multi_wiki = true

# Email of administrator of the site. Will be obfuscated on the page. @site_admin = 'wiki2go@nayima.be'

# System user of the web server @user = 'www-data' # System group who has access to the files @group = 'siteadmins'

# Set your Amazon affiliate ID for ISBN links @amazon_affiliate = 'agilesystems-21'

# Set to true if you want to allow the execution of Ruby code inside pages # SECURITY WARNING: this code can do absolutely anything, only allow for trusted users @allow_dynamic_pages = false

# The base path of the wiki if it is a subsite of a larger site @subsite = ''

# Uncomment if you want to add 'dot' graphics to your page (see http://www.graphviz.org) # The path must point to the 'dot' executable # enable_dot_graphics('/usr/bin/')

# Uncomment if you want to add Ruby syntax highlighting # You also need to include the html/ruby.css stylesheet in your template # enable_syntax_highlighting

# If you want to enable CVS commit/update support for your wiki, uncomment the following line # and fill in the CVSROOT and the name of the module as parameters # The CVS repository and module must exist and the webserver user must have commit access to it # You need to have the rscm 0.3 gem installed # use_repository('MYCVSROOT','mymodule')

end

end