Commit Graph

9663 Commits (18695056917a2f34a36e5e89df7f01deff9ab640)

Author SHA1 Message Date
intrigeri f4a1732b0e Merge commit 'upstream/master' into prv/po 2009-03-09 00:32:10 +01:00
intrigeri 0978be7aff po: fixed last unaddressed item from Joey's review, please have a look
Signed-off-by: intrigeri <intrigeri@boum.org>
2009-03-09 00:30:19 +01:00
intrigeri cc5be82b8b revert exposing of %backlinks and $backlinks_calculated
This change was introduced in 85f865b5d9 and
c3af3840a2 ; it may be necessary for the meta-po
integration, but the po branch alone is supposed to work without it.

Signed-off-by: intrigeri <intrigeri@boum.org>
2009-03-09 00:16:39 +01:00
Joey Hess 10872b91af add news item for ikiwiki 3.07 2009-03-08 19:06:38 -04:00
Joey Hess 3520d55361 releasing version 3.07 2009-03-08 19:05:59 -04:00
Joey Hess dd2fa2efb9 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.
2009-03-08 18:57:47 -04:00
Joey Hess d3b4c2dbd1 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.
2009-03-08 18:49:34 -04:00
Joey Hess 1edad6dca7 fix doc, prefix directives have been default for a while 2009-03-08 17:07:12 -04:00
Joey Hess 1bf100cfde configure wmd to leave text in markdown 2009-03-08 13:11:26 -04:00
Joey Hess 311182a699 Merge branch 'master' of ssh://git.ikiwiki.info/srv/git/ikiwiki.info
Conflicts:
	doc/todo/mdwn_preview.mdwn
2009-03-08 12:50:24 -04:00
intrigeri 27e7b7ed3c po doc: po4a 0.35 has been released, eventually 2009-03-08 16:12:43 +01:00
intrigeri 5e60e13a20 details 2009-03-08 11:05:47 -04:00
intrigeri 8fed4206cb brought back checkcontent hook full-content compat.
This modification was initially done in editpage, in commit
a3726968bc, but was then lost while merging
upstream/master branch.

Signed-off-by: intrigeri <intrigeri@boum.org>
2009-03-08 16:02:10 +01:00
intrigeri f4ae4c0b09 implemented Joey's solution 2009-03-08 15:50:48 +01:00
intrigeri 1efb182d56 rename: remove duplicates that hook functions may have added to @torename
Signed-off-by: intrigeri <intrigeri@boum.org>
2009-03-08 15:47:50 +01:00
http://www.cse.unsw.edu.au/~willu/ ff0ae86945 License grant for my code. And note that I'll look at a more advanced version when I get time. 2009-03-08 10:39:07 -04:00
intrigeri 1bf21d2a37 rename: moved subpages addition to a rename hook
Signed-off-by: intrigeri <intrigeri@boum.org>
2009-03-08 12:52:49 +01:00
intrigeri 8cfe428a28 rename hook: run once per file to be renamed
... as Joey suggested on todo/need_global_renamepage_hook

This hook is applied recursively to returned additional rename
hashes, so that it handles the case where two plugins use the hook:
plugin A would see when plugin B adds a new file to be renamed.

The full set of rename hashes can no longer be changed by hook functions, that
are only allowed to return any additional rename hashes it wants to add.
Rationale: the correct behavior of the recursion would be hard, if not
impossible, to define, if already considered pages were changing on the run.

Signed-off-by: intrigeri <intrigeri@boum.org>
2009-03-08 11:44:00 +01:00
intrigeri ae474d8e14 Merge commit 'upstream/master' into prv/po
Conflicts:

	IkiWiki/Plugin/editpage.pm
	debian/control
	debian/copyright
	doc/todo/need_global_renamepage_hook.mdwn

Signed-off-by: intrigeri <intrigeri@boum.org>
2009-03-08 09:50:27 +01:00
Joey Hess 1dba400c2c bug 2009-03-07 19:30:01 -05:00
Joey Hess 45129917b2 another thought 2009-03-07 19:26:46 -05:00
Joey Hess 43ebfc342c remove patch, and more comments 2009-03-07 19:23:46 -05:00
Joey Hess 9a82ef32b9 look for wmd/wmd.js
This means that the underlay needs to have a wmd/wmd/wmd.js,
which is a trifle weird, but it isolates all the wmd stuff in a
single wmd subdirectory of the built wiki. The wmd/images creating
a toplevel images directory was particularly bad.
2009-03-07 19:23:38 -05:00
Joey Hess 4e11380c75 update, add some examples 2009-03-07 19:11:34 -05:00
Joey Hess 29d387d2ba wmd stuff 2009-03-07 18:57:06 -05:00
Joey Hess 72dd9a9a04 make wmd comment support comment editing (I think) 2009-03-07 18:54:26 -05:00
Joey Hess 7ca39f49db forgot to add wmd tag here 2009-03-07 18:52:14 -05:00
Joey Hess 329f0991ef wmd copyright? 2009-03-07 18:45:55 -05:00
Joey Hess 08e4472fc4 question 2009-03-07 17:48:17 -05:00
Joey Hess 424b4602c0 note that a wmd plugin has appeared 2009-03-07 14:42:16 -05:00
Joey Hess 904b6b3e94 point at wmd plugin 2009-03-07 14:40:49 -05:00
Joey Hess e6e7e64197 comments 2009-03-07 14:38:48 -05:00
Joey Hess 029cf94493 rebuild not needed
This plugin only affects the page edit, not the compiled wiki.
2009-03-07 14:34:31 -05:00
Joey Hess e7d2da5641 wmd plugin from willu 2009-03-07 14:33:11 -05:00
Joey Hess dc4b6b1a42 Updated French translation (Jean-Luc Coulon). Closes: #518510 2009-03-06 13:36:44 -05:00
http://www.cse.unsw.edu.au/~willu/ 8333b4bbc3 Note another issue with the basic plugin. 2009-03-06 03:47:08 -05:00
http://www.cse.unsw.edu.au/~willu/ cc194fe527 Add patch for WMD plugin. This new plugin adds live preview and text controls to ikiwiki edit pages. 2009-03-06 03:40:50 -05:00
https://launchpad.net/~jelmer de695df72f 2009-03-05 16:16:54 -05:00
Joey Hess 535f70b372 Updated German translation (Kai Wasserbäch). Closes: #518377 2009-03-05 15:44:11 -05:00
http://www.cse.unsw.edu.au/~willu/ b7495e752a Notes that the wikiwyg plugin link is broken, and more. 2009-03-04 17:30:11 -05:00
Joey Hess e6298effd1 response 2009-03-04 13:58:20 -05:00
Joey Hess 6a19dacbd7 that's wikiwyg
close as dup todo
2009-03-04 13:53:34 -05:00
Joey Hess 108ad03cc8 Merge branch 'master' of ssh://git.ikiwiki.info/srv/git/ikiwiki.info 2009-03-04 13:51:55 -05:00
http://liw.fi/ 2fde5b4a6a 2009-03-04 10:19:09 -05:00
PaulePanter 2d6bbdcf3f typo and typography 2009-03-04 05:48:18 -05:00
http://sarin.myopenid.com/ 2907bec3e6 2009-03-03 21:52:36 -05:00
Víctor Moral 89bfa1e392 updated spanish translation 2009-03-03 15:08:22 -05:00
http://electropo.mp/ b3be09766b 2009-03-02 18:39:02 -05:00
Joey Hess a5f4159717 add news item for ikiwiki 3.06 2009-03-01 15:11:40 -05:00
Joey Hess 8c26a1dd8b releasing version 3.06 2009-03-01 15:11:11 -05:00