Joey Hess
17a09ef88e
pagesources might not be populated
2008-06-24 20:47:15 -04:00
Joey Hess
7fbbcc1615
only convert urls if the module is installed
2008-06-24 20:38:41 -04:00
Joey Hess
a4d693f659
formatting
2008-06-24 20:35:21 -04:00
Joey Hess
532d4b0d5f
rename to txt
2008-06-24 20:33:41 -04:00
Joey Hess
3f6d3f3be8
initial version
2008-06-24 20:33:03 -04:00
Bernd Zeimetz
4a9567595a
Disable handling of "bare" links by the creole plugin.
...
This change needs libtext-wikicreole-perl (>= 0.05-2).
Also removing custom link function, there's no need for it -
if it is not defined, the unmodified markup will be returned.
2008-06-24 16:52:23 -04:00
Bernd Zeimetz
b16c43a440
`template` option for aggregate.pm.
...
Allows to specify the template file which is used to
create the html pages.
2008-06-21 16:23:39 -04:00
Joey Hess
1b6b4da3a3
avoid creole parsing wikilinks
...
ikiwiki already does, and escaped links should not be processed by creole
after ikiwiki de-escapes them
2008-06-19 19:54:46 -04:00
Joey Hess
98095ccac4
creole: New plugin from Bernd Zeimetz. Closes : #486930
2008-06-19 19:11:18 -04:00
Joey Hess
bd7edfd9ca
textile: The Text::Textile perl module has some regexps that fail if input is flagged as utf-8, but contains invalid characters such as 0x92. To prevent it from crashing, re-encode the content before calling it, which will ensure that it's really utf-8.
2008-06-16 15:43:37 -04:00
Joey Hess
4da54999de
meta: Store "description" in pagestate for use by other plugins.
...
map: Support show=description.
2008-06-15 19:08:50 -04:00
Joey Hess
ebb2b9cbda
bugfixes for show=title
...
Can't sort by titles; the tree building logic requires that the list be
sorted by page name.
Setting linktext => $page is not the same as omitting it entirely. So some
contortions to only set linktext when the page name is not being shown.
2008-06-15 19:08:24 -04:00
Joey Hess
ce029bfe04
check that parent hash exists, to avoid creating it
2008-06-15 18:10:47 -04:00
Joey Hess
069b10cc6a
note about titles and dependencies
2008-06-15 18:09:46 -04:00
Joey Hess
78a7f6938f
style changes
...
Reindented, moved a TODO from page to code, trimmed some unnecessary
comments, and simplified the use of mkstemp.
2008-06-15 16:26:15 -04:00
Joey Hess
a7a1d00e1c
initial add
2008-06-15 16:25:18 -04:00
Joey Hess
71d984b310
map: Add a "show" parameter. "show=title" can be used to display page titles, rather than the default page name. Based on a patch from Jaldhar H. Vyas, Closes : #484510
2008-06-15 16:11:11 -04:00
Joey Hess
5807f1de04
fix two build bugs
...
* ikiwiki-mass-rebuild: Make group list comparison more robust.
* search: Work around xapian bug #486138 by only stemming locales
in a whitelist.
2008-06-13 13:05:44 -04:00
Joey Hess
ecfb14f7d1
Don't generate empty title attributes, etc, and allow setting defaults for class and id too.
2008-06-08 00:02:33 -04:00
Joey Hess
f6b47b0d1c
img: Support captions.
2008-06-07 23:45:40 -04:00
Joey Hess
3215b5a982
finishing touches on the new search plugin
...
- Add a Help link.
- If the pageterm is too long, hash it.
2008-06-04 15:24:28 -04:00
Joey Hess
a3d8f4904e
set rebuild before loading plugins
...
This fixes a recent minor reversion caused by loading plugins earlier than
the messages are printed. Some plugins might check if rebuild is set.
2008-06-04 15:22:41 -04:00
Joey Hess
ea5da19189
fix uninitialized value problem
...
This occurred when a plugin, loaded earlier, filled out a template in its
checkconfig, before recentchanges's checkconfig had run. Since such a
template won't be a recentchanges template, just test for the value being
uninitialized and skip processing.
2008-06-04 15:00:24 -04:00
Joey Hess
e4119f048c
The search interface now allows searching for a page by title ("title:foo"), as well as for pages that contain a given link ("link:bar").
2008-06-04 14:13:21 -04:00
Joey Hess
319e2c94de
it's not $title, try the other variable
2008-06-04 13:41:15 -04:00
Joey Hess
295e958da5
don't use meta title
...
Using the title obscured path info, and made search results look
inconsistent. Since nothing else uses the title like that, it didn't make
sense for search to.
2008-06-04 13:12:10 -04:00
Joey Hess
bf9829352b
have the xapian stemmer use a language based on LANG
2008-06-04 02:41:02 -04:00
Joey Hess
27376abb3c
also decode html entities in the title
2008-06-04 01:50:51 -04:00
Joey Hess
4a51e384eb
decode html entities
2008-06-04 01:34:26 -04:00
Joey Hess
9976c31aca
fix clearing index on page deletion
2008-06-04 01:28:35 -04:00
Joey Hess
1dddec0ba9
Pass a destpage parameter to the sanitize hook.
...
Because the search plugin needed it, also because it's one of the few
plugins that didn't already have it.
I also considered adding it to htmlize, but I really cannot imagine caring
what the destpage is when htmlizing. (I'll probably be poven wrong later.)
2008-06-04 01:24:23 -04:00
Joey Hess
1546b48b97
move indexing to sanitize hook
...
I think this will give better results overall.
I made %IkiWiki::preprocessing accessible and used it to avoid indexing
at unnecessary points.
2008-06-04 00:58:46 -04:00
Joey Hess
ce826411b2
more search improvements
2008-06-04 00:38:40 -04:00
Joey Hess
aefe5dd9cb
more substr fixes
2008-06-04 00:25:56 -04:00
Joey Hess
fab1333b67
Filter hooks are no longer called during the scan phase. This will prevent wikilinks added by filters from being scanned properly. But no known filter hook does that, and calling filters unncessarily during scan slowed down complex filters such as the one used to update the xapian index.
2008-06-04 00:15:15 -04:00
Joey Hess
53b188ed35
add a colon to disambiguate
...
The omega docs suggest doing this if the term may contain upper case, which
it could here.
2008-06-03 23:59:25 -04:00
Joey Hess
9c717d0873
avoid warning
...
"substr outside of string"
2008-06-03 23:58:19 -04:00
Joey Hess
7fc29119db
use "U" term
...
this seems to be the thing to use for a unique id
2008-06-03 23:56:45 -04:00
Joey Hess
3ba723d79a
don't loop forever
2008-06-03 23:55:00 -04:00
Joey Hess
6b7d90d88a
fixed most of the xapian todos
2008-06-03 23:52:56 -04:00
Joey Hess
18b0aa1f13
prettify page names, and drop the redunadant url display
2008-06-03 22:11:33 -04:00
Joey Hess
02357b0b32
fix toindex
2008-06-03 21:59:21 -04:00
Joey Hess
44fde6cbff
first pass at doing xapian indexing
...
Still some TODOs to fill in.
2008-06-03 21:14:56 -04:00
Joey Hess
8a6a5320ed
search: Converted to use xapian-omega.
...
Everything is done except for the actual indexing. I plan to do incremental
indexing as pages change.
2008-06-03 15:29:54 -04:00
Joey Hess
99e5e6dd08
inline: The optimisation in 2.41 broke nested inlines. Detect those and avoid overoptimising.
2008-05-31 15:10:23 -04:00
Joey Hess
0a35e8a352
haiku: Generate valid xhtml.
2008-05-30 19:10:58 -04:00
Joey Hess
e943812dc9
hashed password support, and empty password security fix
...
This implements the previously documented hashed password support.
While implementing that, I noticed a security hole, which this commit
also fixes..
2008-05-30 17:35:34 -04:00
Joey Hess
9d93029f01
teximg: If the log isn't written, avoid ugly error messages.
2008-05-29 19:29:40 -04:00
Joey Hess
b0a7b2f3d7
teximg: Fix logurl.
2008-05-29 19:28:46 -04:00
Joey Hess
d5d56a24bd
When calling decode_utf8 on known-problimatic content in aggregate, explicitly pass 0 (FB_DEFAULT) as the second parameter. Apparently perl 5.8 needs this to avoid crashing on malformed utf-8, despite its docs saying it is the default.
2008-05-28 15:38:04 -04:00