Changes between Version 11 and Version 12 of AutoWikifyPlugin
- Timestamp:
- Jul 28, 2012, 1:45:43 AM (12 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
AutoWikifyPlugin
v11 v12 11 11 == Configuration == 12 12 13 The AutoWikifyPlugin has three configurable options in TracIni, both in the `autowikify` section: 14 15 ||'''Option'''||'''Description'''|| 16 ||`minimum_length=<int>`||Override the default minimum of 3 character long page names recognised.|| 17 ||`explicitly_wikify=<name>[, <name> ...]`||Specify a list of names to explicitly wikify.|| 18 ||`exclude=<name>[, <name> ...]`||A list of names to exclude from autowikification.|| 19 20 21 If you are installing this plugin 'globally', you will need to add the following entry to the {{{components}}} section of your {{{trac-ini}}} file: 13 To install the plugin, you will need to add the following entry to the `components` section of your `trac.ini` file: 22 14 23 15 {{{ 16 #!ini 24 17 [components] 25 18 tracautowikify.* = enabled … … 27 20 }}} 28 21 29 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'): 22 The AutoWikifyPlugin has three configurable options in TracIni, both in the `autowikify` section: 23 24 || '''Option''' || '''Description''' || 25 || `minimum_length=<int>` || Override the default minimum of 3 character long page names recognised.|| 26 || `explicitly_wikify=<name>[, <name> ...]` || Specify a list of names to explicitly wikify. || 27 || `exclude=<name>[, <name> ...]` || A list of names to exclude from autowikification. || 28 29 If you want to use the configuration options mentioned above, add the following section to `trac.ini`: 30 30 31 31 {{{ 32 #!ini 32 33 [autowikify] 33 34 minimum_length=<number> 34 explicitly_wikify=< value(s)>35 exclude=< value(s)>35 explicitly_wikify=<comma-separated list of words> 36 exclude=<comma-separated list of words> 36 37 }}} 37 38 … … 45 46 46 47 47 == regex based wildcards in explicitly_wikify ==48 If like me ( [wiki: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 -48 == Regex based wildcards in explicitly_wikify == 49 If, like me, ([wiki: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 - 49 50 50 51 change 51 52 {{{ 52 pattern = r'\b(?P<autowiki>' + '|'.join([re.escape(page) for page in pages]) + r')\b' 53 #!python 54 pattern = r'\b(?P<autowiki>' + '|'.join([re.escape(page) for page in pages]) + r')\b' 53 55 }}} 54 56 to 55 57 {{{ 56 pattern = r'\b(?P<autowiki>' + '|'.join([page for page in pages]) + r')\b' 58 #!python 59 pattern = r'\b(?P<autowiki>' + '|'.join([page for page in pages]) + r')\b' 57 60 }}} 58 61