wiki:AutoWikifyPlugin

Version 9 (modified by Ryan J Ollos, 12 years ago) (diff)

Added page outline and maintainer.

Automatically creates links for all known Wiki pages

Notice: This plugin is unmaintained and available for adoption.

Description

Automatically create links for all known Wiki pages, even those that are not in CamelCase.

For example, with this plugin enabled, the bare word plugin would be linked thus plugin.

Configuration

The AutoWikifyPlugin has three configurable options in TracIni, both in the autowikify section:

OptionDescription
minimum_length=<int>Override the default minimum of 3 character long page names recognised.
explicitly_wikify=<name>[, <name> ...]Specify a list of names to explicitly wikify.
exclude=<name>[, <name> ...]A list of names to exclude from autowikification.

If you are installing this plugin 'globally', you will need to add the following entry to the components section of your trac-ini file:

[components]
tracautowikify.* = enabled
...

If you want to use the configuration options mentioned above, add the following section to that same file (NOTE: Use 'autowikify' for this section, not 'tracautowikify'):

[autowikify]
minimum_length=<number>
explicitly_wikify=<value(s)>
exclude=<value(s)>

Bugs/Feature Requests

Existing bugs and feature requests for AutoWikifyPlugin are here.

If you have any issues, create a new ticket.

regex based wildcards in explicitly_wikify

If like me ( SvenDowideit ) you want to link to an external wiki (TWiki) and need a large set of non-CamelCase words (in this case our bug tracking system (of the style of Bugs.Item1234) the you can modify autowikify.py to remove the escaping of regex strings -

change

        pattern = r'\b(?P<autowiki>' + '|'.join([re.escape(page) for page in pages]) + r')\b'

to

        pattern = r'\b(?P<autowiki>' + '|'.join([page for page in pages]) + r')\b'

Download

Download the zipped source from [download:autowikifyplugin here].

Source

You can check out AutoWikifyPlugin from here using Subversion, or browse the source with Trac.

Recent Changes

16766 by rjollos on 2017-08-26 03:01:45
TracAutoWikify 0.2: Run autopep8 on codebase
15264 by rjollos on 2016-02-11 04:22:34
Remove unnecessary svn:mime-type on py files

svn:mime-type was set to "plain" for many files.

14821 by rjollos on 2015-07-20 04:40:00
0.2: Require Trac >= 0.11.
(more)

Author/Contributors

Author: athomas
Maintainer: none
Contributors: