1 Version 3.0 of ikiwiki makes some significant configuration changes, which
2 you will need to deal with when upgrading from ikiwiki 2.x.
6 # moving settings from Preferences page
8 The admin preferences page used to have settings for allowed attachments,
9 locked pages, and banned users. These three settings have moved to the
12 allowed_attachments => "",
16 If you have not yet upgraded to ikiwiki 3.0, you can look at the admin
17 preferences page to see if any of these values is shown there, and copy
18 them into the setup file.
20 ## setup file format change
22 The layout of the setup file changed in a significant way in version 2.60
23 of ikiwiki. If you have not changed yours to the new format, now would be a
24 good time to do so. Some new features, like the [[plugins/websetup]] interface,
25 need the new format setup file.
27 You can convert old setup files into the new format by running
28 `ikiwiki-transition setupformat your.setup`
32 In 3.0, the syntax ikiwiki uses for [[directives|ikiwiki/directive]] has
33 changed, requiring that the directive start with a bang:
37 If you would like to keep the old syntax, it is still supported, add the
38 following to your setup file:
40 prefix_directives => 0,
42 But it's not hard to convert your wiki to the new syntax. You can use
43 [[ikiwiki-transition]]. It will convert preprocessor directives in all
44 files given on the command line. To convert an entire wiki:
46 find wikidir/ -type f -name '*.mdwn' -print0 | xargs -0 ikiwiki-transition prefix_directives
48 Be sure to modify the find to list all pages in the wiki if you're using
49 other markup than markdown. You will probably want to commit the changes
54 If your wiki uses the [[aggregate|plugins/aggregate]] plugin, it will start
55 to aggregate feeds to special "internal" pages.
57 If you don't want this change, you can add the following to your setup
60 aggregateinternal => 0,
62 Otherwise, follow this procedure to upgrade a wiki using the aggregate plugin:
64 1. Update all [[PageSpecs|ikiwiki/PageSpec]] that refer to the aggregated
65 pages -- such as those in inlines. Put "internal()" around globs
66 in those PageSpecs. For example, if the PageSpec was `foo/*`, it should
67 be changed to `internal(foo/*)`. This has to be done because internal
68 pages are not matched by regular globs.
69 2. Use [[ikiwiki-transition]] to rename all existing aggregated `.html`
70 files in the srcdir. The command to run is
71 `ikiwiki-transition aggregateinternal your.setup`,
72 3. Refresh the wiki. (`ikiwiki -setup your.setup -refresh`)