name: 🗨️ Stack Overflow
category: social
description: |
  This plugin displays stats, questions and answer from [Stack Overflow](https://stackoverflow.com/).
disclaimer: |
  This plugin is not affiliated, associated, authorized, endorsed by, or in any way officially connected with [Stack Overflow](https://stackoverflow.com/).
  All product and company names are trademarks™ or registered® trademarks of their respective holders.
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
    preset: no

  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 (entries per section)
    type: number
    default: 2
    min: 1
    max: 30

  plugin_stackoverflow_lines:
    description: |
      Display limit (lines per questions and answers)

      Code snippets count as a single line and must be configured with [`plugin_stackoverflow_lines_snippet`](/source/plugins/stackoverflow/README.md#plugin_stackoverflow_lines_snippet) instead
    type: number
    default: 4
    min: 0
    zero: disable

  plugin_stackoverflow_lines_snippet:
    description: |
      Display limit (lines per code snippets)
    type: number
    default: 2
    min: 0
    zero: disable
