(Quick Reference)

2 Configuration - Reference Documentation

Authors: Masatoshi Hayashi

Version: 1.0-RC2

Table of Contents

2 Configuration

XWiki Plugin's Configuration

2.1 Supporeted Syntaxes

XWiki has multiple Wiki Syntaxes Support.

Supported Syntaxes

If some syntaxes other than "XWiki 2.1" are needed, add a configuration as below in BuildConfig.groovy file.

// BuildConfig.groovy
grails.xwiki.rendering.syntaxes = "mediawiki, jspwiki" // XWiki Syntax Configuration

grails.project.dependency.resolution = { // … }

SyntaxConfiguration
Confluenceconfluence
Creolecreole
DocBookdocbook
Doxiadoxia
JSPWikijspwiki
Markdownmarkdown
Plain Textplain
textex
TWikitwiki

2.2 Macros

XWiki macros is enabled in the plugin by default. To change this set the grails.xwiki.rendering.macros.enabled to true or false.

// Config.groovy
grails.xwiki.rendering.macros.enabled = false // default true
// ...

Available Macros

XWiki provides some macros officially.

If these macros are needed, add a configuration as below in BuildConfig.groovy file.

// BuildConfig.groovy
grails.xwiki.rendering.macros = "comment, box, toc, footnotes, html, id, message"

grails.project.dependency.resolution = { // … }

MacroConfiguration
Boxbox
Commentcomment
Footnotefootnotes
HTMLhtml
Idid
Info Message, Warning Message, Error Messagemessage
TOCtoc