Updated README

This commit is contained in:
Franco Speziali 2022-03-17 22:35:48 +01:00
parent 665de3f8b1
commit f102aa7aad
2 changed files with 45 additions and 0 deletions

BIN
DOCS/preview.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 28 KiB

View File

@ -1,6 +1,51 @@
# Event Calendar Plugin for Joplin # Event Calendar Plugin for Joplin
This plugin creates a calendar view of events that have been specified using the [YAML](https://yaml.org/) syntax within a fenced block.
![preview](./DOCS/preview.png)
## About
- The main feature of this calendar is the ability to change the view; you can group events by day, week or by month.
- Events do not have to placed in order.
- There is no need to specify a start and end date; the calendar will automatically calibrate the view depending on the dates found in the events
## Usage
1. To setup the calendar, first create a fenced block with the text `joplin-plugin-event-calendar` as the identifier
2. Specify what type of _grouping_ you would like with the `group` key, `d` for **day**, `w` for **week**, `m` for **month**
```text
group: d # (optional) d / w /m
```
3. Specify each event with the `events` key
```text
events:
- date: yyyy-mm-dd # (required)
icon: 🙂 # (optional) event icon
title: Ahoi # (required) event title
text: hoi # (optional) additional event details
bgColor: red # (optional) if not specified, a random one will be assigned
```
## Example
```joplin-plugin-event-calendar
group: d
events:
- date: 2012-11-05
icon: 🔥
title: Bonfire night
- date: 2012-12-25
icon: 🎁
title: Time for a gift!
- date: 2013-1-1
icon: 🌟
title: New year's day
```
## Acknowledgements ## Acknowledgements