]> sipb.mit.edu Git - ikiwiki.git/blob - doc/news/version_2.40.mdwn
add news item for ikiwiki 2.40
[ikiwiki.git] / doc / news / version_2.40.mdwn
1 News for ikiwiki 2.40:
2
3    ikiwiki now has an new syntax for preprocessor directives, using the
4    prefix '!':
5  * [[!directive ...]]
6    This new syntax no longer relies on spaces to distinguish between
7    wikilinks and preprocessor directives.  Thus, wikilinks can use spaces
8    in their link text, and preprocessor directives without arguments (such
9    as "toc") need not use a trailing space.
10    To enable the new syntax, set prefix\_directives to true in your ikiwiki
11    config.  For backward compatibility with existing wikis,
12    prefix\_directives currently defaults to false.  In ikiwiki 3.0,
13    prefix\_directives will default to true, and wikis which have not yet
14    converted to the new syntax will need to set prefix\_directives to false
15    in their setup files.
16    To convert your wiki to the new syntax, ikiwiki provides a new script
17    ikiwiki-transition.  It will convert preprocessor directives in
18    all files given on the command line.  To convert an entire wiki:
19    find wikidir/ -type f -name '*.mdwn' -print0 | xargs -0 ikiwiki-transition prefix\_directives
20    Even with prefix\_directives disabled, ikiwiki now allows an optional '!'
21    prefix on preprocessor directives (but still requires a space).  Thus, a
22    directive which uses a '!' prefix and contains a space will work with
23    ikiwiki 2.40 and newer, regardless of the value of prefix\_directives.
24    This allows the underlay to work with all ikiwikis.
25
26 ikiwiki 2.40 released with [[toggle text="these changes"]]
27 [[toggleable text="""
28  * [ Josh Triplett ]
29    * Add new preprocessor directive syntax¸ using a '!' prefix.  Add a
30      prefix\_directives option to the setup file to turn this syntax on;
31      currently defaults to false, for backward compatibility.  Support
32      optional '!' prefix even with prefix\_directives off, and use that in
33      the underlay to support either setting of prefix\_directives.  Add NEWS
34      entry with migration information.
35  * [ Joey Hess ]
36    * Danish translation update from Jonas Smedegaard. Closes: #[465152](http://bugs.debian.org/465152)
37    * Generate XML RPC messages with the encoding set to utf-8 instead
38      of XML::RPC's default of us-ascii. Allows interoperation with
39      python's xmlrpc library, which threw invalid encoding exceptions and
40      caused the rst plugin to hang.
41    * Add the linkify and scan hooks. These hooks can be used to implement
42      custom, first-class types of wikilinks.
43    * Move standard wikilink implementation to a new link plugin, which
44      will of course be enabled by default.
45    * camelcase: Convert to use new linkify and scan hooks rather than the old
46      hack.
47    * Setting NOTAINT=1 had no effect when building ikiwiki itself, fix this.
48    * Depend on HTML::Scrubber, since the scrubber is enabled by default and
49      dies if its can't be loaded.
50    * The search plugin needs to override <base> to point to the directory
51      containing ikiwiki.cgi, but this should not change the urls to the style
52      sheets etc. Add a new forcebareurl parameter to misctemplate to allow
53      it to do that.
54    * Preview limits the page dropdown to what's selected previously
55      (as preserving the full list across preview would be tricky). Userdirs
56      were still being offered as an option there, remove them.
57    * Fix a bug where user A created a page concurrently with user B, and
58      when B previewed it would redirect B to A's new page, losing B's work.
59      Instead, don't redirect and let conflict handling resolve it.
60    * monotone: Add code to default mergerc file to run
61      \_MTN/ikiwiki-netsync-hook when a commit is merged in from the net.
62    * tla: Remove call to escapeHTML when constructing recentchanges message;
63      the html is escaped at a different level. Closes: #[466495](http://bugs.debian.org/466495)
64    * bzr, mercurial: Remove unused import of escapeHTML.
65    * Fix another preview will\_render bug. This one involved inline,
66      which forced a scan of the page to make available metadata that
67      appeared after the inline directive. Problem is that scan made it forget
68      about any other files rendered due to the page. The scan also turns out
69      to be unnecessary now, since meta persistently stores state and it's
70      always available. So it was just removed.
71    * Disable taint checking for all builds as people keep complaining about it,
72      and since all versions of perl seem to be hopelessly broken.
73    * Fix links generated by preprocessor directives when previewing.
74    * inline: When forcing urls absolute for rss feeds, skip mailto and other
75      such urls.
76    * ikiwiki-makerepo: Don't fail if the third argument ends in a slash.
77    * Allow colons in URLs after the first slash. (Adeodato Simó)"""]]