summaryrefslogtreecommitdiff
path: root/IkiWiki/Plugin
AgeCommit message (Collapse)Author
2011-01-22autoindex: stop tracking deletions, use generic autofile tracking insteadSimon McVittie
- Migrate the set of deletions to the {autofile} set, since it has more or less the same effect. This affects the "deleted" case in the test. - If a page has just been deleted, add it as an autofile anyway: by the time gen_autofile is called, it'll be in the list of deleted files, so it'll just be added to {autofile}. This affects the "gone" case in the test. - Behaviour change: we don't forget that a page with no reason to be re-created was deleted. This affects the 'expunged' and 'reinstated' cases in the test.
2011-01-22autoindex: use add_autofileSimon McVittie
This does cause a minor regression: index pages are now committed individually rather than being a single commit per rebuild. This also means the autoindex regression test needs to trigger the autofile generation pass.
2011-01-22rename: Fix crash when renaming a page that is linked to by a page in an ↵Joey Hess
underlay. Skip fixing links in such pages. The user will get a list of pages that still link to the old page.
2011-01-22comments: Fix XSS security hole due to missing validation of page name.Joey Hess
Values have to be checked against wiki_file_regexp, not just file_pruned. Audited the rest of the code base for similar problems, found none.
2011-01-22fix uninitilized value warning on bad page nameJoey Hess
2011-01-07Put newly aggregated pages in the transient underlaySimon McVittie
2011-01-07Only unlink excess recentchanges from srcdir if not in transientdirSimon McVittie
2011-01-07Put recent changes in the transient underlaySimon McVittie
2011-01-07tag: default to tag_autocreate_commit=1 as intendedSimon McVittie
2011-01-07tag: optionally write autocreated tags to the transient underlaySimon McVittie
For the moment, have the tag test keep the old behaviour.
2011-01-07Add add_literal_underlay and use it for the transient underlaySimon McVittie
This means we don't need to import Cwd and use abs_path.
2011-01-07Assume obsolete transient pages have the same extension as the changed pageSimon McVittie
2011-01-07GC unused pages in the transient underlaySimon McVittie
2011-01-07Add transient plugin, which adds ~/.ikiwiki/transient as an underlaySimon McVittie
This can contain auto-generated things, like tag pages; if edited they'll automatically migrate into source code control.
2011-01-06reword feed descsJoey Hess
2011-01-06inline: pass the Atom/RSS titles to the templatesGiuseppe Bilotta
The default templates are also updated to make use of this information. The rel="alternate" attribute is also inserted, for completeness. (cherry picked from commit 618ade535e6a7967a510d9e210edaef3d37cc9bc)
2011-01-05use cgitemplate, remove misctemplateJoey Hess
2011-01-05add cgitemplateJoey Hess
cgitemplate is a modified misctemplate that takes an optional cgi object and uses it to set the baseurl, and also optionally the forcebaseurl, if a page is provided. If no cgi object is provided, it will fall back to using $config{url}. I expect this will only be needed in exceptional cases where that doesn't much matter, such as cgierror(). showform uses cgitemplate, so there is no more need for showform_preview.
2011-01-05better handling of relative permalinksJoey Hess
This way, do=goto will go to the page relative to the current location, while the permalinks in feeds will be absolute (unless an url is not configured at all).
2011-01-05factored out an urlabs from aggregate and cgiJoey Hess
2011-01-05Fix permalinks to recentchanges items and comments, broken by last release.Joey Hess
permalinks always need to be full urls
2011-01-05remove old unused baseurl parameterJoey Hess
This was I think a relic from when BASEURL was used in more templates than use it now.
2011-01-05Fix base url when previewing. Was broken by urlto changes in last release.Joey Hess
Added a showform_preview that is like showform, but sets forcebaseurl to point to the page being previewed.
2011-01-05unescape tag namesGiuseppe Bilotta
Since tag names are now retrieved from the file names, we must revert the escaping process that santizes the file names. Solve by adding a `pagetitle()` call at the end of the tagname() (cherry picked from commit 0ee0612b1ab11d76eb3790c8db7a2ba992c54f6b)
2011-01-04fix patch to not strip a leading "." unless it's part of a pathJoey Hess
For correctness only, since a tag named ".foo" is very unlikely.
2011-01-04fix patch to not expose config setting as a regexpJoey Hess
2011-01-04tag name sanitationGiuseppe Bilotta
The use of typed links for tags and some of the consequent changes introduced some unwanted functionality variations in the tag system. Two problems in particular could be observed, when compared to the use of tags in older versions of IkiWiki: * tags in feeds (both rss and atom) would use the file path as their name (e.g. you would have <category term="tags/sometag" /> in an atom item for a page tagged sometag with a tagbase of tags), whereas they appeared pure before * tags containing a slash character would appear without the slash character but be used with the slash character in other circumstances (effect visible by tagging a page with a name such as "with/slash") Both of these issues are fixed by introducing a tagname() function that takes a tag link and effectively reverses (as well as possible) the effects of taglink(). A possible alternative route would have been the reintroduction of the global %tags hash, but the new approach as the (arguable) benefit of introducing a small layer of sanitation for tag names.
2011-01-02remove second parameter to include_javascriptJoey Hess
function used to take a second parameter to control absoluteness, no longer does
2010-12-29git: Fix bug involving attempting to web revert a commit that included ↵Joey Hess
changes to attachments.
2010-12-29bugfixJoey Hess
2010-12-29Add a second parameter to the rcs_diff hook, and avoid bloating memory ↵Joey Hess
reading in enormous commits.
2010-12-29Update highlight plugin for highlight api.David Bremner
Note that in particular calling initTheme with and empty file does not work anymore. use of initLanguage was replaced by loadLanguage, which seems to work in both places. I tried to make it a bit more robust against missing a highlight package. There are lots of warnings, but it no longer crashes.
2010-12-28monotone.pm: while we're still only checking the major and minorThomas Keller
part of the version number of the monotone binary, we do not want to give false alarm on patch or development versions
2010-12-26teximg: Use `\[` and `\]` instead of not recommended `$$`.Paul Menzel
It is not recommended to use the double dollar symbol `$$` to set displayed math [1][2]. [1] http://en.wikibooks.org/wiki/LaTeX/Mathematics [2] http://www.math.uiuc.edu/~hildebr/tex/displays.html Signed-off-by: Paul Menzel <paulepanter@users.sourceforge.net>
2010-12-25use CGI->url to get current absolute cgi url for openid login processJoey Hess
2010-12-25revert cgiurl change that broke openid loginJoey Hess
2010-12-25editpage, comment: Clean up title when editing or creating a page or comment.Joey Hess
Now that page.tmpl is used for cgi, the parentlinks are able to be displayed even when creating or editing a page. So it's redundant to include the path to the page in the title, remove it.
2010-12-25inline: Force an absolute page location when the inline postform is used.Joey Hess
There seems no need to allow selecting a location when creating a page this way; the user should always want it to appear in the inline whose form they submitted.
2010-12-25indentJoey Hess
2010-12-25fix commentJoey Hess
2010-12-22po: do not override homepage title when it was overridden.intrigeri
2010-12-20po plugin: update injected urlto signature.intrigeri
The lack of $from will probably hurt setups using po_link_to = current, but at least we can fix the blocker bug that prevents any wiki using the po plugin to build.
2010-12-05inline: base feed names on the included page nameGiuseppe Bilotta
Use the included page name rather than the including page name. This allows us to allow feeds in nested inlines without duplicating feeds with the same content under different (and stupid) names.
2010-12-01meta: Fix calling of htmlscrubber to pass the page parameter. The change of ↵Joey Hess
the htmlscrubber to look at page rather than destpage caused htmlscrubber_skip to not work for meta directives.
2010-11-29use one-parameter form of urltoJoey Hess
2010-11-29Merge remote branch 'smcv/ready/localurl'Joey Hess
2010-11-29git: Avoid adding files when committing, so as not to implicitly add files ↵Joey Hess
like recentchanges files that are not normally checked in, when fixing links after rename.
2010-11-29rename: Fix to pass named parameters to rcs_commitJoey Hess
2010-11-29git: Fix temp file location.Joey Hess
2010-11-23pinger: avoid pinging our own local path, tooSimon McVittie