Skip to main content

Summary

This is a version controlled wiki component for the CubicWeb framework.

It uses Mercurial as a content storage and can be edited both with your favorite editor and the web GUI.

Features

The wiki web GUI usage should be pretty straightforward. It can be used to:

  • create a page in the wiki from a yet unknown wiki’s sub-page URL

  • edit an existing page with an optional commit message

  • see a page’s history and compare versions

  • revert a page to a previous version.

ReStructured Text (ReST) formatted wikis benefit from CubicWeb’s powerful ReST directives that make it easy to query the database and display the resultset in a view (e.g. eid, rql, rql-table).

Present cube also adds a wiki directive, which can be used as in following example content:

This is a **formatted page content** with a link to
:wiki:`subdirectory/page`.

This displays a "subdirectory/page" text in the page, that links to URL
<current-page-url>/subdirectory/page, and which path in the Mercurial
repository is `<current-page-path>/subdirectory/page.rst`.

You can also specify a link text that is different from the page's URL
path. The URL path can be specified either from the wiki's root, like
:wiki:`/subdirectory/other:this one`, or relatively to the current page, like
:wiki:`current_page_sibling:this other one`.

Wiki setup

Currently, the easiest way to setup a new wiki is through the command line:

cubicweb-ctl new-vcwiki <instance-name> <wiki-name> <repo-path>

This creates a ReST formatted wiki named wiki-name from a pre-existing Mercurial repository located at repo-path on your disk in a pre-existing CubicWeb application instance named instance-name.

You will need the admin user login and password to use this.

An alternative is to use the web GUI, but it requires a few steps until now:

  1. The administrator must create a Repository entity and set its path attribute to a valid path to a Mercurial repository (which must be created beforehand).

  2. The administrator must add write permissions for the Repository, via the localperms cube (action available at the left of the screen).

  3. The administrator must perform a “Refresh repository” action, also available at the left of the screen.

  4. Create a VcWiki entity and set rst as default extension.

  5. You should be able to create your wiki homepage through the wiki homepage action on the left.

Note that the Wiki pages are available at an URL which has the following format:

<base-url>/wiki/<wiki-name>/<page-name>

Release files for cubicweb-vcwiki 0.4.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for cubicweb-vcwiki 0.4.1
File Size Uploaded
cubicweb-vcwiki-0.4.1.tar.gz 23.8 kB Details

Release files / cubicweb-vcwiki-0.4.1.tar.gz

Download URL cubicweb-vcwiki-0.4.1.tar.gz
Size 23.8 kB
Tags Source
SHA-256 checksum
How to use checksums
93b8818e5ec646a272d5999aee35170cac8914716b345b11954cad52f70197a7
BLAKE2b-256 checksum
How to use checksums
b1bd0d7aa520965beff6650c7218805fe71b3a50fdb7a1184fc8ed2f607b5453
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release history Release notifications | RSS feed

This release

0.4.1 This release

1 release file

0.4.0

1 release file

0.3.0

1 release file

0.2.0

1 release file

0.1.0

1 release file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page