summaryrefslogtreecommitdiff
path: root/IkiWiki/Plugin
AgeCommit message (Collapse)Author
2010-04-17Fix get_ctime implementation in Bazaar plugin, add get_mtime implementation.Jelmer Vernooij
2010-04-17refactor autofilesJoey Hess
Made add_autofile take a generator function, and just register the autofile, for later possible creation. The testing is moved into Render, which allows cleaning up some stuff.
2010-04-17Merge remote branch 'davrieb/autotag' into autotagJoey Hess
Conflicts: IkiWiki.pm IkiWiki/Plugin/tag.pm
2010-04-17autoindex: Switch to using %wikistate instead of abusing $pagestate{index}.Joey Hess
2010-04-16squelch warningJoey Hess
2010-04-16implement rcs_getmtime for svnJoey Hess
This is a slow implementation; it runs svn log once per file still, rather than running svn log once on the whole srcdir. I did it this way because in my experience, svn log, run on a directory, does not always list every change to files inside that directory. I don't know why, and I use svn as little as possible these days.
2010-04-16automatically run --gettime, and optimise it for gitJoey Hess
* Automatically run --gettime the first time ikiwiki is run on a given srcdir. * Optimise --gettime for git, so it's appropriatly screamingly fast. (This could be done for other backends too.) * However, --gettime for git no longer follows renames. * Use above to fix up timestamps on docwiki, as well as ensure that timestamps on basewiki files shipped in the deb are sane.
2010-04-16--gettime revampJoey Hess
* Rename --getctime to --gettime. (The old name still works for backwards compatability.) * --gettime now also looks up last modification time. * Add rcs_getmtime to plugin API; currently only implemented for git.
2010-04-15sidebar plugin optimisationsJoey Hess
The pagetemplate hook may be called multiple times, for example when pages are inlined into a page. Sidebars were being calculated each time that happened, only to be thrown away when the final pagetemplate hook was called. Avoid this unnecessary work. Remove stored sidebar content on use to save some memory.
2010-04-15calendar: Improved display of arrows.Joey Hess
2010-04-15conditional: Fix bug that forced "all" mode off by default.Joey Hess
Commit b7351daacd0d4a041a51b43d99b7bf589de54f53 introduced the bug.
2010-04-15fix sidebar directive parameter handlingJoey Hess
2010-04-15allow sidebar directive to enable use of sidebar pageJoey Hess
This way, the example blog always has a sidebar on the index page, but not the overhead of sidebars on all the other pages. And if a user wants to, they can enable global_sidebars to switch to sidebars on every page.
2010-04-15sidebar: Add global_sidebars setting.Joey Hess
2010-04-15sidebar: Now a sidebar directive can be used to override the sidebar shown ↵Joey Hess
on a page.
2010-04-15disable feeds in raw modeJoey Hess
2010-04-15typoJoey Hess
2010-04-15enhance pagestats and rework example blog front pageJoey Hess
* pagestats: Class parameter can be used to override default class for custom styling. * pagestats: Use style=list to get a list of tags, scaled by use like in a tag cloud. This is useful to put in a sidebar. * Rework example blog front page.
2010-04-15calendar: Add archive_pagespec, which is used by ikiwiki-calendar to specify ↵Joey Hess
which pages to include on the calendar archive pages. (The pagespec can still also be specified on the ikiwiki-calendar command line.)
2010-04-10po: Configuring the same language as master and slave confuses processing; ↵Joey Hess
so filter out such a misconfiguration.
2010-04-10Merge remote branch 'smcv/unescaped-meta'Joey Hess
Conflicts: IkiWiki/Plugin/meta.pm
2010-04-09po: Check that translated underlay directories exist before using them for ↵Joey Hess
master language.
2010-04-06minor style etc changesJoey Hess
2010-04-06don't force a rebuildJoey Hess
Rebuild can be needed sometimes, but not always, so undef.
2010-04-06Merge remote branch 'smcv/ready/sort-package'Joey Hess
Conflicts: debian/NEWS
2010-04-06Merge remote branch 'smcv/ready/link-types'Joey Hess
2010-04-06HTML-encode meta title, description, guid on output, but not in the pagestateSimon McVittie
This makes them consistent with the rest of the meta keys. A wiki rebuild will be needed on upgrade to this version; until the wiki is rebuilt, double-escaping will occur in the titles of pages that have not changed.
2010-04-06Only store authorsort in meta pagestate if it differs from authorSimon McVittie
2010-04-06Only store titlesort in meta pagestate if it differs from titleSimon McVittie
2010-04-05Use $a and $b for SortSpec cmp callbacksSimon McVittie
2010-04-05txt: Add a special case for robots.txt.Joey Hess
2010-04-05comments: Fix missing entity encoding in title.Joey Hess
The meta title data set by comments needs to be encoded the same way that meta encodes it. (NB The security implications of the missing encoding are small.) Note that meta's encoding of title, description, and guid data, and not other data, is probably a special case that should be removed. Instead, these values should be encoded when used. I have avoided doing so here because that would mean forcing a wiki rebuild on upgrade to have the data consitently encoded.
2010-04-04fix test suiteJoey Hess
2010-04-04more idiomatic perlJoey Hess
2010-04-04rename hash and avoid unnecessary hash refJoey Hess
Variable renamed to be a bit more self-explanatory. Probably more idiomatic perl to not use a hash ref when a hash can be used.
2010-04-04fix indentation & whitespaceJoey Hess
2010-04-04Fix bzr plugin to work with bzr 2.0.Lars Wirzenius
The output of "bzr log" seems to have changed a bit, so we change the parsing accordingly. This has not been tested with earlier versions of bzr. Several problems seemed to occur, all in the bzr_log subroutine: 1. The @infos list would contain an empty hash, which would confuse the rest of the program. 2. This was because bzr_log would push an empty anonymous hash to the list whenever it thought a new record would start. 3. However, a new record marker (now?) also happens at th end of bzr log output. 4. Now we collect the record to a hash that gets pushed to the list only if it is not empty. 5. Also, sometimes bzr log outputs "revno: 1234 [merge]", so we catch only the revision number. 6. Finally, there may be non-headers at the of the output, so we ignore those.
2010-04-04Rename sort parameter to meta title/author to sortas=barSimon McVittie
Joey pointed out that sort=x usually takes a sort order.
2010-04-04meta: generalize meta_title into meta(title); support author, updated, dateSimon McVittie
I've left meta_title in, undocumented, as a possible replacement for sort=title in IkiWiki 4.0 or something.
2010-04-04Remove tagged_is_strict option, and just behave as though it was enabledSimon McVittie
Jon was worried about the backwards-compatibility break involved in making tagged() not match non-tag links, but Joey seems less concerned about it.
2010-04-04implement typed links; add tagged_is_strict config optionSimon McVittie
2010-04-03Make sure deleted tag pages don't get recreated.David Riebenbauer
The reason to do this is basically a user interaction design decision. It is achieved by adding an entry, associated to the creating plugin, to %pagestate. To find out if files were deleted a new global hash %del_hash is %introduced.
2010-04-03Check for existence off srcfile in add_autofileDavid Riebenbauer
add_autofile has to have checks, whether to create the file, anyway, so this will make things more consistent. Correcter check for the result of verify_src_file(). Cosmetic rename of a variable $addfile to $autofile.
2010-04-03Move sort hooks to the IkiWiki::SortSpec namespaceSimon McVittie
Also rename cmpspec_translate (internal function) to sortspec_translate for consistency.
2010-04-03Split out sortnaturally into a pluginSimon McVittie
2010-04-02qualify template_fileJoey Hess
2010-04-02template: Search for templates in the templatedir, if they are not found as ↵Joey Hess
pages in the wiki.
2010-04-02htmlscrubber: Allow colons in url fragments after '?'Joey Hess
Colons are not allowed at the start of urls, because it can be interpreted as a protocol, and allowing arbitrary protocols can be unsafe (CVE-2008-0809). However, this check was too restrictive, not allowing use of eg, "video.ogv?t=0:03:00/0:04:00" to seek to a given place in a video, or "somecgi?foo=bar:baz" to pass parameters with colons. It's still not allowed to have a filename with a colon in it (ie "foo:bar.png") -- to link to such a file, a fully qualified url must be used.
2010-03-26fix the other half of the filecheck filename bugJoey Hess
2010-03-25Reimplement extensible sorting mechanisms, in the same way as pagespecsSimon McVittie