doc(plugins/stackoverflow): update
This commit is contained in:
@@ -1,26 +1,28 @@
|
|||||||
### 🗨️ Stackoverflow plugin
|
<!--header-->
|
||||||
|
|
||||||
The *stackoverflow* plugin lets you display your metrics, questions and answer from [stackoverflow](https://stackoverflow.com/).
|
|
||||||
|
|
||||||
<table>
|
<table>
|
||||||
<td align="center">
|
<tr><th colspan="2"><h3>🗨️ StackOverflow plugin</h3></th></tr>
|
||||||
<img src="https://github.com/lowlighter/metrics/blob/examples/metrics.plugin.stackoverflow.svg">
|
<tr><td colspan="2" align="center"><p>This plugin displays stats, questions and answer from <a href="https://stackoverflow.com/">stackoverflow</a>.</p>
|
||||||
<img width="900" height="1" alt="">
|
</td></tr>
|
||||||
</td>
|
<tr>
|
||||||
|
<th rowspan="3">Supported features<br><sub><a href="metadata.yml">→ Full specification</a></sub></th>
|
||||||
|
<td><a href="/source/templates/classic"><code>📗 Classic template</code></a></td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<td><code>👤 Users</code> <code>👥 Organizations</code></td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<td><i>No tokens are required for this plugin</i></td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<td colspan="2" align="center">
|
||||||
|
<img src="https://github.com/lowlighter/metrics/blob/examples/metrics.plugin.stackoverflow.svg" alt=""></img>
|
||||||
|
<img width="900" height="1" alt="">
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
</table>
|
</table>
|
||||||
|
<!--/header-->
|
||||||
|
|
||||||
<details>
|
## ➡️ Available options
|
||||||
<summary>💬 Get your user id</summary>
|
|
||||||
|
|
||||||
Go to [stackoverflow.com](https://stackoverflow.com/) and click on your account profile.
|
|
||||||
|
|
||||||
Your user id will be in both url and search bar.
|
|
||||||
|
|
||||||

|
|
||||||
|
|
||||||
</details>
|
|
||||||
|
|
||||||
#### ➡️ Available options
|
|
||||||
|
|
||||||
<!--options-->
|
<!--options-->
|
||||||
<table>
|
<table>
|
||||||
@@ -29,7 +31,7 @@ Your user id will be in both url and search bar.
|
|||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<td nowrap="nowrap"><code>plugin_stackoverflow</code></td>
|
<td nowrap="nowrap"><code>plugin_stackoverflow</code></td>
|
||||||
<td rowspan="2"><p>Stackoverflow metrics</p>
|
<td rowspan="2"><p>Enable stackoverflow plugin</p>
|
||||||
<img width="900" height="1" alt=""></td>
|
<img width="900" height="1" alt=""></td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
@@ -49,7 +51,13 @@ Your user id will be in both url and search bar.
|
|||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<td nowrap="nowrap"><code>plugin_stackoverflow_sections</code></td>
|
<td nowrap="nowrap"><code>plugin_stackoverflow_sections</code></td>
|
||||||
<td rowspan="2"><p>Sections to display</p>
|
<td rowspan="2"><p>Displayed sections</p>
|
||||||
|
<ul>
|
||||||
|
<li><code>answers-top</code>: display most popular answers</li>
|
||||||
|
<li><code>answers-recent</code>: display recent answers</li>
|
||||||
|
<li><code>questions-top</code>: display most popular questions</li>
|
||||||
|
<li><code>questions-recent</code>: display recent questions</li>
|
||||||
|
</ul>
|
||||||
<img width="900" height="1" alt=""></td>
|
<img width="900" height="1" alt=""></td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
@@ -61,7 +69,7 @@ Your user id will be in both url and search bar.
|
|||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<td nowrap="nowrap"><code>plugin_stackoverflow_limit</code></td>
|
<td nowrap="nowrap"><code>plugin_stackoverflow_limit</code></td>
|
||||||
<td rowspan="2"><p>Maximum number of entries to display per section</p>
|
<td rowspan="2"><p>Display limit (per section)</p>
|
||||||
<img width="900" height="1" alt=""></td>
|
<img width="900" height="1" alt=""></td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
@@ -74,7 +82,8 @@ Your user id will be in both url and search bar.
|
|||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<td nowrap="nowrap"><code>plugin_stackoverflow_lines</code></td>
|
<td nowrap="nowrap"><code>plugin_stackoverflow_lines</code></td>
|
||||||
<td rowspan="2"><p>Maximum number of lines to display per question or answer</p>
|
<td rowspan="2"><p>Display limit for questions and answers</p>
|
||||||
|
<p>Code snippets count as a single line and must be configured with <code>plugin_stackoverflow_lines_snippet</code> instead</p>
|
||||||
<img width="900" height="1" alt=""></td>
|
<img width="900" height="1" alt=""></td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
@@ -82,11 +91,12 @@ Your user id will be in both url and search bar.
|
|||||||
<i>(0 ≤
|
<i>(0 ≤
|
||||||
𝑥)</i>
|
𝑥)</i>
|
||||||
<br>
|
<br>
|
||||||
|
<b>zero behaviour:</b> disable</br>
|
||||||
<b>default:</b> 4<br></td>
|
<b>default:</b> 4<br></td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<td nowrap="nowrap"><code>plugin_stackoverflow_lines_snippet</code></td>
|
<td nowrap="nowrap"><code>plugin_stackoverflow_lines_snippet</code></td>
|
||||||
<td rowspan="2"><p>Maximum number of lines to display per code snippet</p>
|
<td rowspan="2"><p>Display limit for code snippets</p>
|
||||||
<img width="900" height="1" alt=""></td>
|
<img width="900" height="1" alt=""></td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
@@ -94,14 +104,13 @@ Your user id will be in both url and search bar.
|
|||||||
<i>(0 ≤
|
<i>(0 ≤
|
||||||
𝑥)</i>
|
𝑥)</i>
|
||||||
<br>
|
<br>
|
||||||
|
<b>zero behaviour:</b> disable</br>
|
||||||
<b>default:</b> 2<br></td>
|
<b>default:</b> 2<br></td>
|
||||||
</tr>
|
</tr>
|
||||||
</table>
|
</table>
|
||||||
<!--/options-->
|
<!--/options-->
|
||||||
|
|
||||||
*[→ Full specification](metadata.yml)*
|
## ℹ️ Examples workflows
|
||||||
|
|
||||||
#### ℹ️ Examples workflows
|
|
||||||
|
|
||||||
<!--examples-->
|
<!--examples-->
|
||||||
```yaml
|
```yaml
|
||||||
@@ -117,4 +126,4 @@ with:
|
|||||||
plugin_stackoverflow_limit: 2
|
plugin_stackoverflow_limit: 2
|
||||||
|
|
||||||
```
|
```
|
||||||
<!--/examples-->
|
<!--/examples-->
|
||||||
|
|||||||
@@ -1,5 +1,8 @@
|
|||||||
name: "🗨️ Stackoverflow plugin"
|
name: "🗨️ StackOverflow plugin"
|
||||||
category: social
|
category: social
|
||||||
|
description: This plugin displays stats, questions and answer from [stackoverflow](https://stackoverflow.com/).
|
||||||
|
examples:
|
||||||
|
default: https://github.com/lowlighter/metrics/blob/examples/metrics.plugin.stackoverflow.svg
|
||||||
index: 3
|
index: 3
|
||||||
supports:
|
supports:
|
||||||
- user
|
- user
|
||||||
@@ -7,52 +10,52 @@ supports:
|
|||||||
scopes: []
|
scopes: []
|
||||||
inputs:
|
inputs:
|
||||||
|
|
||||||
# Enable or disable plugin
|
|
||||||
plugin_stackoverflow:
|
plugin_stackoverflow:
|
||||||
description: Stackoverflow metrics
|
description: Enable stackoverflow plugin
|
||||||
type: boolean
|
type: boolean
|
||||||
default: no
|
default: no
|
||||||
|
|
||||||
# Stackoverflow user id
|
|
||||||
# To obtain it, extract the identifier on your account page url
|
|
||||||
plugin_stackoverflow_user:
|
plugin_stackoverflow_user:
|
||||||
description: Stackoverflow user id
|
description: Stackoverflow user id
|
||||||
type: number
|
type: number
|
||||||
default: 0
|
default: 0
|
||||||
|
|
||||||
# Sections to display
|
|
||||||
plugin_stackoverflow_sections:
|
plugin_stackoverflow_sections:
|
||||||
description: Sections to display
|
description: |
|
||||||
|
Displayed sections
|
||||||
|
- `answers-top`: display most popular answers
|
||||||
|
- `answers-recent`: display recent answers
|
||||||
|
- `questions-top`: display most popular questions
|
||||||
|
- `questions-recent`: display recent questions
|
||||||
type: array
|
type: array
|
||||||
format: comma-separated
|
format: comma-separated
|
||||||
default: answers-top, questions-recent
|
default: answers-top, questions-recent
|
||||||
values:
|
values:
|
||||||
- answers-top # Display top answers
|
- answers-top
|
||||||
- answers-recent # Display recent answers
|
- answers-recent
|
||||||
- questions-top # Display top questions
|
- questions-top
|
||||||
- questions-recent # Display recent questions
|
- questions-recent
|
||||||
|
|
||||||
# Number of entries to display per section
|
|
||||||
plugin_stackoverflow_limit:
|
plugin_stackoverflow_limit:
|
||||||
description: Maximum number of entries to display per section
|
description: Display limit (per section)
|
||||||
type: number
|
type: number
|
||||||
default: 2
|
default: 2
|
||||||
min: 1
|
min: 1
|
||||||
max: 30
|
max: 30
|
||||||
|
|
||||||
# Number of lines to display per question or answer
|
|
||||||
# Code snippets will take one line slot and should be configured with "plugin_stackoverflow_lines_snippet" instead
|
|
||||||
# Set to 0 to disable limitations
|
|
||||||
plugin_stackoverflow_lines:
|
plugin_stackoverflow_lines:
|
||||||
description: Maximum number of lines to display per question or answer
|
description: |
|
||||||
|
Display limit for questions and answers
|
||||||
|
|
||||||
|
Code snippets count as a single line and must be configured with `plugin_stackoverflow_lines_snippet` instead
|
||||||
type: number
|
type: number
|
||||||
default: 4
|
default: 4
|
||||||
min: 0
|
min: 0
|
||||||
|
zero: disable
|
||||||
|
|
||||||
# Number of lines to display per code snippet
|
|
||||||
# Set to 0 to disable limitations
|
|
||||||
plugin_stackoverflow_lines_snippet:
|
plugin_stackoverflow_lines_snippet:
|
||||||
description: Maximum number of lines to display per code snippet
|
description: Display limit for code snippets
|
||||||
type: number
|
type: number
|
||||||
default: 2
|
default: 2
|
||||||
min: 0
|
min: 0
|
||||||
|
zero: disable
|
||||||
|
|||||||
Reference in New Issue
Block a user