62 lines
1.5 KiB
YAML
62 lines
1.5 KiB
YAML
name: "🗨️ StackOverflow plugin"
|
|
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
|
|
supports:
|
|
- user
|
|
- organization
|
|
scopes: []
|
|
inputs:
|
|
|
|
plugin_stackoverflow:
|
|
description: Enable stackoverflow plugin
|
|
type: boolean
|
|
default: no
|
|
|
|
plugin_stackoverflow_user:
|
|
description: Stackoverflow user id
|
|
type: number
|
|
default: 0
|
|
|
|
plugin_stackoverflow_sections:
|
|
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
|
|
format: comma-separated
|
|
default: answers-top, questions-recent
|
|
values:
|
|
- answers-top
|
|
- answers-recent
|
|
- questions-top
|
|
- questions-recent
|
|
|
|
plugin_stackoverflow_limit:
|
|
description: Display limit (per section)
|
|
type: number
|
|
default: 2
|
|
min: 1
|
|
max: 30
|
|
|
|
plugin_stackoverflow_lines:
|
|
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
|
|
default: 4
|
|
min: 0
|
|
zero: disable
|
|
|
|
plugin_stackoverflow_lines_snippet:
|
|
description: Display limit for code snippets
|
|
type: number
|
|
default: 2
|
|
min: 0
|
|
zero: disable
|