fix(docs): lot of misspelling (#1180) [skip ci]
This commit is contained in:
@@ -20,7 +20,7 @@ All product and company names are trademarks™ or registered® trademarks of th
|
||||
<tr>
|
||||
<td colspan="2" align="center">
|
||||
<details open><summary>Recent activity charts</summary><img src="https://github.com/lowlighter/metrics/blob/examples/metrics.plugin.habits.charts.svg" alt=""></img></details>
|
||||
<details open><summary>Midly interesting facts</summary><img src="https://github.com/lowlighter/metrics/blob/examples/metrics.plugin.habits.facts.svg" alt=""></img></details>
|
||||
<details open><summary>Mildly interesting facts</summary><img src="https://github.com/lowlighter/metrics/blob/examples/metrics.plugin.habits.facts.svg" alt=""></img></details>
|
||||
<img width="900" height="1" alt="">
|
||||
</td>
|
||||
</tr>
|
||||
@@ -73,7 +73,7 @@ All product and company names are trademarks™ or registered® trademarks of th
|
||||
</tr>
|
||||
<tr>
|
||||
<td nowrap="nowrap"><h4><code>plugin_habits_facts</code></h4></td>
|
||||
<td rowspan="2"><p>Midly interesting facts</p>
|
||||
<td rowspan="2"><p>Mildly interesting facts</p>
|
||||
<p>It includes indentation type, average number of characters per line of code, and most active time and day</p>
|
||||
<img width="900" height="1" alt=""></td>
|
||||
</tr>
|
||||
@@ -174,7 +174,7 @@ Configure `config_timezone` (see [supported timezone](https://en.wikipedia.org/w
|
||||
|
||||
<!--examples-->
|
||||
```yaml
|
||||
name: Midly interesting facts
|
||||
name: Mildly interesting facts
|
||||
uses: lowlighter/metrics@latest
|
||||
with:
|
||||
filename: metrics.plugin.habits.facts.svg
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
- name: Midly interesting facts
|
||||
- name: Mildly interesting facts
|
||||
uses: lowlighter/metrics@latest
|
||||
with:
|
||||
filename: metrics.plugin.habits.facts.svg
|
||||
|
||||
@@ -64,7 +64,7 @@ export default async function({login, data, rest, imports, q, account}, {enabled
|
||||
habits.commits.days[day] = (habits.commits.days[day] ?? 0) + 1
|
||||
habits.commits.days.max = Math.max(...Object.values(habits.commits.days))
|
||||
//Compute day with most commits
|
||||
habits.commits.day = days.length ? ["Sunday", "Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Saturday"][Object.entries(habits.commits.days).sort(([_an, a], [_bn, b]) => b - a).map(([day, _occurence]) => day)[0]] ?? NaN : NaN
|
||||
habits.commits.day = days.length ? ["Sunday", "Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Saturday"][Object.entries(habits.commits.days).sort(([_an, a], [_bn, b]) => b - a).map(([day, _occurrence]) => day)[0]] ?? NaN : NaN
|
||||
}
|
||||
|
||||
//Commit hour
|
||||
@@ -76,7 +76,7 @@ export default async function({login, data, rest, imports, q, account}, {enabled
|
||||
habits.commits.hours[hour] = (habits.commits.hours[hour] ?? 0) + 1
|
||||
habits.commits.hours.max = Math.max(...Object.values(habits.commits.hours))
|
||||
//Compute hour with most commits
|
||||
habits.commits.hour = hours.length ? `${Object.entries(habits.commits.hours).sort(([_an, a], [_bn, b]) => b - a).map(([hour, _occurence]) => hour)[0]}`.padStart(2, "0") : NaN
|
||||
habits.commits.hour = hours.length ? `${Object.entries(habits.commits.hours).sort(([_an, a], [_bn, b]) => b - a).map(([hour, _occurrence]) => hour)[0]}`.padStart(2, "0") : NaN
|
||||
}
|
||||
|
||||
//Indent style
|
||||
|
||||
@@ -4,7 +4,7 @@ description: |
|
||||
This plugin displays coding habits based on recent activity, such as active hours and languages recently used.
|
||||
examples:
|
||||
+recent activity charts: https://github.com/lowlighter/metrics/blob/examples/metrics.plugin.habits.charts.svg
|
||||
+midly interesting facts: https://github.com/lowlighter/metrics/blob/examples/metrics.plugin.habits.facts.svg
|
||||
+mildly interesting facts: https://github.com/lowlighter/metrics/blob/examples/metrics.plugin.habits.facts.svg
|
||||
index: 7
|
||||
supports:
|
||||
- user
|
||||
@@ -39,7 +39,7 @@ inputs:
|
||||
|
||||
plugin_habits_facts:
|
||||
description: |
|
||||
Midly interesting facts
|
||||
Mildly interesting facts
|
||||
|
||||
It includes indentation type, average number of characters per line of code, and most active time and day
|
||||
type: boolean
|
||||
|
||||
Reference in New Issue
Block a user