diff options
author | Louis <spalax@gresille.org> | 2014-06-24 15:37:52 +0200 |
---|---|---|
committer | Louis <spalax@gresille.org> | 2014-06-24 15:37:52 +0200 |
commit | 492ea4f58a7499444db59ab843d6a62642bff790 (patch) | |
tree | 6bd588aa747d1fcd479f7143135133992748c57c | |
parent | cdc1c8204f979aad62b712ad19ea3020b425b3a1 (diff) | |
download | ikiwiki-492ea4f58a7499444db59ab843d6a62642bff790.tar ikiwiki-492ea4f58a7499444db59ab843d6a62642bff790.tar.gz |
Patch (calendar): autocreate archive pages when needed
-rw-r--r-- | doc/ikiwiki-calendar/discussion.mdwn | 4 | ||||
-rw-r--r-- | doc/todo/calendar_autocreate.mdwn | 16 |
2 files changed, 19 insertions, 1 deletions
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]] |