Joey Hess
0f67e7d969
editpage: New core plugin factoring out page editing to allow disabling it if desired.
2008-09-05 13:57:25 -04:00
Joey Hess
a1c7f3282d
po/Makefile: update po files when the pot file has changed. Closes : #497951
2008-09-05 12:37:29 -04:00
Joey Hess
d2679de965
For fine control over what characters are allowed, unescaped in source filenames, the wiki_file_chars setting is added. For example, set to "-[:alnum:]+/._" to disable colons from being used in source files (which can cause trouble om Windows).
2008-09-04 14:13:10 -04:00
Joey Hess
657bf7846d
table: Support header=column to make the table header be the first column of the data. (AlexandreDupas)
2008-09-02 14:57:20 -04:00
Joey Hess
b7458c48d8
filecheck: Fall back to testing for binary or plain text files if no mime type is detected.
2008-09-01 15:00:15 -04:00
Joey Hess
a82496d35a
style.css: Add missing semicolon. Closes : #497176
2008-09-01 11:25:28 -04:00
Joey Hess
75a096d056
Work around perl $_ scoping nonsense that caused breakage when loading external plugins.
2008-08-29 18:40:41 -04:00
Joey Hess
981d0474a1
Ignore failure to install files into /etc, in case install is running as non-root.
2008-08-29 15:53:46 -04:00
Joey Hess
70d8df54a5
Typo. Closes : #497003
2008-08-29 11:30:51 -04:00
Joey Hess
2a29641097
Set cookies HttpOnly.
2008-08-28 16:09:58 -04:00
Joey Hess
dfea7fa1ac
releasing version 2.62.1
2008-08-28 13:08:20 -04:00
Joey Hess
2b602e2e9f
filecheck: Fixed two bits broken in move from attachment.
2008-08-28 13:04:45 -04:00
Joey Hess
90b8535b57
releasing version 2.62
2008-08-27 15:40:42 -04:00
Joey Hess
a326ffed1f
autoindex: Avoid re-adding previously deleted (or renamed) pages.
2008-08-26 14:39:47 -04:00
Joey Hess
042a057778
color: New plugin from ptecza.
2008-08-26 13:22:34 -04:00
Joey Hess
d06096ad0d
edittemplate: Don't wipe out edits on preview.
2008-08-25 20:51:10 -04:00
Joey Hess
78e34fbdc2
filecheck: New plugin factoring out the PageSpec additions that were originally part of the attachment plugin.
2008-08-25 19:52:34 -04:00
Joey Hess
744a0edcfb
update
2008-08-25 14:21:46 -04:00
Joey Hess
4956623ee6
rename plugin
...
I don't want to be stuck renameing it later if preprocessor directives are
turned into postprocessor directives. Also, "directives" is shorter and
clearer than "preprocessors".
2008-08-25 13:38:44 -04:00
Joey Hess
4cec43e1b9
update
2008-08-25 13:30:36 -04:00
Joey Hess
69e35d3c51
willu's teximg changes
...
* teximg: The prefix is configurable, and has changed to not include the
nonstandard mhchem by default. (willu)
* teximg: dvipng is used if available to render images. Its output is
antialiased and better than dvips. If not available, the old dvips+convert
chain will be used. (willu)
* Drop suggests on texlive-science, add suggests on dvipng.
2008-08-24 15:21:51 -04:00
Joey Hess
9b10f5eab2
map: The fix for #449285 was buggy and broke display of parents in certian circumstances.
...
The use of $dummy was not sufficient, because it only stuck around for the
first element after a dummy parent, and was then lost. Instead, use a
$addparent that contains the actual dummy parent, so it can be compared
with the new item to see if we're still under that parent or have moved to
another one.
2008-08-23 13:10:49 -04:00
Joey Hess
db73f81258
ikiwiki-makerepo: Added support for monotone. (Thomas Keller)
2008-08-21 23:44:00 -04:00
Joey Hess
6cf96b5819
Fix bug in wikiname sanitisation in the setup automator.
2008-08-21 23:40:11 -04:00
Joey Hess
15ed67132e
Revert "Add missing PREFIX to a few lines of the Makefile. (Thomas Keller)"
...
This reverts commit 65c12dffec
.
Turns out we can't use PREFIX for files in /etc, because that would tend to
put them in /usr/etc, which is bad..
2008-08-21 23:12:14 -04:00
Joey Hess
888f4203f5
Avoid using hostname -f for portability to eg, OS X, use Net::Domain instead, and prompt if it fails.
2008-08-21 22:48:07 -04:00
Joey Hess
65c12dffec
Add missing PREFIX to a few lines of the Makefile. (Thomas Keller)
2008-08-21 22:25:36 -04:00
Joey Hess
dec9b4e2c9
Avoid using cp -a (again). (HenrikBrixAndersen)
2008-08-21 16:21:40 -04:00
Joey Hess
0ab3ed872b
releasing version 2.61
2008-08-14 21:11:45 -04:00
Joey Hess
5d83e7359d
graphviz: Fix breakage of the name of the preprocessor directive.
2008-08-14 14:44:30 -04:00
Joey Hess
6432d15cb4
fix a common case typo
2008-08-12 15:48:44 -04:00
Joey Hess
b39b92c0a6
releasing version 2.60
2008-08-12 14:28:13 -04:00
Joey Hess
6edd22808e
Danish update. Closes : #494632
2008-08-11 12:47:39 -04:00
Joey Hess
c98ea6a971
close bug, changelog
2008-08-07 16:21:58 -04:00
Joey Hess
581381e335
inline: Ignore parent dirs when sorting pages by title.
2008-08-07 15:47:59 -04:00
Josh Triplett
cc43a6ea70
Add Suggests on texlive and texlive-science for the teximg plugin
2008-08-06 20:58:42 -07:00
Joey Hess
6cfb5c5b59
Added a small icon to the search input box.
2008-08-06 19:34:33 -04:00
Joey Hess
adc2eb3d8c
Options set in the setup file are now immediatly loaded by ikiwiki -setup. This allows later switches to override them. Previously, setup file options overrode most command line options.
2008-08-06 01:58:04 -04:00
Joey Hess
86660e9c82
external: Fix support for hooks called in an array context.
2008-08-06 01:05:44 -04:00
Joey Hess
4c07e7362c
update
2008-08-06 00:23:22 -04:00
Joey Hess
9cb415f4a4
autoindex: Ignore internal pages, and take underlay directories into account. Also, avoid making index pages for directories that contain no files.
2008-08-06 00:04:05 -04:00
Joey Hess
ea6dc38325
add ikiwiki-transition setupformat subcommand.
...
Also fixed a bug in how aggregateinternal used IkiWiki::Setup::load,
and added checks for arguments to other subcommands.
2008-08-05 20:40:49 -04:00
Joey Hess
29ab73258f
Clarify some wording in the setup documentation that could maybe lead users to putting paths with "~/" in the setup file, which doesn't work. Closes : #493835
2008-08-05 16:57:49 -04:00
Joey Hess
0f06504422
remove description_html, add link
2008-08-03 14:36:17 -04:00
Joey Hess
d9db5f2def
Bail if both srcdir and repository are not specified.
2008-08-03 14:21:43 -04:00
Joey Hess
25c35b6e90
banned_users move to setup file, stage 1
2008-08-01 17:39:17 -04:00
Joey Hess
bb394fdae8
admin prefs move to setup file, stage 1
...
The locked pages configuration is moving to a locked_pages option in the
setup file, and the allowed attachments configuration to
allowed_attachments. The admin prefs page can still be used for these, but
that's depreacted and will only be shown if there's currently a value.
2008-08-01 16:45:04 -04:00
Joey Hess
041923a89e
Merge branch 'master' into autoconfig
...
Conflicts:
IkiWiki/Plugin/git.pm
debian/changelog
po/ikiwiki.pot
2008-07-31 19:35:37 -04:00
Joey Hess
0f312d152e
releasing version 2.56
2008-07-31 19:29:29 -04:00
Joey Hess
d266c4dc45
Revert "increase minimum git version"
...
This reverts commit 391c5c2cb5
.
2008-07-31 19:24:35 -04:00
Joey Hess
f7b8f2297c
Add test for old versions of git that don't support --cleanup=verbatim, and munge empty commit messages.
2008-07-31 19:23:54 -04:00
Joey Hess
391c5c2cb5
increase minimum git version
...
git commit --cleanup=verbatim was first introduced in git 1.5.4.
2008-07-31 19:01:02 -04:00
Joey Hess
71eb56bcac
merged
2008-07-31 18:52:30 -04:00
Joey Hess
e12627e0a4
update
2008-07-30 14:44:50 -04:00
Joey Hess
12c5786df4
Merge branch 'tova' into autoconfig
...
Conflicts:
debian/changelog
2008-07-29 15:54:45 -04:00
Joey Hess
106578f524
changelog
2008-07-29 15:54:07 -04:00
Joey Hess
1916afc603
rename
2008-07-27 16:08:44 -04:00
Joey Hess
ddef0d3170
Merge branch 'master' into autoconfig
...
Conflicts:
debian/changelog
doc/todo/color_plugin.mdwn
2008-07-27 11:43:47 -04:00
Joey Hess
ccd567948e
releasing version 2.55
2008-07-27 11:32:05 -04:00
Joey Hess
f28b57526c
setup automator
...
"ikiwiki -setup /etc/ikiwiki/simple.setup"
can be used set up a new wiki in seconds
2008-07-27 01:39:11 -04:00
Joey Hess
e1f7146041
avoid clobbering example diffurl
2008-07-27 00:54:15 -04:00
Joey Hess
bc3363beb7
ikiwiki-update-wikilist: Add -r switch to remove. Default behavior is now always to add.
2008-07-27 00:02:04 -04:00
Joey Hess
4ef96e2d99
Merge branch 'master' into autoconfig
2008-07-26 23:22:42 -04:00
Joey Hess
ecc40d1769
changelog and tweaks
2008-07-26 23:15:50 -04:00
Joey Hess
1c831b472b
changelog
2008-07-26 23:06:40 -04:00
Joey Hess
e99cc6dd9e
generate an example ikiwiki.setup as part of the build
2008-07-26 23:02:46 -04:00
Joey Hess
4f06e7402a
remove ikiwiki.setup
...
To generate your own, use ikiwiki -dumpsetup ikiwiki.setup
Update docs.
2008-07-26 22:55:39 -04:00
Joey Hess
6154dd03cb
finish with rcs plugin conversion
2008-07-26 22:28:18 -04:00
Joey Hess
c83fd4a328
wrapper setup reorg
...
Flattened the wrapper setup, as this lets it be handled better by the
setup generation code.
2008-07-26 21:00:11 -04:00
Joey Hess
4ee441c152
changelog
2008-07-26 16:23:29 -04:00
Joey Hess
b7bf566f55
attachment: Use relative paths when inserting links.
2008-07-25 19:22:29 -04:00
Joey Hess
99ec944766
bzr (mostly) done
2008-07-25 12:16:21 -04:00
Joey Hess
99b59f2d62
toggle: Fix incompatability between javascript and webkit.
2008-07-25 01:24:20 -04:00
Joey Hess
36a0d984c9
fix monotone/mercurial confusion
2008-07-24 22:03:38 -04:00
Joey Hess
58e2b2c99c
mercurial: Add support for rename, delete, and also diff. (William Uther)
2008-07-24 14:17:04 -04:00
Joey Hess
4691a2ad39
add renamepage hooks
...
Implemented for regular wikilinks, with a test suite.
2008-07-23 18:14:20 -04:00
Joey Hess
96dab37a8e
Merge branch 'master' into tova
2008-07-23 17:34:01 -04:00
Joey Hess
b95669c3c8
Rebuild pages that change their type. (Gabriel McManus)
2008-07-23 16:13:37 -04:00
Joey Hess
335a6a59e6
Merge branch 'master' into tova
2008-07-23 15:00:07 -04:00
Joey Hess
1d1767192c
attachment: Do not escape _ when determining attachment filenames.
2008-07-23 14:58:39 -04:00
Joey Hess
d76c10cba2
Split out error messages from editpage.tmpl into several separate templates.
2008-07-22 19:58:34 -04:00
Joey Hess
9776bbf853
Don't allow uploading an attachment with the same name as an existing page, to avoid confusion.
2008-07-22 17:12:20 -04:00
Joey Hess
114e20e948
typo
2008-07-22 17:03:28 -04:00
Joey Hess
cbddb5a4b8
add rcs_commit_staged and rcs_rename
...
Implemented for git and svn so far.
Note that rcs_commit_staged does assume that the rcs has the ability to
"stage" multiple changes for a later commit. Support for this varies, but
all we really care about is staging removals and renames, which, AFAIK, all
modern rcs's support.
2008-07-22 16:14:33 -04:00
Joey Hess
96c529826d
skeleton rename plugin
2008-07-21 22:30:43 -04:00
Joey Hess
9d5c9ce258
Merge branch 'master' into tova
2008-07-21 21:23:58 -04:00
Joey Hess
c2a2f71508
Add allow_symlinks_before_srcdir config setting
...
can be used to avoid a security check that is a good safe default, but
problimatic overkill in some situations.
I decided to underdocument this, because the option looks ugly, and I don't
want people randomly turning it on because it looks like a good idea. So if
you need it, you'll get an error message mentioning how to fix it.
2008-07-21 18:33:09 -04:00
Joey Hess
e630e7507e
Avoid troublesome abs_path calls in wrapper setup
...
As documented in the forum post.
2008-07-21 18:26:14 -04:00
Joey Hess
18d2403647
Merge branch 'master' into tova
...
Conflicts:
debian/changelog
2008-07-21 17:27:50 -04:00
Joey Hess
c2ffd205f3
Really fix bug with links to pages with names containing colons
...
Previous fix mised a few cases.
2008-07-21 17:27:14 -04:00
Joey Hess
09331644a2
changelog
2008-07-21 17:06:40 -04:00
Joey Hess
b1b5860b29
touchups
2008-07-21 14:03:39 -04:00
Joey Hess
c924c76bd8
basically, removal works
...
Still need to consider all the edge cases..
2008-07-21 13:50:12 -04:00
Joey Hess
c6d1ae33d2
All rcs backends need to implement rcs_remove
...
(Done for svn, git.)
2008-07-21 13:41:17 -04:00
Joey Hess
3da279ddd4
editpage: Don't show attachments link when attachments are disabled.
2008-07-21 12:15:55 -04:00
Joey Hess
4a3e16f851
prefix_directives enabled in doc wiki, all preprocessor directives converted. (Simon McVittie)
2008-07-21 11:41:32 -04:00
Joey Hess
fede380a89
releasing version 2.54
2008-07-21 11:19:01 -04:00
Joey Hess
01564d3ac2
add sparkline-php to suggests
2008-07-20 12:36:20 -04:00
Joey Hess
b557ba7c46
close bug, add changelog
2008-07-19 13:24:58 -04:00
Joey Hess
1b318dacbd
git: Fix parsing of git logs with no commit messages at all.
2008-07-17 16:53:54 -04:00
Joey Hess
ac62a47ea4
git: Put web committer name/openid/address in the git author field
...
The committer's email address is not used (because leaking email addresses
is not liked by many users). Closes : #451023
A "Web-commit" trailer is added, to allow telling the difference between
web commits and direct commits.
2008-07-17 16:17:15 -04:00
Joey Hess
584f3e3061
Add a postscan hook.
...
* Add a postscan hook.
* search: Use postscan hook, avoid updating index when previewing.
2008-07-17 16:17:15 -04:00
Joey Hess
df3a8b183c
smiley escaping fixes
...
Smileys need to be double-escaped to work, since the smiley plugin runs as
a sanitize hook, and markdown helpfully removes one level of escapes first.
There were some bugs in the smiley handling code that made escaped smileys
still be expanded. After unescaping a smiley, it needed to move pos forward
past it or the next pass would expand it.
Also, once the m//g got to the end, it seemed to loop back through and make
one more pass (a difference in perl 5.10's regexp exngine? I observed that
pos was undefined when this happened, so added a `last unless defined pos`.
2008-07-17 12:34:38 -04:00
Joey Hess
dc1cbf2c8c
merged intrigeri's parentlinks plugin, close todo
2008-07-16 17:49:24 -04:00
Joey Hess
67d8f7f209
changelog
2008-07-16 17:45:38 -04:00
Joey Hess
76b078d587
changelog
2008-07-14 21:12:03 -04:00
Joey Hess
9957c7fd5d
Cut the size of the binary package in half by excluding pages for bugs and todo items from the html shipped in it.
2008-07-13 15:46:20 -04:00
Joey Hess
edb59cd5b9
Error handling improvement for preprocess hooks. It's now safe to call error() from such hooks; it will cause a nicely formatted error message to be inserted into the page.
2008-07-13 14:41:40 -04:00
Joey Hess
2bd4dea7f0
changelog
2008-07-13 13:59:36 -04:00
Joey Hess
71fba7791f
add perlmagick to build deps
...
needed since the doc wiki is using an [[img]]
2008-07-12 20:20:26 -04:00
Joey Hess
208ccbed0e
changelog
2008-07-12 12:43:02 -04:00
Joey Hess
6255c88e89
fixed
2008-07-12 12:04:10 -04:00
Joey Hess
d101269bde
Move yesno function out of inline and into IkiWiki core, not exported.
2008-07-12 12:01:22 -04:00
Joey Hess
85a5ff82c6
credit smcv
2008-07-12 11:42:22 -04:00
Joey Hess
ca30d95a78
rename uuid to guid
2008-07-12 10:59:45 -04:00
Joey Hess
c522fffe09
document uuid
2008-07-12 10:53:57 -04:00
Joey Hess
a0f596b6ed
Change deb dependencies to list Text::Markdown before markdown, since the former, while slower, has a much better html parser that avoids numerous bugs.
2008-07-12 10:40:31 -04:00
Joey Hess
3879c56e71
Fixes creation of pages when clicking on WikiLinks starting with "/".
2008-07-10 15:36:18 -04:00
Joey Hess
dcab5e2e48
template: Add support for a BASENAME variable.
2008-07-10 15:25:42 -04:00
Josh Triplett
b2a708b90e
debian/changelog: fix typo in old entry
2008-07-09 23:51:32 -07:00
Josh Triplett
1aab048e81
ikiwiki-transition: Fix command-line processing so the prefix_directives transition works again.
2008-07-09 23:42:34 -07:00
Joey Hess
fb1aaacd90
fix changelog
2008-07-09 22:40:05 -04:00
Joey Hess
4e02dead14
Make it possible to load setup files w/o running them. Code needing to do so can call IkiWiki::Setup::load, and the values will be loaded into %IkiWiki::Setup::setup.
2008-07-09 22:39:26 -04:00
Joey Hess
06709cdf31
improve error message if virus checker fails w/o output
2008-07-09 16:53:03 -04:00
Joey Hess
2449c596af
otl: Support utf-8 files. (Recai Oktaş)
2008-07-08 20:52:30 -04:00
Joey Hess
e0577bc944
not yet released
2008-07-08 18:44:56 -04:00
Joey Hess
3e8abb8b53
response
2008-07-08 18:35:48 -04:00
Joey Hess
ad02f69836
attachment: Support perl 5.8's buggy version of CGI.pm.
...
This is truely horribly disgusting. CGI::tmpFileName, in current perls, is
an undocumented function (which should be a clue..) that takes the original
filename of an uploaded attachment, and returns the name of the tempfile
that CGI has stored it in.
In old perls, though, CGI::tmpFileName does not take a filename. It takes
a key from the object's {'.tmpfiles'} hash. This key is something
crazy like '*Fh::fh00001group' -- apparently the stringification of a
filehandle object.
Just to add to the fun, tmpFileName doesn't take the key, it expects a
refernce to the key. Argh?!
But the fun doesn't stop there, because in perl 5.8, CGI.pm is also broken
in two other ways. The upload() method is supposed to return a filehandle
to the temp file. It doesn't. The param() method is supposed to return
a filehandle to the temp file, that stringifies to the original filename.
It returns just the original filename, no filehandle.
Combine all these bugs, and you end up with this disgusting commit. Since
I have no way to get the filehandle, I *need* to get the tempfile name.
If I had the filehandle, I could probably pass it into tmpFileName, and
it might strigify to the right key name. But I don't, so the only way to
determine the key is to grub through the .tmpfiles hash ourselves.
And finally, one the temp file name is discovered, a filehandle can finally
be obtained by (re)opening it.
I recommend that this commit be reverted when perl 5.8 is a mercifully
faded memory.
I'm really, really, really glad I'm actually being paid for working on
this right now!
2008-07-08 18:10:53 -04:00
Joey Hess
fbd9865232
Include ikiwiki.setup in examples in the debian package.
2008-07-08 17:08:00 -04:00
Joey Hess
71f10579c0
attachment: Support old versions of CGI.pm that lack an upload method.
2008-07-08 10:42:58 -04:00
Joey Hess
e25c3a0a7c
Fix a bug with links to pages whose names contained colons.
...
So the problem is that ikiwiki would generate a relative link like
href="colon:problem", which web browsers treat as being in the "colon:"
uri scheme.
The best fix seems to be to make url beautification fix this, by slapping
a "./" in front.
2008-07-08 10:03:55 -04:00
Joey Hess
f156308aef
attachment: Fix an uninitialised value warning when editing a page that currently has no attachments.
2008-07-08 09:40:46 -04:00
Joey Hess
43e0691a50
search: generate configuration files once only when rebuilding (Gabriel McManus)
2008-07-07 01:55:06 -04:00
Joey Hess
d1a42616c5
releasing version 2.52
2008-07-06 19:24:09 -04:00
Joey Hess
2f3a279f68
add virus checking to attachments plugin
2008-07-06 17:36:26 -04:00
Joey Hess
05124f9a86
editpage escaping fixes
...
* The editpage form now uses the raw page name, not the page title, in its
'page' cgi parameter. Using the title was ambiguous and made it
impossible to tell between some pages, like "foo/bar" and "foo__47__bar",
sometimes causing the wrong page to be edited.
* This change means that some edit links need to be updated.
Force a rebuild on upgrade to this version.
* Above change also allowed really fixing escaped slashes from the blogpost
form.
2008-07-06 15:52:04 -04:00
Joey Hess
c1687b1f1e
typo
2008-07-06 12:27:57 -04:00
Joey Hess
edfbd7e1aa
toggle: Add javascript to top of page, not to end. This avoids flicker since closed toggles will not be displayed as the page is loading.
2008-07-02 16:14:18 -04:00
Joey Hess
895faed642
toggle: Add support for toggles that are open by default.
...
Also fix to work in preview mode.
2008-07-02 16:02:01 -04:00
Joey Hess
2ca1e12c5f
changelog
2008-06-30 23:38:07 -04:00
Joey Hess
8e43bc0e0f
Configure CGI.pm to disable file uploads by default.
2008-06-30 20:01:10 -04:00
Joey Hess
2e42045539
releasing version 2.51
2008-06-29 14:18:33 -04:00
Joey Hess
b2eceeb7b9
improve wording
2008-06-28 23:13:42 -04:00
Joey Hess
b66f9a1981
call format hooks when generating page previews
...
* toc: Revert change in 2.45 that made it run at sanitize time. This breaks
use of toc in a sidebar.
* Call format hooks when generating page previews, thus fixing toc display
there, as well as fixing inlins to again display in page previews, since
it's started using format hooks. This also allows several other things,
like embed, that use format hooks, to work during page preview time.
* Format hooks should not rely on getting an entire html document, as they
will only get the body during page preview.
* toggle: Deal with preview mode when adding javascript.
2008-06-28 23:08:24 -04:00
Joey Hess
00503f25cd
smiley: Generate links relative to the destpage. (Fixes a reversion from 2.41.)
2008-06-28 16:58:43 -04:00
Joey Hess
f0df195049
new txt plugin, was previously contrib/plaintext
2008-06-24 20:48:45 -04:00
Joey Hess
50542d15ef
Add support for the universal edit button
...
<http://universaleditbutton.org/ >
Not forcing a rebuild on upgrade just for this.
2008-06-21 16:56:47 -04:00
Joey Hess
f552d7572f
changelog
2008-06-21 16:24:50 -04:00
Joey Hess
98095ccac4
creole: New plugin from Bernd Zeimetz. Closes : #486930
2008-06-19 19:11:18 -04:00
Joey Hess
3a204fabbb
Version the suggests of xapian-omega to a version known to be new enough to work with ikiwiki. Reportedly, version 0.9.9 is too old to work. Closes : #486592
2008-06-19 18:58:21 -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
b4caecc2ba
add hnb copyright
2008-06-15 16:28:48 -04:00
Joey Hess
8f8543389e
finish including hnb plugin
2008-06-15 16:27:08 -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
5e6a6b1086
append index.html to url generated by urlto("")
...
This special case crops up when generating the parentlink to the toplevel
index page. urlto("") had been generating a link to "./" (or "../" etc)
for that, which is fine, if the web server redirects that to the toplevel
index.html. It's less fine if there is no web server.
I actually ran into the problem first when using gopher. (Yes, yes, don't
laugh.. see upcoming tip.) But it also crops up when browsing local wiki
files.
Of course, the index.html is stripped back off if usedirs is enabled.
2008-06-15 15:04:26 -04:00
Joey Hess
00ca6f042e
releasing version 2.50
2008-06-13 15:22:56 -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
d258793c3f
a bit more about upgrades
2008-06-07 15:41:29 -04:00
Joey Hess
77edb81bee
releasing version 2.49
2008-06-07 15:26:43 -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
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
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
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
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
c1289de1ef
cve id
2008-05-31 20:16:18 -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
0353882a66
ikiwiki-mass-rebuild: Don't trust $! when setting $)
...
A better fix, just check that what $) returns is what it was asked to set,
and ignore $! entirely.
2008-05-31 14:46:16 -04:00
Joey Hess
c00890a2f0
ikiwiki-mass-rebuild: under $! before setting $) to avoid strange errno issue
...
This fixes a problem sgran saw on alioth. Apparently nss-db sets errno to
ENOENT as a side effect trying to read an optional file, but succeeds
anyway. Then, somehow, errno remains set across the library calls made by
$).
So unset it first as a workaround; there's probably a nss-db, libc, and/or
perl bug underneath.
2008-05-31 14:37:05 -04:00
Joey Hess
0a35e8a352
haiku: Generate valid xhtml.
2008-05-30 19:10:58 -04:00
Joey Hess
8d72885b47
releasing version 2.48
2008-05-30 18:21:27 -04:00
Joey Hess
1715c0399e
updated French translation
2008-05-30 18:17:50 -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
4152dca09e
documentation for use of hashed passwords
...
Everything but the actual coding to support them.
2008-05-29 15:17:19 -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
Joey Hess
6725413516
Add rel=nofollow to edit links. This may prevent some spiders from pounding on the cgi following edit links.
2008-05-28 03:09:04 -04:00
Joey Hess
6b68c6ff72
releasing version 2.47
2008-05-25 14:28:33 -04:00
Joey Hess
5efaed6de6
Avoid unsightly warning message when evaling broken pagespecs.
...
Also improve error message when a pagespec fails to parse.
2008-05-22 13:11:25 -04:00
Joey Hess
f6f25758a8
Perls older than 5.10 need to use the old method of decoding utf-8 in CGI values. Neither method will work for all versions of perl, so check version number at runtime.
2008-05-21 15:30:56 -04:00
Joey Hess
19945b5358
typo
2008-05-15 18:22:01 -04:00
Joey Hess
0438de905b
ENV can be used in the setup file to override environment variable setting, such as TZ or PATH.
2008-05-15 18:20:52 -04:00
Joey Hess
0bf5248427
git: Skip over signed-off-by and similar lines in commit messages when generating recentchanges.
2008-05-15 18:03:44 -04:00
Joey Hess
8a888a8fed
inline: Display a message if the 'pages' parameter is missing, before it just expanded to nothing.
2008-05-15 17:22:54 -04:00
Joey Hess
833610a5b4
orphans: As a special case, the toplevel index page is never considered an orphaned page.
2008-05-15 16:47:44 -04:00
Joey Hess
2c6f41e59c
If PERL5LIB is set to the libdir when building ikiwiki, calculate and hardcode a proper 'use lib' statement anyway. This fixes a gotcha, since PERL5LIB won't work once ikiwiki is running via a wrapper or as a cgi.
2008-05-14 02:42:01 -04:00
Joey Hess
fba4a198b5
mdwn: Add a multimarkdown setup file option.
2008-05-13 12:43:25 -04:00
Joey Hess
344b50d783
releasing version 2.46
2008-05-12 20:57:28 -04:00
Joey Hess
fb3d5b4800
Fixes for behavior changes in perl 5.10's CGI
...
Something has changed in CGI.pm in perl 5.10. It used to not care
if STDIN was opened using :utf8, but now it'll mis-encode utf-8 values
when used that way by ikiwiki. Now I have to binmode(STDIN) before
instantiating the CGI object.
In 57bba4dac1
, I changed from decoding
CGI::Formbuilder fields to utf-8, to decoding cgi parameters before setting
up the form object. As of perl 5.10, that approach no longer has any effect
(reason unknown). To get correctly encoded values in FormBuilder forms,
they must once again be decoded after the form is set up.
As noted in 57bba4da
, this can cause one set of problems for
formbuilder_setup hooks if decode_form_utf8 is called before the hooks, and
a different set if it's called after. To avoid both sets of problems, call
it both before and after. (Only remaining problem is the sheer ugliness and
inefficiency of that..)
I think that these changes will also work with older perl versions, but I
haven't checked.
Also, in the case of the poll plugin, the cgi parameter needs to be
explcitly decoded before it is used to handle utf-8 values. (This may have
always been broken, not sure if it's related to perl 5.10 or not.)
2008-05-12 20:44:22 -04:00
Joey Hess
f867b6b9b6
add suggests for s3 perl module
2008-05-12 17:12:40 -04:00
Joey Hess
0850cde5a6
implemented pruning, s3 support now complete-ish
2008-05-07 23:51:25 -04:00
Joey Hess
ec866f8370
Optimised file statting code when scanning for modified pages; cut the number of system calls in half. (Still room for improvement.)
2008-05-07 14:11:56 -04:00
Joey Hess
b144831e46
pinger/pingee now tested and working
2008-05-06 19:06:53 -04:00
Joey Hess
880d098dab
template change documentation
2008-05-06 14:33:03 -04:00
Joey Hess
64f9dfee32
typo
2008-05-05 20:44:18 -04:00