2009-10-11 22:42:49 +02:00
|
|
|
# NAME
|
|
|
|
|
|
|
|
ikiwiki-calendar - create calendar archive pages
|
|
|
|
|
|
|
|
# SYNOPSIS
|
|
|
|
|
2009-10-12 05:44:50 +02:00
|
|
|
ikiwiki-calendar [-f] your.setup [pagespec] [startyear [endyear]]
|
2009-10-11 22:42:49 +02:00
|
|
|
|
|
|
|
# DESCRIPTION
|
|
|
|
|
|
|
|
`ikiwiki-calendar` creates pages that use the [[ikiwiki/directive/calendar]]
|
|
|
|
directive, allowing the archives to be browsed one month
|
|
|
|
at a time, with calendar-based navigation.
|
|
|
|
|
|
|
|
You must specify the setup file for your wiki. The pages will
|
|
|
|
be created inside its `srcdir`, beneath the `archivebase`
|
|
|
|
directory used by the calendar plugin (default "archives").
|
|
|
|
|
2010-04-15 19:40:53 +02:00
|
|
|
To control which pages are included on the calendars,
|
|
|
|
a [[ikiwiki/PageSpec]] can be specified. The default is
|
|
|
|
all pages, or the pages specified by the `comments_pagespec`
|
|
|
|
setting in the config file. A pagespec can also be specified
|
|
|
|
on the command line. To limit it to only posts in a blog,
|
2009-10-11 22:42:49 +02:00
|
|
|
use something like "posts/* and !*/Discussion".
|
|
|
|
|
|
|
|
It defaults to creating calendar pages for the current
|
2009-10-12 05:44:50 +02:00
|
|
|
year. If you specify a year, it will create pages for that year.
|
|
|
|
Specify a second year to create pages for a span of years.
|
2009-10-11 22:42:49 +02:00
|
|
|
|
|
|
|
Existing pages will not be overwritten by this command by default.
|
|
|
|
Use the `-f` switch to force it to overwrite any existing pages.
|
|
|
|
|
2009-10-12 06:05:31 +02:00
|
|
|
# CRONTAB
|
2009-10-11 22:42:49 +02:00
|
|
|
|
|
|
|
While this command only needs to be run once a year to update
|
|
|
|
the archive pages for each new year, you are recommended to set up
|
|
|
|
a cron job to run it daily, at midnight. Then it will also update
|
|
|
|
the calendars to highlight the current day.
|
|
|
|
|
|
|
|
An example crontab:
|
|
|
|
|
2012-02-21 18:10:59 +01:00
|
|
|
0 0 * * * ikiwiki-calendar ~/ikiwiki.setup 'posts/* and !*/Discussion'
|
2009-10-11 22:42:49 +02:00
|
|
|
|
|
|
|
# TEMPLATES
|
|
|
|
|
2010-04-23 22:10:46 +02:00
|
|
|
This command uses two [[templates]] to generate
|
2009-10-11 22:42:49 +02:00
|
|
|
the pages, `calendarmonth.tmpl` and `calendaryear.tmpl`.
|
|
|
|
|
2014-06-18 18:38:33 +02:00
|
|
|
# [[plugins/calendar]] setup option
|
|
|
|
|
|
|
|
Most of the goals of this command can be replaced by setting up
|
|
|
|
`calendar_autocreate` setup option (of plugin [[plugins/calendar]]), and
|
|
|
|
running `ikiwiki -setup you.setup`. The only thing that `ikiwiki-calendar` can
|
|
|
|
do and that `ikiwiki` cannot is forcing page generation (using `-f` switch).
|
|
|
|
|
2009-10-11 22:42:49 +02:00
|
|
|
# AUTHOR
|
|
|
|
|
|
|
|
Joey Hess <joey@ikiwiki.info>
|
|
|
|
|
|
|
|
Warning: this page is automatically made into ikiwiki-calendar's man page, edit with care
|