Joey Hess
f02f806cf7
calendar: Fix month wraparound error that broke in December.
2009-12-02 12:58:45 -05:00
Joey Hess
2255a6a0bb
calendar: Add title attributes for all links in the calendars.
2009-11-26 14:58:35 -05:00
Joey Hess
28c4caea59
year calendar: Avoid highlighting the current month in a different year
2009-10-12 14:24:28 -04:00
Joey Hess
5c78192435
year calendar: only link to months that have posts
...
This does mean the year calendars depend on existence of all posts made in
the year and have to be updated.
2009-10-12 14:19:04 -04:00
Joey Hess
22737e53f1
remove whitespace from within arrow links
2009-10-12 14:05:56 -04:00
Joey Hess
227540fd87
calendar: Add creation time limits to user's pagespec
...
This avoids all calendars rebuilding when a new page is added
that will only show in one of them.
2009-10-12 12:30:10 -04:00
Joey Hess
11e6d650ea
calendar: Fix CSS for year calendar to match the plugin documentation.
...
The names in the documentation were completly different, but
also seemed better chosen than the names in the code.
2009-10-12 12:19:42 -04:00
Joey Hess
e4c765c64f
calendar: avoid inline images in links
2009-10-11 22:11:11 -04:00
Joey Hess
cf74cf7a37
calendar: use left and right arrows for next/prev months
...
This is consistent with the year display, and I think it is less
visually confusing than using the full month names.
2009-10-11 21:55:06 -04:00
Joey Hess
23a21850fa
fix next/prev month padding bug
2009-10-11 21:52:50 -04:00
Joey Hess
8a37be35ac
fix day links
...
I broke this recently.
2009-10-11 21:43:16 -04:00
Joey Hess
f3342773d3
calendar: Fix bug in next/previous year/month links, which sometimes linked to an archive page from the wrong year.
2009-10-11 21:42:59 -04:00
Joey Hess
dd80be66ee
calendar: Fix midnight rebuild trigger of calendars with explicit month/year.
...
It was just broken for calendars with an explicit month or year, not
triggering at all.
Now it will update those at appropriate times.
2009-10-11 21:26:43 -04:00
Joey Hess
71e266b939
avoid temporary variables
...
and fix a bug in pagespec variable name
2009-10-11 20:15:54 -04:00
Joey Hess
5e7b2dea84
rename use_pagespec to pagespec_match_list
...
To avoid breaking plugins, also support the old pagespec_match_list
calling convention, with a deprecation warning.
2009-10-08 23:51:06 -04:00
Joey Hess
332821144b
calendar: rework so it can use use_pagespec
...
This was tricky because of the caching, and because use_pagespec always
adds a dependency. That would have made year calendars depend on the whole
pagespec, which is overly broad. So I removed the caching, format_month,
and in format_year just look at %pagesources to see if month pages are
available.
In format_month, I make it always call use_pagespec, so each month calendar
gets the right dependency and any influcences added. This means a bit more
work, but the added work is fairly minimal, and presence dependencies
remove a *lot* of work it used to do.
(100% untested!)
2009-10-08 23:30:34 -04:00
Joey Hess
c57908b9d0
change how dependency types are specified to add_depends
...
Also, this fixes 2 bugs in dependency info.
2009-10-08 16:49:03 -04:00
Joey Hess
957ded9d64
remove explicit addition of dependencies for displayed pages
...
that hack is not needed, thanks to pagespec influences calculation
2009-10-07 21:57:31 -04:00
Joey Hess
be032a7b87
rework dependency types code
...
Simplify, change default content depends number to 1,
change interface to make more sense.
2009-10-04 20:30:21 -04:00
Joey Hess
a6689f9c7a
calendar: all dependencies are contentless
2009-10-04 16:05:41 -04:00
Joey Hess
5bcdc39999
Revert "Allow add_depends to take an arrayref"
...
This reverts commit e4cd168ebe
.
There was no benefit to this change.
2009-08-25 17:11:29 -04:00
Simon McVittie
e4cd168ebe
Allow add_depends to take an arrayref
2009-08-25 00:31:24 +01:00
Simon McVittie
b6fcb1cb0e
calendar, inline, map: don't pre-join dependencies
...
The new dependency handling works better (eliminates more duplicates) if
dependencies are split up. On the same wiki mentioned in the previous
commit, this saves about a second (i.e. 4%) on the same test.
2009-08-24 23:18:16 +01:00
Joey Hess
6a2f3ef4bd
indentation
2009-08-15 13:58:04 -04:00
Joey Hess
aa306957ba
pagespec_match_list added and used in most appropriate places
...
* pagespec_match_list: New API function, matches pages in a list
and throws an error if the pagespec is bad.
* inline, brokenlinks, calendar, linkmap, map, orphans, pagecount,
pagestate, postsparkline: Display a handy error message if the pagespec
is erronious.
2009-04-23 15:45:30 -04:00
Joey Hess
678d467a40
finalise version 3.00 of the plugin api
2008-12-23 16:34:19 -05:00
Joey Hess
bb93fccf06
Coding style change: Remove explcit vim folding markers.
2008-12-17 15:22:16 -05:00
Joey Hess
903213e63f
add plugin safe/rebuild info (part 1 of 2)
...
too many plugins.. brain exploding..
2008-08-03 16:40:12 -04:00
Joey Hess
42ac4ec009
remove default values in getsetup
...
They were a bit confusing, since they did not actually set the default, and
example values are sufficient.
2008-07-26 21:07:15 -04:00
Joey Hess
f892cc8c50
two typos
2008-07-26 19:05:52 -04:00
Joey Hess
1f8b0460c3
added getsetup hooks for all plugins up to recentchanges
2008-07-25 18:05:55 -04: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
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
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