Joey Hess
9f60272831
* poll: This plugin turns out to have edited pages w/o doing any locking.
...
Oops. Convert it from a cgi to a sessioncgi hook, which will work
much better.
2008-02-03 00:26:00 -05:00
Joey Hess
80915c830a
* cgi hooks are now run before ikiwiki state is loaded.
...
* This allows locking the wiki before loading state, which avoids some
tricky locking code when saving a web edit.
2008-02-03 00:23:04 -05:00
Joey Hess
0779013683
* aggregate: Forking a child broke the one state that mattered: Forcing
...
the aggregating page to be rebuilt. Fix this.
2008-02-02 23:56:13 -05:00
Joey Hess
6a7c3d1209
* Revert preservation of input file modification times in output files,
...
since this leads to too many problems with web caching, especially with
inlined pages. Properly solving this would involve tracking every page
that contributes to a page's content and using the youngest of them all,
as well as special cases for things like the version plugin, and it's just
too complex to do.
2008-02-02 23:40:57 -05:00
Joey Hess
870adf3bbf
move openiduser function to the openid plugin
2008-01-30 02:39:17 -05:00
Joey Hess
55e16be44a
move recentchanges link enabling into a pagetemplate hook
2008-01-30 02:29:12 -05:00
Jelmer Vernooij
246e93a300
Expand file-id in diffurl in the bzr backend.
2008-01-30 02:29:28 +01:00
Joey Hess
4284719464
rename bazaar -> bzr after discussion with jelmer
2008-01-29 19:48:30 -05:00
Joey Hess
381ac0f667
commit only the changed file
2008-01-29 19:44:26 -05:00
Joey Hess
274fb90026
stylistic changes
...
Remarkably few. Also, I removed the stub for the obsolete rcs_notify function.
2008-01-29 19:36:35 -05:00
Joey Hess
cddc335b2b
Merge git://git.samba.org/jelmer/ikiwiki
2008-01-29 19:28:51 -05:00
Joey Hess
f584abec0c
really fix the baseurl problem
...
the issue is that HTML::Template doesn't expand top-level variables when inside
a loop
2008-01-29 18:19:47 -05:00
Joey Hess
9e15bd27ea
avoid temp var
2008-01-29 18:07:20 -05:00
Joey Hess
7125c7269a
don't scan internal pages
...
scan() does too much. All that is needed is to preprocess the internal page
in scan-only mode.
2008-01-29 18:06:36 -05:00
Joey Hess
3803266b8f
merged the recentchanges branch
...
misc fixes
2008-01-29 17:50:11 -05:00
Joey Hess
7a40bcab9a
add missing test to avoid uninitialised value when a page with metadata is removed
2008-01-29 17:36:25 -05:00
Joey Hess
64a8c828b8
* meta: Add pagespec functions to match against title, author, authorurl,
...
license, and copyright. This can be used to create custom RecentChanges.
* meta: To support the pagespec functions, metadata about pages has to be
retained as pagestate.
* Fix encoding bug when pagestate values contained spaces.
2008-01-29 17:16:51 -05:00
Joey Hess
bc49e284ac
make the author metadata for changes pages be the un-munged openid
2008-01-29 16:05:31 -05:00
Joey Hess
9875bc10d1
avoid redundant recentpages action on the recentchanges page itself
2008-01-29 15:53:49 -05:00
Joey Hess
8b31c53366
added configuration for recentchanges
...
I kept it to a simple global configuration, rather than using the
preprocessor directive for recentchanges, because that had chicken and egg
problems and seemed overcomplicated. This should work reasonably well,
though it would be good to add some more metadata so that more customised
recentchanges pages can be made.
2008-01-29 15:51:32 -05:00
Joey Hess
cabd5140c4
add code to delete old change pages
2008-01-29 15:22:23 -05:00
Joey Hess
47ee266163
improve support for internal pages
...
This makes it a lot quicker to deal with lots of recentchanges pages
appearing and disappearing. It avoids needing to clutter up pagespecs with
exclusions for those pages, by making normal pagespecs not match them.
2008-01-29 15:05:49 -05:00
Joey Hess
35bc35660c
use new refresh hook
2008-01-29 13:08:48 -05:00
Joey Hess
e1ce482e41
add refresh hook
2008-01-29 13:08:32 -05:00
Joey Hess
a5ad70a8dc
updates
2008-01-29 12:59:49 -05:00
Joey Hess
152f32547f
indicate that an internal page will be rendered even if skipping it
...
This is important to do because until will_render is called, ikiwiki doesn't
know that the page exists. This avoids recentchanges re-writing every change
page every run.
2008-01-29 12:39:28 -05:00
Joey Hess
598d338b11
escape wikilinks and preprocessor directives
2008-01-29 12:37:39 -05:00
Joey Hess
7a4b7b1964
update RecentChanges action to point to page
2008-01-29 12:20:17 -05:00
Joey Hess
85eb1abc61
typo
2008-01-29 04:45:54 -05:00
Joey Hess
38e79f206e
more style improvements
2008-01-29 04:44:05 -05:00
Joey Hess
21f44880cd
non-tabular recentchanges display
...
Doesn't look as good as the old table, but works as a rss feed.
2008-01-29 01:48:55 -05:00
Joey Hess
d2a3695376
some parameteraisation and generalisation
2008-01-29 01:03:15 -05:00
Joey Hess
d7fdd04b5a
* Removed support for sending commit notification mails. Along with it went
...
the svnrepo and notify settings, though both will be ignored if left in
setup files.
2008-01-29 00:36:58 -05:00
Joey Hess
2ff726e875
don't render internal-use pages, and document them
2008-01-29 00:07:55 -05:00
Joey Hess
5921b86fcc
proof of concept implementation of static recentchanges
...
Currently hardcoded to write to recentchanges/*, and the page format needs
to be rethought to be usable for aggregation, but it basically works.
2008-01-28 23:56:26 -05:00
Joey Hess
2d3dc86d07
* prettydate,ddate: Don't ignore time formats passed to displaytime
...
function.
2008-01-28 23:48:27 -05:00
Joey Hess
0d2894711c
support for internal-use page types
...
If a page type starts with an underscore, hide it from the list of page types
in the edit form, and don't allow editing pages of that type. This allows
for plugins to add page types for internal use.
2008-01-28 23:08:48 -05:00
Joey Hess
29f3082772
move userlink to IkiWiki.pm
...
I have a plugin that needs to use userlink.
2008-01-28 22:58:31 -05:00
Joey Hess
9f25e3436b
change rcs_recentchanges when to absolute, not relative, time
...
No point in using a relative time value in rcs_recentchanges. Different
consumers of the info want different things.
2008-01-28 22:57:22 -05:00
Joey Hess
ad4f7bc075
remove debug message
...
This can legitimately happen when there's a simple merge.
2008-01-28 22:47:43 -05:00
Joey Hess
0f95adbd1d
Merge branch 'master' into recentchanges
2008-01-28 21:24:15 -05:00
Joey Hess
e30b96baba
figured out how rev is used..
2008-01-28 21:23:56 -05:00
Joey Hess
3436fed081
* inline: The template can check for FIRST and LAST, which will be
...
set for the first and last inlined page. Useful for templates that build
tables and the like.
2008-01-28 21:22:04 -05:00
Joey Hess
b11ddb88e6
add an id field to the rcs_recentchanges return structure
...
There was an undocumented field named "rev", I think "id" is a better name,
and nothing uses it yet.
2008-01-28 20:34:11 -05:00
Joey Hess
161947160b
remove extraneous quoting
2008-01-28 18:01:51 -05:00
Joey Hess
84d3856512
test1
2008-01-28 17:41:02 -05:00
Joey Hess
df32ad1139
really fix comment
...
It doesn't really make sense to do notification from a post-commit hook.
2008-01-28 17:36:36 -05:00
Joey Hess
52b16186c4
update comment
...
This is not only called from post-update in all configurations. Also, the
comment was innaccurate about what the post-update hook is passed.
2008-01-28 17:33:22 -05:00
Jelmer Vernooij
d3f91f37ff
Finish bazaar backend and make the remaining test pass.
2008-01-28 07:30:37 +01:00
Jelmer Vernooij
0be7aad67d
Initial work adding support for Bazaar.
2008-01-28 06:16:56 +01:00
Josh Triplett
fafb2edaa7
aggregate.pm: Replace Unicode apostrophe with ASCII to unbreak build
...
gettext choked on a Unicode apostrophe in the aggregate plugin, which
appeared in a new error message in commit
4f872b5633
. Replace it with an ASCII
apostrophe.
2008-01-26 23:12:29 -08:00
Joey Hess
4f872b5633
* aggregate: Fork a child process to handle the aggregation. This simplifies
...
the code, since that process can change internal state as needed, and
it will automatically be cleaned up for the parent process, which proceeds
to render the changes.
2008-01-24 17:22:39 -05:00
Brian Downing
6d85ccdb6f
Add full parser for git diff-tree output
...
The -c option to git log/diff-tree produces "merged" diffs with a
different format from normal ones. However, the existing diff-tree
parser only accepted non-merged diff lines. Merged diff lines caused
the parser to get out of sync. This patch adds a full parser for diffs
with any number of parents. See the "DIFF FORMAT FOR MERGES" section in
the git-diff-tree man page for more information.
Signed-off-by: Brian Downing <bdowning@lavos.net>
2008-01-17 11:15:23 -05:00
Joey Hess
ba6b8e5e3e
* aggregate: Don't let feeds set creation times for pages in the future.
2008-01-16 02:01:00 -05:00
Patrick Winnertz
81c726982b
I've wrote a little patch for the bug in teximg (can only include fomula on
...
one page).
2008-01-09 20:04:51 -05:00
Joey Hess
141d363888
In preferences, allow the subscriptions and email fields to be cleared
2008-01-09 17:59:56 -05:00
Joey Hess
e01960e90a
not only markdown adds gunk, so remove it in the main htmlize function
2008-01-09 14:41:28 -05:00
Joey Hess
2b9ce0129b
* mdwn: When htmlizing text, if it's a single line with no newline,
...
remove the enclosing paragraph and newline markdown wraps it in.
This allows removing several hacks around this markdown behavior from
other plugins that htmlize fragements of pages.
2008-01-09 14:35:23 -05:00
Joey Hess
57ff2ecaed
* template: Remove bogus htmlize pass added in 2.16.
...
* template: Htmlize template variables, but also provide a raw version
via `<TMPL_VAR raw_variable>`.
2008-01-09 14:17:25 -05:00
Joey Hess
adb1bc8761
don't process data metadata in scan, as it's expensive and the metadata should not be needed so early
2008-01-09 02:41:38 -05:00
Joey Hess
deb39a1f14
* meta: Run in scan mode again (more intelligently) and re-add support for
...
meta link.
* Fix support for the case where metadata appears after an inline directive.
This was broken in version 2.16.
2008-01-09 02:38:43 -05:00
Joey Hess
a654a72fda
optimisation: detect scan mode and avoid generating image
2008-01-09 02:31:11 -05:00
Joey Hess
b31e8c0826
* inline: Add copyright/license info on a per-post basis to atom
...
feeds if available. (rss doesn't allow such info on a per-post basis)
* meta: Allow copyright/license metadata to contain arbitrary markup.
2008-01-09 01:05:54 -05:00
Joey Hess
86781fc43e
* aggregate: Include copyright statements from rss feed as meta copyright
...
directives.
* aggregate: Yet another state saving fix (sigh).
* aggregate: Add hack to support feeds with invalidly escaped html entities.
2008-01-08 20:41:25 -05:00
Joey Hess
4c1a4402f9
* htmlscrubber: Further work around #365971 by adding tags for 'br/', 'hr/'
...
and 'p/'.
2008-01-07 18:32:50 -05:00
Joey Hess
e35eb5a418
* Add a prereq on Data::Dumper 2.11 or better, needed to dump q// objects.
2008-01-07 18:12:12 -05:00
Joey Hess
dcf342f366
add explicit test for do=postsignin
...
This happens when openid auth fails in certian ways
2008-01-07 16:39:49 -05:00
Joey Hess
d7b2bb13d1
fixes
2008-01-07 16:37:19 -05:00
Joey Hess
c34895364f
fixes
2008-01-07 16:35:16 -05:00
Joey Hess
c487b847e2
* Improved the canedit hook interface, allowing a callback function to be
...
returned (and not run in some cases) rather than the plugins directly
forcing a user to log in.
* opendiscussion: allow editing of the toplevel discussion page,
and, indirectly, allow creating new discussion pages.
2008-01-07 16:34:13 -05:00
Joey Hess
45de8dc710
* opendiscussion: allow editing of the toplevel discussion page
2008-01-07 16:10:32 -05:00
Joey Hess
9dbbbd0efa
* Only try postsignin if no other action matched. Fixes a bug where the
...
user goes back from the signin screen and does something else.
* Improve behavior when trying to sign in with no cookies.
2008-01-07 15:56:39 -05:00
Joey Hess
4ac5685744
fix some bad copy and pasted plugin ids
2008-01-07 15:28:53 -05:00
Joey Hess
ceffae8af1
* aggregate: Only save state if it was already loaded. This didn't used to
...
* table: Fix dependency tracking for external data files. Closes : #458387
2008-01-05 02:23:31 -05:00
Joey Hess
1fb1d6c183
fix an uninitialised value warning
2008-01-05 01:47:04 -05:00
Joey Hess
76e941a480
* aggregate: Only save state if it was already loaded.
2008-01-05 01:26:09 -05:00
Joey Hess
41234a3f0f
round days old message
2008-01-02 23:38:45 -05:00
Joey Hess
57bba4dac1
* Stop testing Encode::is_utf8 in decode_form_utf8: That doesn't work.
...
* decode_form_utf8 only fixed the utf-8 encoding for fields that were
registered at the time it was called, which was before the
formbuilder_setup hook. Fields added by the hook didn't get decoded.
But it can't be put after the hook either, since plugins using the hook
need to be able to use form values. To fix this dilemma, it's been changed
to a decode_cgi_utf8, which is called on the cgi query object, before the
form is set up, and decodes *all* cgi parameters.
2008-01-01 19:58:45 -05:00
Joey Hess
2269cfda30
* Split error messages for failures to drop real uid and gid.
...
* Retry dropping uid and gid, possibly this will help with the "Resource
temporarily unavailable" failures I've experienced under xen.
2008-01-01 18:48:34 -05:00
Joey Hess
c3eec7fdf0
I *think* that this comment is out of date.
2007-12-30 14:57:33 -05:00
Joey Hess
f0f52e602d
* aggregate: Fix stupid mistake introduced when converting it to use
...
the needsbuild hook. This resulted in feeds not being removed when pages
were updated, and probably other bugs.
* aggregate: Avoid uninitialised value warning when removing a feed that
has an expired guid.
2007-12-30 14:49:25 -05:00
Joey Hess
3e784ea8a1
* map: Fix handling of common prefix to handle the case where it's
...
in a subdirectory. Patch by Larry Clapp.
2007-12-28 17:22:17 -05:00
Joey Hess
63f62ef520
* conditional: Improve regexp testing for simple uses of pagespecs
...
that match only the page using the directive, adding 'included()'
and supporting negated pagespecs and added whitespace.
2007-12-28 16:55:20 -05:00
Joey Hess
c2afda7f90
* img: Allow the link parameter to point to an exterior url.
2007-12-28 16:14:43 -05:00
Joey Hess
2332b40595
* img: Avoid nesting images when linking to another image. Closes : #457780
2007-12-26 10:49:15 -05:00
Thomas Schwinge
1ac0fd03bb
IkiWiki/Plugin/meta.pm <redir>: Support for specifying anchors.
2007-12-22 13:10:55 -05:00
Joey Hess
b30fed47ea
* Improved parentlinks special case for index pages.
2007-12-19 16:44:33 -05:00
Joey Hess
b72b8b2b0e
improve error message if shortcuts.mdwn DNE
2007-12-17 15:33:47 -05:00
Joey Hess
f373b09bf9
loadstate needs to be called even if no pages are being built
2007-12-16 19:40:50 -05:00
Joey Hess
58f1ef0784
* git: Correct display of multiline commit messages in recentchanges.
2007-12-16 16:52:39 -05:00
Joey Hess
c3fed25ad4
* brokenlinks: Don't list the same link multiple times. (%links might
...
contain multiple copies of the same link)
2007-12-16 16:42:18 -05:00
Joey Hess
1d60cb322d
correct variable scoping error in nils's patch
2007-12-16 16:07:52 -05:00
Nis Martensen
723a10b5b1
rssurl and atomurl are only needed where $feeds is set
2007-12-16 16:04:38 -05:00
Nis Martensen
c99369cdbe
Also increment feednum only if feeds are generated
2007-12-16 16:04:28 -05:00
Joey Hess
9459cc55ab
* meta: Drop support for "meta link", since supporting this for internal
...
* map: Don't inline images.
2007-12-16 16:00:13 -05:00
Joey Hess
96817b0032
* meta: Drop support for "meta link", since supporting this for internal
...
links required meta to be run during scan, which complicated its data
storage, since it had to clear data stored during the scan pass to avoid
duplicating it during the normal preprocessing pass.
* If you used "meta link", you should switch to either "meta openid" (for
openid delegations), or tags (for internal, invisible links). I assume
that nobody really used "meta link" for external, non-openid links, since
the htmlscrubber ate those. (Tell me differently and I'll consider bringing
back that support.)
* meta: Improved data storage.
* meta: Drop the hackish filter hook that was used to clear
stored data before preprocessing, this hack was ugly, and broken (cf:
liw's disappearing openids).
* aggregate: Convert filter hook to a needsbuild hook.
2007-12-16 15:56:09 -05:00
Joey Hess
5b2ab63f78
* Allow editing a page and deleting all content, while still disallowing
...
creating a new page that's entirely empty.
2007-12-12 19:11:29 -05:00
Nis Martensen
74a56db8d6
Set page_numfeeds only if feeds are being generated
2007-12-12 16:54:09 -05:00
Joey Hess
10a2895b3b
* shortcut: Expand %S to the raw input text, not url-encoded.
2007-12-12 16:50:29 -05:00
Joey Hess
7eafa95f33
* Htmlize parameters passed to the template preprocessor directive before
...
inserting them into the html template. This ensures that markdown
acts on them, even if the value is expanded inside a block-level html
element in the html template. Closes : #454058
* Use a div in the note template rather than a span.
2007-12-12 16:42:54 -05:00
Joey Hess
849f65a343
* Avoid unnecessary stat calls to get mtime when rendering pages, use
...
cached value.
* Preserve input file modification times in output files.
2007-12-12 14:43:35 -05:00
Joey Hess
c06643a435
* Ensure that web edited pages always end in a newline.
2007-12-12 13:41:21 -05:00
Joey Hess
3922ba15ba
don't duplicate code from editpage, just pull the values it sets out of the
...
formbuilder object
2007-12-12 03:35:23 -05:00
Joey Hess
4745391360
* Change formbuilder hook to not be responsible for displaying a form,
...
so that more than one plugin can use this hook.
I believe this is a safe change, since only passwordauth uses this hook.
(If some other plugin already used it, it would have broken passwordauth!)
2007-12-12 03:15:30 -05:00
Joey Hess
c46b17983d
works, but I'm not entirely happy with it yet
...
It would be better if it were a formbuilder hook. But the formbuilder hook
is wacked.. I may need to change how that hook works, which would mean
changing the only current user of it, passwordauth).
2007-12-12 02:45:44 -05:00
Joey Hess
8576fe4c49
incomplate edittemplate plugin
2007-12-12 01:52:26 -05:00
Joey Hess
c8cb931890
reorg
2007-12-09 00:05:07 -05:00
Joey Hess
e78c25d1b2
logic fix
2007-12-08 23:57:25 -05:00
Joey Hess
5023f2301d
* The calendar plugin stores state about when it needs to be updated,
...
and forces rebuilds of the pages that contain calendars. So
running ikiwiki --refresh at midnight is now enough, no need for a full
wiki rebuild each midnight.
* calendar: Work around block html parsing bug in markdown 1.0.1 by
enclosing the calendar in an extra div.
2007-12-08 23:54:34 -05:00
Joey Hess
5959a32f97
real redir cycle detection
2007-12-08 19:39:32 -05:00
Joey Hess
a829e5b865
ensure state is dropped when a page stops embeddeding the version
2007-12-08 19:12:50 -05:00
Joey Hess
b4b452f4ee
forgot to add
2007-12-08 19:05:01 -05:00
Joey Hess
055179cb4c
* Finally implemented a simple per-page data storage mechanism for plugins,
...
via the %pagestate hash.
* Use pagestate in meta to detect potential redir loops.
2007-12-08 17:40:50 -05:00
Joey Hess
7960031135
MAJOR basewiki reorg
...
Including redir pages for the moved basewiki pages. These will be removed in
a future release.
2007-12-08 15:59:08 -05:00
Joey Hess
b8681e19d1
wikilink fix
2007-12-08 15:17:37 -05:00
Joey Hess
ccf99970a7
drop redir loop detection code
...
it won't work for incremental builds
for now, relying on browsers to notice loops
2007-12-08 15:05:41 -05:00
Joey Hess
2c78477387
* meta: Add redir support, based on a patch by Thomas Schwinge.
2007-12-08 14:58:29 -05:00
Thomas Schwinge
655d7925c6
Here is a patch to add a forwarding functionality to the meta plugin
2007-12-08 14:37:41 -05:00
Joey Hess
c3805557f1
* Improve workaround for perl bug #376329 . Rather than double-encoding,
...
which has been reported to cause encoding problems (though I haven't
reproduced them), just catch a failure of markdown, and retry.
(The crazy perl bug magically disappears on the retry.)
Closes : #449379
2007-11-27 16:36:37 -05:00
Joey Hess
e15e3202eb
releasing version 2.14
2007-11-26 15:30:44 -05:00
Joey Hess
f2e5709a33
* Let CC be used to control what compiler is used to build wrappers.
...
* Use 'cc' instead of gcc as the default compiler.
2007-11-25 15:50:31 -05:00
Joey Hess
c9c0f271b6
* toc: Handle html elements embedded inside a header, rather than
...
stopping collecting the header text at the first element.
2007-11-23 11:40:02 -05:00
Joey Hess
e016a975c4
* Allow html5 video and audio tags and their attributes in the htmlscrubber.
2007-11-18 13:34:06 -05:00
Joey Hess
6ccd9313d2
* More compact output for the brokenlinks plugin.
2007-11-17 16:16:34 -05:00
Joey Hess
466a094928
* Better error message when a setup file has a syntax error.
...
Closes : #451666
2007-11-17 14:06:11 -05:00
Joey Hess
cb80809aec
* Add wrappergroup config option, which can be used to cause wrappers
...
to be created owned by some group other than the default. Useful
then there's a shared repository with access controlled by a group,
to let ikiwiki run setgid to that group.
* ikiwiki-mass-rebuild: Run build with the user in all their groups.
2007-11-14 09:27:11 -05:00
Joey Hess
ebac523686
prottype fixes
2007-11-14 08:51:38 -05:00
Joey Hess
264a82a435
* inline: Add timeformat parameter to control how the ctime of
...
inlined pages is displayed. Closes : #451019
2007-11-13 16:14:48 -05:00
Joey Hess
8ffa59e610
* The first git commit legitimately has no parents. Avoid recentchanges
...
spewing uninitialised value warnings and debug messages about it.
Dummying up a parent of 0000000 allows gitweb to work too.
2007-11-12 12:53:46 -05:00
Joey Hess
6a751b2a83
missed localising a string
2007-11-08 15:03:57 -05:00
Josh Triplett
21c6d61aa1
Fix table plugin to not generate an unbalanced tbody tag with header=no
...
The table plugin omitted </tbody> with header=no, but always generated
<tbody>, resulting in an unbalanced tag. Fix that by omitting <tbody>
too.
2007-11-08 11:30:15 -08:00
Joey Hess
930584cff7
* map: Recent changes caused unnecessary ul's to be inserted for items
...
that were all at the same level, fix. Closes : #449285
2007-11-07 16:34:50 -05:00
Joey Hess
1c9946ff48
reset SIGPIPE before returning
2007-11-05 19:33:28 -05:00
Joey Hess
9e7160a664
fix dumb mistake
2007-10-31 18:42:14 -04:00
Joey Hess
ada249e0dd
* Don't truncate git commit messages to the first line in RecentChanges,
...
show the full message.
2007-10-31 18:35:37 -04:00
Joey Hess
3506f4ba07
* Improve the RecentChanges display for git merges, by passing -c instead
...
of -m to git-log, and by skipping display of commits that change no
pages.
2007-10-31 18:32:22 -04:00
Joey Hess
b8887c1cd7
* Avoid using commands like git-diff and instead use "git diff".
...
In some configurations, only the main git command is in the path.
2007-10-31 17:37:33 -04:00
Joey Hess
c5d9c0d6b6
* Avoid a race in the git rcs_commit function, by not assuming HEAD will
...
stay the same for the duration of the function.
2007-10-31 17:17:03 -04:00
Joey Hess
2a6e353c20
improve use of seen hash
2007-10-30 22:56:13 -04:00
Joey Hess
5cbd86235e
* Fix an aggregate plugin expiry bug. Over time, it's possible for the same
...
page name to be expired and reused for several distinct guids. When this
happened, the expiry code counted each past guid that had used that page
name as a currently existing page, and thus expired too many pages.
2007-10-30 22:50:44 -04:00
Joey Hess
683c1ebb4c
* Fix some issues with toggles in preview mode.
2007-10-29 17:16:10 -04:00
Joey Hess
730a3fb4b7
Run git-commit -q (though it doesn't do much good due to its stderr abuse).
2007-10-26 03:22:44 -04:00
Joey Hess
2697ac99cf
use nulls to avoid ambiguities
2007-10-25 06:20:32 -04:00
Joey Hess
9f1cd89bc2
* Add handling of feeds for nested inlines, as well as support for a
...
single page containing two different feeds.
* Also fixed some places in inline that failed to use destpage correctly.
2007-10-25 05:43:43 -04:00
Joey Hess
30bfe76eac
only use half the max size
2007-10-25 00:28:40 -04:00
Joey Hess
de5eb4996b
* postsparkline: Avoid a confusing error message if no pages match
...
and instead show an empty graph.
2007-10-24 23:07:39 -04:00
joey
cd67224be6
fix folding
2007-10-23 05:12:18 +00:00
joey
fc6ebdf0b2
explicitly use POSIX
2007-10-23 00:06:02 +00:00
joey
a27f4a47ba
* Add a calendar plugin, contributed by Manoj Srivastava.
...
* Reformat calendar plugin to ikiwiki conventions.
* The calendar plugin made *every* page depend on every other page,
which seemed a wee tiny little bit overkill. Fixed the dependency
calculations (I hope.)
* Removed manual ctime statting code, and just have the calendar plugin use
%pagectime.
2007-10-23 00:02:53 +00:00
joey
3613f72a3b
* If gitorigin_branch is set to the empty string, don't push or pull.
...
Useful for laptop clones of remote wikis.
2007-10-22 01:47:30 +00:00
joey
cadfac387c
minor stylistic changes
2007-10-21 22:59:18 +00:00
joey
19cfec2654
* Correct a pair of logic errors that triggered if svnpath was empty.
2007-10-21 22:57:11 +00:00
joey
a22d9f9721
* Support git authors of the form "joey <joey>", which is common when
...
importing from a svn repo.
2007-10-21 00:27:11 +00:00
joey
65dca9f89d
* Rewritten rst plugin by madduck is a python program that communicates with
...
ikiwiki via XML RPC. This should be much faster than the old plugin that
had to fork python for every rst page render. Note that if you use
the rst plugin, you now need to have the RPC::XML perl module installed.
2007-10-15 16:33:02 +00:00
joey
5b7edbf2a4
untaint plugin filename, will be tainted if specified at the command line
2007-10-13 22:18:33 +00:00
joey
eec289e281
* Fix strange stderr-hiding code in the git module, allow error messages
...
to be passed on to stderr. Also fixes a potential bug, since git error
meesages were treated as if they came from git stdout.
2007-10-10 23:27:11 +00:00
joey
278b16c79a
* In the cgi edit path, reload the index file before rendering. A bug
...
showed up where a web edit that added a page caused a near-concurrent
web edit to fail in will_render. While it would be hard to reproduce this,
my analysis is that the failing cgi started first, loaded the index file
(prior to locking) then the other cgi created the new page and rendered
it, and then the failing cgi choked on the new file when _it_ tried to
render it. Ensuring that the index file is loaded after taking the lock
will avoid this bug.
2007-10-10 18:40:54 +00:00
joey
3fd86def96
* French translation update. Closes : #445923
...
* Fix --get-ctime with git, needed to remove srcdir from filename.
2007-10-10 18:15:15 +00:00
joey
f948133a61
* Tidy ctime debug output for git.
2007-10-04 09:00:08 +00:00
joey
ed4b6afc9b
* camelcase: Tighten regexp to avoid false positives. WikiWords are only
...
linkified now if they are preceeded by whitespace.
2007-09-28 20:50:20 +00:00
joey
2f705d78c9
patch from madduck to fix thinko
2007-09-24 16:41:29 +00:00
joey
f9f38ae31c
* Save index after previewing page edit, since even previewing can create
...
files in some situations, and this is appropriate in some cases, such as
the teximg plugin's error log file.
Such files will be automatically cleaned up at an appopriate later time.
2007-09-22 18:31:52 +00:00
joey
a0f55abe07
$common_prefix may never get defined
2007-09-22 17:55:32 +00:00
joey
d0b1b24428
fix html
2007-09-22 17:15:36 +00:00
joey
c1474d795c
make taglink support the same method for specifying link text as a regular
...
wikilink
2007-09-22 17:07:51 +00:00
joey
622b866f3e
* img: Allow link=somepage to cause the image to link to a given page.
...
Slight overriding of link, as link=no is still used to disable the linking
entirely. Unless you have a page named "no"..
2007-09-22 16:46:27 +00:00
joey
7bde880fa8
* map: Render pages on the way to subpages whose parent pages
...
are not included in the map. Include special styling for such pages.
* map: Remove common prefixes and don't over-indent.
* Add class option to htmllink().
2007-09-22 16:32:24 +00:00
joey
9d75d3005b
* map: Render empty nodes on the way to subpages whose parent pages
...
are not included in the map.
* map: Fix valid html issue.
2007-09-21 17:54:58 +00:00
joey
0935e380c5
* tag: Add taglink preprocessor directive, supporting visible tag links.
...
* map: Fully specify paths to links to avoid issues when the bestlink
didn't point to the correct page.
2007-09-20 19:23:43 +00:00
joey
d1999f0357
* Add taglink preprocessor directive, supporting visible tag links.
...
Closes : #443344
2007-09-20 18:59:27 +00:00
joey
9f87bd8d7d
* table plugin: Actually specify the delimiter when parsing CSV.
...
* table plugin: The previous version broke WikiLinks inside quoted values.
Fix this by linkifying CSV data after parsing it, while DSV data is still
linkified before parsing.
2007-09-16 19:35:16 +00:00
joey
6bcc3339d9
* table plugin: Actually specify the delimiter.
2007-09-16 19:18:02 +00:00
joey
9dc796737f
bugfixes
2007-09-15 00:23:08 +00:00
joey
1e7b0415d3
if an inlined page has the same copyright or license as the page it's
...
inlined into, don't display them twice
2007-09-14 19:09:16 +00:00
joey
906dcfd518
* meta: Support license and copyright information. The information will
...
be shown in the page footer. HTML will also be inserted that should
support the rel=license microformat as well as the HTML spec's
rel=copyright.
2007-09-14 18:11:10 +00:00
joey
95199c5b04
* inline: add feedonly option, set feedonly=yes to get only the feed button
...
but not inline the pages.
2007-09-13 22:23:32 +00:00
joey
8489e68916
* table: Text::CSV doesn't return decoded unicode (XS module); decode its
...
return values.
2007-09-05 17:22:26 +00:00
joey
ef43bff1ca
* Correct generation of RFC 3339 format times for atom/rss feeds. Always use
...
gmtime for these since a time zone is not specified.
2007-09-02 19:29:40 +00:00
joshtriplett
8de136222e
git.pm: Handle operating in sub-trees of a git repository.
...
When looking for git commits that affect the wiki, only include changes
that affect the ikiwiki source directory. If that is not the top-level
directory in this git repository, strip off the prefix as given by
`git-rev-parse --show-prefix` from all names reported by git-log.
Patch by Jamey Sharp <jamey@minilop.net>.
2007-08-30 02:32:35 +00:00
joshtriplett
c5ee59ec5e
git.pm: Renames from git-diff-tree aren't handled, so don't ask for them.
...
Patch by Jamey Sharp <jamey@minilop.net>.
2007-08-30 02:32:32 +00:00
joshtriplett
7144514b93
Use git-log rather than the shell, git-rev-list, and git-diff-tree.
...
Patch by Jamey Sharp <jamey@minilop.net>.
2007-08-30 02:32:29 +00:00
joey
c73e0b78f9
use --style default for get_ctime too
2007-08-29 03:02:41 +00:00
joey
67c6ff9b08
* mercurial: Fix rcs_getctime (thanks, bma)
2007-08-29 02:16:45 +00:00
joey
5b8e1cc369
thank goodness for test suites
2007-08-29 02:09:43 +00:00
joey
7813bcf08a
* mercurial: Pass --style defaults to hg log to ensure right format is used.
2007-08-29 02:01:23 +00:00
joey
4142c02f73
* Tables containing links with a link text were misparsed, because the "|"
...
in the wikilink looked like a table field separator. Avoid this ambiguity
by linkifying the data before parsing it as a table.
* Turn on allow_loose_quotes in the table plugin's Text::CSV object,
so that links from wikilinks don't confuse the parser.
2007-08-28 23:06:24 +00:00
joey
9c5f4761d8
* Support for looking in multiple directories for underlay files.
...
* Plugins can add new directories to the search path with the add_underlay
function.
* Split out smiley underlay files into a separate underlay, so if the plugin
isn't used, the wiki isn't bloated with all those files.
2007-08-28 01:59:01 +00:00
joey
6c89a635bb
* Add an editcontent hook.
2007-08-26 21:33:25 +00:00
joey
abc5919087
* Fix bug when blogging by cgi, introduced in last version.
2007-08-26 17:32:15 +00:00
joey
c2ec0a97a1
remove unncessesary and unused loop labels
2007-08-24 18:07:15 +00:00
joey
14a82190e1
typo
2007-08-24 17:16:23 +00:00
joey
a18d99c3fa
apply monotone patch
2007-08-24 01:20:25 +00:00
joey
0863498132
typo
2007-08-23 21:23:24 +00:00
joey
015ce28d72
fix encoding html entities in alt tag
2007-08-23 21:22:44 +00:00
joey
8c31a01efa
rename tex to teximg
2007-08-23 21:19:21 +00:00
joey
27d029113f
* Add embed plugin, which allows embedding content from google maps, video,
...
calendar, and youtube. Normally, the htmlsanitiser eats these since they
use unsafe tags, the embed plugin overrides it for trusted sites.
* The googlecalendar plugin is now deprecated, and will be removed
eventually. Please switch to using the embed plugin.
2007-08-23 20:14:08 +00:00
joey
2c5fbe844b
* Call the formbuilder hook for the edit page.
...
* Call decode_form_utf8 before running formbuilder_setup hooks.
* Add editdiff plugin contributed by Jeremie Koenig.
* Fix it to not leak path info.
2007-08-22 21:06:13 +00:00
joey
f760fcfa3f
* Added tex plugin to generate images from latex code.
...
Contributed by Patrick Winnertz as a GSoC project.
2007-08-22 00:59:41 +00:00
joey
c2c943bc25
monotone updates
2007-08-21 16:55:13 +00:00
joey
38353384cf
minor changes (but lots of them)
2007-08-21 03:58:00 +00:00