From 492ea4f58a7499444db59ab843d6a62642bff790 Mon Sep 17 00:00:00 2001 From: Louis Date: Tue, 24 Jun 2014 15:37:52 +0200 Subject: Patch (calendar): autocreate archive pages when needed --- doc/ikiwiki-calendar/discussion.mdwn | 4 +++- doc/todo/calendar_autocreate.mdwn | 16 ++++++++++++++++ 2 files changed, 19 insertions(+), 1 deletion(-) create mode 100644 doc/todo/calendar_autocreate.mdwn diff --git a/doc/ikiwiki-calendar/discussion.mdwn b/doc/ikiwiki-calendar/discussion.mdwn index b64321008..17c79b303 100644 --- a/doc/ikiwiki-calendar/discussion.mdwn +++ b/doc/ikiwiki-calendar/discussion.mdwn @@ -20,7 +20,7 @@ Having done this, the only purpose of ikiwiki-calendar would be to re-generate t 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. --- Spalax +-- [[Louis|spalax]] > Good spotting, `ikiwiki-calendar` predates the `add_autofile` API used to > autocreate tag pages and was bolted in as an easy way to create calendar @@ -34,3 +34,5 @@ Did I miss something? If I am right, I offer to write the necessary patch, copie > That last is, arguably, the real point of running ikiwiki-calendar in > a cron job. Of course all it really does is run `ikiwiki -setup foo > -refresh`. --[[Joey]] + +> > [[Patch|todo/calendar_autocreate]]. -- [[Louis|spalax]] diff --git a/doc/todo/calendar_autocreate.mdwn b/doc/todo/calendar_autocreate.mdwn new file mode 100644 index 000000000..6cb15df47 --- /dev/null +++ b/doc/todo/calendar_autocreate.mdwn @@ -0,0 +1,16 @@ +Here is a patch that makes [[ikiwiki-calendar]] almost useless. + +It adds some options, the main one being `calendar_autocreate`, which is +similar to the `tag_autocreate` option of the [[tag|plugins/tag]]: it create +archive pages when needed. + +The documentation is updated as well (but as a non-native English speaker, I +won't be offended if you correct stuff you consider awkward): + +- [[plugin|https://github.com/paternal/ikiwiki/blob/calendar-autocreate/doc/plugins/calendar.mdwn]] +- [[directive|https://github.com/paternal/ikiwiki/blob/calendar-autocreate/doc/ikiwiki/directive/calendar.mdwn]] + +[[!tag patch]] +[[!template id=gitbranch branch=spalax/calendar-autocreate browse="https://github.com/paternal/ikiwiki/tree/calendar-autocreate" author="[[Louis|spalax]]"]] + +--[[Louis|spalax]] -- cgit v1.2.3