cybertools/wiki
helmutm 1d4363f23c work in progress: process document tree
git-svn-id: svn://svn.cy55.de/Zope3/src/cybertools/trunk@3143 fd906abe-77d9-0310-91a1-e0d9ade77398
2009-01-11 19:20:43 +00:00
..
base work in progress: process document tree 2009-01-11 19:20:43 +00:00
dcu set up basic plugin structure with utilities for configuration, rStx parsing and HTML writing 2009-01-06 19:31:29 +00:00
__init__.py new package for wiki framework 2008-06-20 16:15:33 +00:00
interfaces.py work in progress: process document tree 2009-01-11 19:20:43 +00:00
README.txt work in progress: process document tree 2009-01-11 19:20:43 +00:00
tests.py work in progress: process document tree 2009-01-11 19:20:43 +00:00

==============================
Yet Another WikiWiki Framework
==============================

  ($Id$)


An Example for an Elementary Wiki Structure
===========================================

  >>> from cybertools.wiki.base.wiki import WikiManager, Wiki

We create a wiki manager with one wiki that in turn contains a simple
start page.

  >>> manager = WikiManager()
  >>> wiki = manager.addWiki(Wiki('demo_wiki'))
  >>> startPage = wiki.createPage('start_page')

We format the content of the start page using the restructured text format.

  >>> startPage.text = '''
  ... **Welcome to the Demo Wiki**
  ... '''

The parser for restructured text and a corresponding HTML writer are the
default plugins used, so we can already render the page as HTML.

  >>> print startPage.render()
  visiting document
  visiting paragraph
  visiting strong
  visiting #text
  <p><strong>Welcome to the Demo Wiki</strong></p>