]> git.vanrenterghem.biz Git - git.ikiwiki.info.git/blob - doc/tips/upgrade_to_3.0.mdwn
Untested backport to Ubuntu trusty.
[git.ikiwiki.info.git] / doc / tips / upgrade_to_3.0.mdwn
1 [[!meta date="2008-12-23 16:20:37 -0500"]]
3 Version 3.0 of ikiwiki makes some significant changes, which
4 you will need to deal with when upgrading from ikiwiki 2.x.
6 [[!toc ]]
8 ## setup file format change
10 The layout of the setup file changed in a significant way in version 2.60
11 of ikiwiki. If you have not changed yours to the new format, now would be a
12 good time to do so. Some new features, like the [[plugins/websetup]]
13 interface, need the new format setup file.
14   
15 You can convert old setup files into the new format by running
16 `ikiwiki-transition setupformat your.setup`
18 ## moving settings from Preferences page
20 The admin preferences page used to have settings for allowed attachments,
21 locked pages, and banned users. These three settings have moved to the
22 setup file, and will no longer appear on the admin preferences page once
23 your wiki is upgraded to 3.0.
25 You can move these preferences into the setup file by running
26 `ikiwiki-transition moveprefs your.setup; ikiwiki --setup your.setup --refresh --wrappers`
28 (Make sure you have converted the setup file to the new format first.)
30 ## prefix directives
32 In 3.0, the syntax ikiwiki uses for [[directives|ikiwiki/directive]] has
33 changed, requiring that the directive start with a bang: 
35         \[[!directive ...]]
37 If you would like to keep the old syntax, it is still supported, add the
38 following to your setup file:
39         
40         prefix_directives => 0,
42 To convert to the new syntax, make sure that your setup file does *not*
43 contain the above, then run `ikiwiki-transition prefix_directives your.setup`
45 (And then commit the changes it makes to pages in your srcdir.)
47 ## GlobLists
49 In 3.0, the old "GlobList" syntax for [[PageSpecs|ikiwiki/PageSpec]] is no
50 longer supported. A GlobList contains multiple terms, but does not separate
51 them with "and" or "or":
53         sandbox !*/Discussion
55 To convert this to a modern PageSpec, simply add "and" or "or" as
56 appropriate between terms:
57         
58         sandbox and !*/Discussion
60 GlobLists have been deprecated for more than two years. If your wiki dates
61 to the ikiwiki 1.0 era, you should check it for any that might have lurked
62 unnoticed in it since back then. Ikiwiki version 2.72 will print warnings
63 about any GlobLists it sees.
65 ## aggregateinternal
67 If your wiki uses the [[aggregate|plugins/aggregate]] plugin, it will start
68 to aggregate feeds to special "internal" pages.
70 If you don't want this change, you can add the following to your setup
71 file:
73         aggregateinternal => 0,
75 Otherwise, follow this procedure to upgrade a wiki using the aggregate plugin:
77 1. Update all [[PageSpecs|ikiwiki/PageSpec]] that refer to the aggregated
78    pages -- such as those in inlines. Put "internal()" around globs
79    in those PageSpecs. For example, if the PageSpec was `foo/*`, it should
80    be changed to `internal(foo/*)`. This has to be done because internal
81    pages are not matched by regular globs.
82 2. Use [[ikiwiki-transition]] to rename all existing aggregated `.html`
83    files in the srcdir. The command to run is
84    `ikiwiki-transition aggregateinternal your.setup`,
85 3. Refresh the wiki. (`ikiwiki --setup your.setup --refresh`)
87 ## embed / googlecalendar
89 The googlecalendar plugin has been deprecated for a long time, and is
90 removed in 3.0.
92 The embed plugin is also now deprecated, though not yet removed.
94 If you use either plugin to embed content from google, youtube, etc,
95 into your wiki, you should instead configure the [[plugins/htmlscrubber]]
96 to skip sanitising some pages, via the `htmlscrubber_skip` setting.
97 See [[embedding_content]] for examples.