| Commit message (Expand) | Author | Age |
* | Allow underlaydir to be overridden without messing up inclusion of other unde... | Joey Hess | 2009-05-07 |
* | ikiwiki-transition: If passed a nonexistant srcdir, or one not containing .ik... | Joey Hess | 2009-05-06 |
* | external: Fix pagespec_match and pagespec_match_list. Closes: #527281 | Joey Hess | 2009-05-06 |
* | Avoid %links accumulating duplicates. (For TOVA)•••This is sorta an optimisation, and sorta a bug fix. In one
test case I have available, it can speed a page build up from 3
minutes to 3 seconds.
The root of the problem is that $links{$page} contains arrays of
links, rather than hashes of links. And when a link is found,
it is just pushed onto the array, without checking for dups.
Now, the array is emptied before scanning a page, so there
should not be a lot of opportunity for lots of duplicate links
to pile up in it. But, in some cases, they can, and if there
are hundreds of duplicate links in the array, then scanning it
for matching links, as match_link and some other code does,
becomes much more expensive than it needs to be.
Perhaps the real right fix would be to change the data structure
to a hash. But, the list of links is never accessed like that,
you always want to iterate through it.
I also looked at deduping the list in saveindex, but that does
a lot of unnecessary work, and doesn't completly solve the problem.
So, finally, I decided to add an add_link function that handles deduping,
and make ikiwiki-transition remove the old dup links.
| Joey Hess | 2009-05-06 |
* | inline: Minor optimisation.•••When finding the pageurl, it was calling bestlink unnecessarily.
Since at this point $page contains the full name of the page that
is being inlined, there is no need to do bestlink's scan
for it.
This is only a minor optimisation, since bestlink is only called
once per displayed, inlined page.
| Joey Hess | 2009-05-05 |
* | ikiwiki-makerepo: Avoid using abs_path, as it apparently fails on nonexistant... | Joey Hess | 2009-05-05 |
* | turn python-support back on•••Should wait to upload until ikiwiki is fixed in testing.
| Joey Hess | 2009-05-04 |
* | releasing version 3.11 | Joey Hess | 2009-05-04 |
* | Avoid using python-support. Closes: #525086•••Uses new debhelper feature to turn off python-support.
The tiny python module included herein certianly doesn't
need all the python-support nonsense.
| Joey Hess | 2009-05-04 |
* | translation.mdwn: Typo fixes. Closes: #525753 | Joey Hess | 2009-04-27 |
* | Updated Danish translation from Jonas Smedegaard. Closes: #525751 | Joey Hess | 2009-04-27 |
* | pagespec_match_list added and used in most appropriate places•••* pagespec_match_list: New API function, matches pages in a list
and throws an error if the pagespec is bad.
* inline, brokenlinks, calendar, linkmap, map, orphans, pagecount,
pagestate, postsparkline: Display a handy error message if the pagespec
is erronious.
| Joey Hess | 2009-04-23 |
* | comments: Add link to comment post form to allow user to sign in if they wish... | Joey Hess | 2009-04-23 |
* | pagespec error/failure distinction and error display by inline•••* Add IkiWiki::ErrorReason objects, and modify pagespecs to return
them in cases where they fail to match due to a configuration or syntax
error.
* inline: Display a handy error message if the inline cannot display any
pages due to such an error.
This is perhaps somewhat incomplete, as other users of pagespecs do not
display the error, and will eventually need similar modifications to inline.
I should probably factor out a pagespec_match_all function and make it throw
ErrorReasons.
| Joey Hess | 2009-04-23 |
* | relativedate: Deal with clock skew.•••If the server has a clock running a bit ahead of the web browsing client,
relativedate could cause somewhat confusing displays like "3 seconds from now"
for just posted things.
As a hack, avoid displaying times in the future if they're less than a
small slip forward. I chose 30 minutes because both client and server could
be wrong in different directions, while it's still close enough that "just
now" is not horribly wrong.
| Joey Hess | 2009-04-23 |
* | websetup: If setup fails, restore old setup file. | Joey Hess | 2009-04-22 |
* | blogspam: Load RPC::XML library in checkconfig, so that an error can be print... | Joey Hess | 2009-04-22 |
* | websetup: Display stderr in browser if ikiwiki setup fails. | Joey Hess | 2009-04-22 |
* | Add python:Depends to control file. Closes: #525086 | Joey Hess | 2009-04-21 |
* | releasing version 3.10 | Joey Hess | 2009-04-18 |
* | Add a microblog template that is useful for inlining microblogging posts. | Joey Hess | 2009-04-11 |
* | inline: Add author info to archive display.•••This won't change it normally, and is useful if using archive
format to display some aggregated feed titles.
| Joey Hess | 2009-04-10 |
* | debian/control: Wrap fields. | Joey Hess | 2009-04-10 |
* | Add missing permalink support to archivepage and titlepage templates. | Joey Hess | 2009-04-10 |
* | Merge branch 'darcs'•••Conflicts:
debian/changelog
| Joey Hess | 2009-04-04 |
|\ |
|
| * | move comments to copyright and changelog | Joey Hess | 2009-04-04 |
* | | Add missing newline to Confirm Password prompt. | Joey Hess | 2009-04-04 |
|/ |
|
* | Fix git test suite to use a bare repo.•••This works around an enormous (and, in this context, enormously confusing)
message that git has begun to print when one attempts to push changes into
a non-bare repo.
As a bonus, it now tests whether ikiwiki-makerepo works.
| Joey Hess | 2009-04-04 |
* | clarify | Joey Hess | 2009-04-01 |
* | recentchanges: change to using do=goto links. | Joey Hess | 2009-04-01 |
* | Add missing suggests on libtext-textile-perl. Closes: #522039 | Joey Hess | 2009-03-31 |
* | Fix documentation of anonok_pagespec. Closes: #521793 | Joey Hess | 2009-03-30 |
* | comments: Fix anchor ids to be legal xhtml. Closes: #521339•••Well, that was a PITA.
Luckily, this doesn't break guids to comments in rss feeds,
though it does change the links.
I haven't put in a warning about needing to rebuild to get
this fix. It's probably good enough for new comments to get the
fix, without a lot of mass rebuilding.
| Joey Hess | 2009-03-26 |
* | comments: Fix too loose test for comments pages that matched normal pages wit... | Joey Hess | 2009-03-26 |
* | css: Add clear: both to inlinefooter.•••If an inlined page contains a floating element, this ensures
that the footer appears beneath it, and prevents the floating element from
possibly leaking down to the next inlined page.
| Joey Hess | 2009-03-25 |
* | Updated French translation (Jean-Luc Coulon). Closes: #521072 | Joey Hess | 2009-03-24 |
* | git, mercurial: Fix --getctime to return file creation time, not last commit ... | Joey Hess | 2009-03-20 |
* | add Sort::Naturally to suggests and use cpan link | Joey Hess | 2009-03-19 |
* | inline: Fix urls to feed when feedfile is used on an index page.•••It would be better to use urlto() here, but will_render
has not yet been called on the feed files at this point, so
it won't work. (And reorganizing so it can be is tricky.)
| Joey Hess | 2009-03-19 |
* | title_natural patch merged | Joey Hess | 2009-03-19 |
* | releasing version 3.08 | Joey Hess | 2009-03-15 |
* | Fix bug that caused weird things to appear as page types.•••The problem was introduced by the recent noextension patches.
Object autovivification caused junk to get into %htmlize,
and all keys of that showed up as page types.
| Joey Hess | 2009-03-15 |
* | git: Manually decode git output from utf-8, avoids warning messages on invali... | Joey Hess | 2009-03-09 |
* | git: Fix utf-8 encoding of author names.•••I guess what's happening here is that since the name
is passed to git via an environment variable, perl's normal
utf-8 IO layer stuff doesn't work. So we have to explicitly
decode the string from perl's internal representation into
utf-8.
| Joey Hess | 2009-03-09 |
* | releasing version 3.07 | Joey Hess | 2009-03-08 |
* | When loading a template in scan mode, let preprocess know it only needs to scan.•••This makes wikis such as zack's much faster in the scan pass.
In that pass, when a template contains an inline, there is no reason to
process the entire inline and all its pages. I'd forgotten to pass
along the flag to let preprocess() know it was in scan mode, leading to
much unncessary churning.
| Joey Hess | 2009-03-08 |
* | avoid potential infinite loop in smiley expansion•••- In 3.05, ikiwiki began expanding templates in scan mode,
for annoying, expensive, but ultimatly necessary reasons
of correctness.
- Smiley processing has a bug: It inserts a span for the smiley,
and then continues searching forward in the content for more,
starting at $end_of_smiley+1. Which means it searches for smilies
in the span too! And if it somehow finds one, we get an infinite loop
here.
- This bug can, probably, only be tickled if a htmllink to
show the smiley fails, because the smiley file doesn't exist,
or because ikiwiki doesn't know about it. In that case,
a link will be inserted to _create_ the missing page,
and that link will include the smiley inside the <a></a>.
- When a template is expanded in scan mode, and it contains
an inline, the sanitize hook is run during scan mode,
which never happened before. That causes the smiley processor
to run, before ikiwiki is, necessarily, aware that all
the smiley files exist (depending on scan order). So
it inserts creation links for them, and triggers the bug.
I've put in the simple fix of jumping forward past the inserted
span, and it does fix the problem. I will need to look in a bit
more detail into why an inline nested inside a template is
fully expanded during the scan pass -- that really shouldn't
be necessary, and it makes things much slower than they need
to be.
| Joey Hess | 2009-03-08 |
* | wmd stuff | Joey Hess | 2009-03-07 |
* | Updated French translation (Jean-Luc Coulon). Closes: #518510 | Joey Hess | 2009-03-06 |
* | Updated German translation (Kai Wasserbäch). Closes: #518377 | Joey Hess | 2009-03-05 |