joey
b187641376
* Patch from Recai to allow selection of page type when creating a new page.
...
Default page type is inherited from the link clicked on to create the new
page.
2006-07-26 21:23:06 +00:00
joey
06ffcb399d
<paravoid> you're right
...
<paravoid> I can't explain it
<paravoid> but it's definitely fixing it
<paravoid> I triple-checked...
2006-07-11 22:06:57 +00:00
joey
a9508d6ba8
remove redundant call
2006-07-11 21:32:16 +00:00
joey
ed8d6bcf23
* Consolidated all decode_utf8 in FormBuilder's fields to make the code more
...
readable and avoid future mistakes. The patch seems to work and for the
first time I have a UTF-8 username ;-) (Faidon)
* Use form->field consistently, not form->param.
2006-07-11 21:20:14 +00:00
joey
afedd60d79
* Match 'web commit from' in SVN and git, these are web commits too.
...
(Faidon)
2006-07-11 20:55:14 +00:00
joey
f389b08a0c
* Fix from Faidon for a XML parser issue that breaks utf-8 for
...
RecentChanges. Avoid using XML::SAX::PurePerl, which is buggy in this
area, and also way slow.
2006-07-11 20:18:11 +00:00
joey
50c21744ca
* Display CGI processing errors if present.
2006-07-10 21:13:41 +00:00
joey
1bdfa4d8b5
* Support a w3mmode, which lets w3m run ikiwiki using its local CGI
...
support, to edit pages etc without a web server.
2006-07-07 21:00:48 +00:00
joey
0f22d66c96
* Add wikitext markup plugin, which supports ".wiki" pages written in the
...
original wiki syntax, CamelCase links and all.
2006-07-07 18:28:27 +00:00
joey
89697f2c7a
* Patch from Recai to fix utf8 issues in git backend.
2006-07-05 20:54:10 +00:00
joey
56378a14e2
Encode:: cleanup from Recai
2006-07-05 18:20:25 +00:00
joey
97e6f39dd0
* Patch from Faidon to use svn --limit when possible for recentchanges,
...
speeds up recentchanges a lot for wikis with more history.
2006-07-05 17:40:07 +00:00
joey
01fc6c0a4e
* Improve display of parentlinks and page title of toplevel index page.
2006-07-04 20:04:33 +00:00
joey
87a1d3ff8f
* Encode & in diffurl in examples, to conform to pedantic rules.
...
* Speed up RecentChanges by another 40% or so with some memoization.
2006-07-04 16:18:18 +00:00
joey
e059c9eff9
* Make RecentChanges use a table and some CSS, should be much more readable.
...
No code changes involved.
* Encode & in diffurl in examples, to conform to pedantic rules.
2006-07-04 06:07:32 +00:00
joey
d3f032c4d0
<paravoid> cosmetic and minor, but it makes the output far more readable,
...
imho
2006-07-04 04:43:33 +00:00
joey
ebc6120f99
* Work around very innefficient behavior in File::Spec::abs2rel. Result
...
is a savings of 2 pointless fork/execs per link calculation, which
results in ~25% speedup of ikiwiki building its own doc wiki, and
about 35% speedup displaying RecentChanges!
2006-07-04 03:42:19 +00:00
joey
f877845353
remove leading dot from default_pageext
...
fix preview to not assume it's the default page type, and instead get the
type from the page
2006-07-04 01:29:45 +00:00
joey
7b87549558
* Don't sent pings if the wiki is being rebuilt.
2006-07-04 01:02:04 +00:00
joey
349ff86006
* Make ikiwiki --setup --refresh rebuild wrappers, so wrapper rebuild
...
will be automatically done on all upgrades.
2006-07-04 00:28:59 +00:00
joey
66ce94c464
add htmlise
2006-07-03 22:42:11 +00:00
joey
8d4c474f3b
* Add a html plugin, which can be used to write wikis in raw html,
...
if you'd ever want to do such a thing. Slightly tricky, since ikiwiki
defaults to not processing .html files, since w/o this plugin they would
be copied unsanitised. With this plugin, it will process, and html
sanitise, them like any other page type.
2006-07-03 22:31:20 +00:00
joey
af029154d6
use "use open" pragma to avoid manually needing to specify utf8 everywhere
...
and also to set default stdio mode
change filetype to return undef, not "unknown"
2006-07-03 22:14:52 +00:00
joey
6551c1e560
* Support htmlize plugins and make mdwn one such plugin, which is enabled by
...
default (of course!). Based on a patch by Faidon Liambotis.
2006-07-03 22:08:04 +00:00
joey
7ea8df24b3
* Introduce add_plugins and disable_plugins config options in setup files.
...
This allows adding or removing plugins w/o overriding the whole list of
default plugins, which makes it easier to upgrade when new default plugins
are added.
2006-07-03 21:29:56 +00:00
joey
929b9de9c2
Encode is used in nearly all code paths so stop loading it on demand
2006-07-03 20:18:16 +00:00
joey
fa9517e5bb
* Support pages with utf8 filenames. Patch by Faidon Liambotis.
2006-07-03 20:12:27 +00:00
joey
e71ca35ac6
remove the blog_list sub, only used one place and simplifies code to do
...
away with it
2006-07-02 19:44:42 +00:00
joey
d1d212203c
* Centralised all calls to HTML::Template and force all the templates
...
to be read as utf8.
2006-07-02 19:06:08 +00:00
joey
0e1bfa69a0
new approach for forcing utf8 -- use a HTML::Template filter
2006-07-02 18:16:44 +00:00
joey
b74ddf69ce
perl bugnum and refix
2006-07-02 17:46:23 +00:00
joey
1452b3adf3
so make sure to let perl know it should be handled as utf8. Also,
...
* Improve layout of edit page so formatting help link is always visible w/o
getting in the way of the preview.
2006-07-02 17:44:43 +00:00
joey
ac7b1c32b1
* POSIX::strftime doesn't know about encodings and doesn't return a utf8
...
flagged string even if the locale causes it to generate utf8 output,
so make sure to let perl know it should be handled as utf8. Also,
the optimised version used for standard time formats won't work if the
user has changed locale, so drop it. Thanks, Faidon Liambotis.
* Fix re-encoding of the comments field to utf8 if a commit fails
due to a conflict. Thanks, Faidon Liambotis.
* Let svn know that commits have utf8 commit messages. Thanks, Faidon
Liambotis.
* Add insane double encode/decode to utf8 around call to markdown.
This works around a truely strange bug, which is apparently a bug in
perl, which I lack space to describe here (see t/crazy-badass-perl-bug.t)
2006-07-02 04:02:08 +00:00
joey
0bb605baf8
* Parse svn log as xml for improved utf8 and security. Note that this makes
...
ikiwiki depend on XML::Simple. Patch by Faidon Liambotis.
2006-07-02 02:18:31 +00:00
joey
25b35c3c74
* Honor LC_CTIME when formatting a time for display. Thanks, Faidon
...
Liambotis.
2006-07-02 00:32:12 +00:00
joey
14ca7095cb
don't die fatally here
2006-06-27 01:14:46 +00:00
joey
b0e7e2e123
* Support pinging services such as Technorati using XML-RPC to notify them
...
about changes to rss feeds.
2006-06-27 01:13:03 +00:00
joey
5fa878cc75
* Fix orphans plugin to not count a link to a nonexistant page as a reason
...
for a page not being an orphan.
2006-06-25 07:21:53 +00:00
joey
77c7582f72
* Patch from Recai to fix git recentchanges code to work with git 1.4 which
...
changed some output.
* Copyright update.
2006-06-19 03:33:23 +00:00
joey
4d460d1f82
- Add 'use encoding "utf8"' to CGI.pm to avoid warnings about wide
...
character in print.
2006-06-17 02:15:00 +00:00
joey
f5eb3df1fa
* More utf-8 fixes from Recai, partly to things I broke above:
...
- The serious problem is that writefile() saves the content in undecoded
format in CGI, hence all (non-ascii) chars are corrupted permanently.
- Comment field in edit page is not decoded and all the non-ascii chars in
this field are corrupted as the result. We should decode it as we do it
for the content.
2006-06-17 01:44:19 +00:00
joey
0cd2cfb039
* Put back the encode_utf8 in the input to markdown; it's really not utf-8
...
safe.
2006-06-16 04:42:06 +00:00
joey
202c4d522f
* -CSD does not affect modules, so readfile() was not using the utf-8 input
...
layer, which led to lots of problems; make it force read files as utf-8.
Closes : #373203
* writefile() likewise needs to use the utf8 output layer.
* Remove the -CSD from ikiwiki's hashbang since it's useless to have it
there.
* Revert some of the decode_utf8 changes in CGI.pm that seem unnecessary
given the readfile fix.
* Add utf-8 testcases for readfile and htmlize.
2006-06-15 06:37:33 +00:00
joey
070f255d6c
* YA utf-8 patch from Recai, this time to fix previewing a page so that
...
the text in the input box is re-encoded back to utf-8.
2006-06-15 03:44:27 +00:00
joey
2ce6d15b8b
* Patch from Recai Oktaş to improve utf-8 support, it should now use proper
...
utf-8 for edit and other fields, and for recentchanges. There may still
be utf-8 issues with the preferences page though.
2006-06-11 18:51:49 +00:00
joey
5774373046
* Fix absolute url munging in rss generation to support https, ftp, etc urls
...
not just http urls.
2006-06-08 06:07:45 +00:00
joey
57d10171e3
another from Recai
2006-06-04 13:14:13 +00:00
joey
00d761ab53
misc fixes from Recai
2006-06-03 18:03:41 +00:00
joey
5454186939
meta headers are not sanitised; prevent html leaking into them
2006-06-02 06:11:22 +00:00
joey
30afedcfe2
* Add support for using git instead of subversion as the RCS backend,
...
tremendous thanks to Recai Oktaş for this.
* Doc updates for git.
2006-06-02 05:32:20 +00:00