diff options
author | spalax <spalax@web> | 2012-02-20 17:29:42 -0400 |
---|---|---|
committer | admin <admin@branchable.com> | 2012-02-20 17:29:42 -0400 |
commit | 045d64720475bf004fad45bbaa258b7c34984c45 (patch) | |
tree | b580665abe1ad9852ae634c9e53ac466827d7af9 /doc/ikiwiki-calendar | |
parent | 0726ac642068429d86f548c66904f087f7b2ffa6 (diff) | |
download | ikiwiki-045d64720475bf004fad45bbaa258b7c34984c45.tar ikiwiki-045d64720475bf004fad45bbaa258b7c34984c45.tar.gz |
Question an proposition about relevance of `ikiwiki-calendar`
Diffstat (limited to 'doc/ikiwiki-calendar')
-rw-r--r-- | doc/ikiwiki-calendar/discussion.mdwn | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/doc/ikiwiki-calendar/discussion.mdwn b/doc/ikiwiki-calendar/discussion.mdwn index 0fa062413..1b01761c8 100644 --- a/doc/ikiwiki-calendar/discussion.mdwn +++ b/doc/ikiwiki-calendar/discussion.mdwn @@ -9,3 +9,13 @@ to I ran into (for me) unexpected behaviour with double quotes, since when I tried it in the interactive shell, the "!" made it fail ([history expansion](http://mywiki.wooledge.org/BashPitfalls#echo_.22Hello_World.21.22)). I thought "aha, it should be escaped!", did so, and did not get any error messages, but it no longer functioned as intended (as per the earlier linked page). The latter line will work everywhere, not just in environments without history expansion. I think trying a command manually before putting it into crontab is common, and this would avoid the possible user issue I ran into. + +---- + +I wonder what this program (ikiwiki-calendar) is useful for. Would not it be simpler to have the [[calendar|ikiwiki/directive/calendar]] directive generate the `archive_base/year/month.mdwn` files on the fly, as are the tag pages generated by the [[tag|plugins/tag]] plugin? This solution would have the advantage of automatically generating the right calendar pages, instead of having to tell ikiwiki-calendar which years to take into account. + +Using this solution would mean to have the pagespec stored somewhere in the configuration. But this is already the case, as the pagespec used by [[ikiwiki-calendar]] is either set in the configuration file of the wiki, or in the crontab or whatever script used to call ikiwiki-calendar. + +Having done this, the only purpose of ikiwiki-calendar would be to re-generate the wiki on a daily (or whatever frequency) basis, which can be done using ikiwiki instead of ikiwiki-calendar. + +Did I miss something? If I am right, I offer to write the necessary patch, copied and adapted from the tag plugin, to generate the pages `archive_base/year/month.mdwn` on the fly. |