docs(plugins/isocalendar): full rewrite

This commit is contained in:
lowlighter
2022-01-15 11:51:09 -05:00
parent 2718e16d18
commit db795ab110
2 changed files with 10 additions and 50 deletions

View File

@@ -1,54 +1,12 @@
### 📅 Isometric commit calendar <!--header-->
<!--/header-->
The *isocalendar* plugin displays an isometric view of your commits calendar, along with a few additional stats like current streak and commit average per day. ## ➡️ Available options
<table>
<td align="center">
<details open><summary>Full year isometric calendar</summary>
<img src="https://github.com/lowlighter/lowlighter/blob/master/metrics.plugin.isocalendar.fullyear.svg">
</details>
<details><summary>Half year isometric calendar</summary>
<img src="https://github.com/lowlighter/lowlighter/blob/master/metrics.plugin.isocalendar.svg">
</details>
<img width="900" height="1" alt="">
</td>
</table>
#### ➡️ Available options
<!--options--> <!--options-->
| Option | Type *(format)* **[default]** *{allowed values}* | Description |
| ------ | -------------------------------- | ----------- |
| `plugin_isocalendar` | `boolean` **[no]** | Display an isometric view of your commits calendar |
| `plugin_isocalendar_duration` | `string` **[half-year]** *{"half-year", "full-year"}* | Set time window shown by isometric calendar |
<!--/options--> <!--/options-->
*[→ Full specification](metadata.yml)* ## Examples workflows
#### Examples workflows
<!--examples--> <!--examples-->
```yaml
name: Half-year calendar
uses: lowlighter/metrics@latest
with:
filename: metrics.plugin.isocalendar.svg
token: ${{ secrets.METRICS_TOKEN }}
base: ''
plugin_isocalendar: 'yes'
```
```yaml
name: Full-year calendar
uses: lowlighter/metrics@latest
with:
filename: metrics.plugin.isocalendar.fullyear.svg
token: ${{ secrets.METRICS_TOKEN }}
base: ''
plugin_isocalendar: 'yes'
plugin_isocalendar_duration: full-year
```
<!--/examples--> <!--/examples-->

View File

@@ -1,5 +1,9 @@
name: "📅 Isometric commit calendar" name: "📅 Isometric commit calendar"
category: github category: github
description: This plugin displays an isometric view of your commit calendar along with a few additional statistics like current streak and average number of commit per day.
examples:
full year calendar: https://github.com/lowlighter/lowlighter/blob/master/metrics.plugin.isocalendar.fullyear.svg
half year calendar: https://github.com/lowlighter/lowlighter/blob/master/metrics.plugin.isocalendar.svg
index: 0 index: 0
supports: supports:
- user - user
@@ -7,15 +11,13 @@ scopes:
- public_access - public_access
inputs: inputs:
# Enable or disable plugin
plugin_isocalendar: plugin_isocalendar:
description: Display an isometric view of your commits calendar description: Enable isocalendar plugin
type: boolean type: boolean
default: no default: no
# Set time window shown by isometric calendar
plugin_isocalendar_duration: plugin_isocalendar_duration:
description: Set time window shown by isometric calendar description: Time window
type: string type: string
default: half-year default: half-year
values: values: