summaryrefslogtreecommitdiff
path: root/IkiWiki/Plugin/calendar.pm
AgeCommit message (Collapse)Author
2010-03-19audited use POSIXJoey Hess
The POSIX perl module exports a huge number of functions by default, so make sure all imports are qualified. (And remove one that was not necessary.)
2010-02-12setup file orderingJoey Hess
2010-01-02Terminate the arrow entities with ";"Torsten Veller
2009-12-02calendar: Fix month wraparound error that broke in December.Joey Hess
2009-11-26calendar: Add title attributes for all links in the calendars.Joey Hess
2009-10-12year calendar: Avoid highlighting the current month in a different yearJoey Hess
2009-10-12year calendar: only link to months that have postsJoey Hess
This does mean the year calendars depend on existence of all posts made in the year and have to be updated.
2009-10-12remove whitespace from within arrow linksJoey Hess
2009-10-12calendar: Add creation time limits to user's pagespecJoey Hess
This avoids all calendars rebuilding when a new page is added that will only show in one of them.
2009-10-12calendar: Fix CSS for year calendar to match the plugin documentation.Joey Hess
The names in the documentation were completly different, but also seemed better chosen than the names in the code.
2009-10-11calendar: avoid inline images in linksJoey Hess
2009-10-11calendar: use left and right arrows for next/prev monthsJoey Hess
This is consistent with the year display, and I think it is less visually confusing than using the full month names.
2009-10-11fix next/prev month padding bugJoey Hess
2009-10-11fix day linksJoey Hess
I broke this recently.
2009-10-11calendar: Fix bug in next/previous year/month links, which sometimes linked ↵Joey Hess
to an archive page from the wrong year.
2009-10-11calendar: Fix midnight rebuild trigger of calendars with explicit month/year.Joey Hess
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-11avoid temporary variablesJoey Hess
and fix a bug in pagespec variable name
2009-10-08rename use_pagespec to pagespec_match_listJoey Hess
To avoid breaking plugins, also support the old pagespec_match_list calling convention, with a deprecation warning.
2009-10-08calendar: rework so it can use use_pagespecJoey Hess
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-08change how dependency types are specified to add_dependsJoey Hess
Also, this fixes 2 bugs in dependency info.
2009-10-07remove explicit addition of dependencies for displayed pagesJoey Hess
that hack is not needed, thanks to pagespec influences calculation
2009-10-04rework dependency types codeJoey Hess
Simplify, change default content depends number to 1, change interface to make more sense.
2009-10-04calendar: all dependencies are contentlessJoey Hess
2009-08-25Revert "Allow add_depends to take an arrayref"Joey Hess
This reverts commit e4cd168ebedd95585290c97ff42234344bfed46c. There was no benefit to this change.
2009-08-25Allow add_depends to take an arrayrefSimon McVittie
2009-08-24calendar, inline, map: don't pre-join dependenciesSimon McVittie
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-15indentationJoey Hess
2009-04-23pagespec_match_list added and used in most appropriate placesJoey Hess
* 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.
2008-12-23finalise version 3.00 of the plugin apiJoey Hess
2008-12-17Coding style change: Remove explcit vim folding markers.Joey Hess
2008-08-03add plugin safe/rebuild info (part 1 of 2)Joey Hess
too many plugins.. brain exploding..
2008-07-26remove default values in getsetupJoey Hess
They were a bit confusing, since they did not actually set the default, and example values are sufficient.
2008-07-26two typosJoey Hess
2008-07-25added getsetup hooks for all plugins up to recentchangesJoey Hess
2008-01-29add missing test to avoid uninitialised value when a page with metadata is ↵Joey Hess
removed
2007-12-09reorgJoey Hess
2007-12-08logic fixJoey Hess
2007-12-08* The calendar plugin stores state about when it needs to be updated,Joey Hess
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-10-23fix foldingjoey
2007-10-23explicitly use POSIXjoey
2007-10-23* Add a calendar plugin, contributed by Manoj Srivastava.joey
* 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.