shift-org / shift-docs

Shift2Bikes: website and calendar for shift and pedalpalooza
https://shift2bikes.org
Other
22 stars 17 forks source link

add an all events feed #797

Closed ionous closed 2 months ago

ionous commented 3 months ago

fixes #116 by exposing a new endpoint which covers "all events" ( 1 month in the past and 6 months in the future at ): /cal/shift-calendar.php ( which maps into node at /api/shift-calendar.php with no query parameters ) and adds a banner to the /calendar page describing the new feed ( see below ); and updates the FAQ to describe both calendars.

note: this changes the existing ical header for the pedalp endpoint by giving it a new friendly name and description, while keeping its global unique id set to shift@shift2bikes.org was:

X-WR-CALNAME:Shift Bike Calendar
X-WR-CALDESC:Find fun bike events and make new friends!
X-WR-RELCALID:shift@shift2bikes.org

now:

X-WR-CALNAME:Pedalpalooza Bike Calendar
X-WR-CALDESC:Find fun Pedalpalooza bike events!
X-WR-RELCALID:shift@shift2bikes.org

it uses the following ical header for the all events feed, and for any individually downloaded events:

X-WR-CALNAME:Shift Community Calendar
X-WR-CALDESC:Find fun bike events all year round.
X-WR-RELCALID:community@shift2bikes.org

image