Sign inSign up

kokuwaio/markdownlint

By kokuwaio

•Updated about 17 hours ago

A WoodpeckerCI plugin for markdownlint-cli to lint markdown files.

Image
Integration & delivery
Developer tools
0

10K+

kokuwaio/markdownlint repository overview

⁠Markdownlint WoodpeckerCI Plugin

pulls size dockerfile license prs issues

A Woodpecker CI⁠ plugin for markdownlint-cli⁠ to lint markdown files.
Also usable with Gitlab, Github or locally, see examples for usage.

⁠Features

  • preconfigure markdownlint-cli parameters
  • searches for markdown files recursive
  • runnable with local docker daemon

⁠Example

Woodpecker:

steps:
  markdownlint:
    depends_on: []
    image: kokuwaio/markdownlint:0.49.1
    settings:
      dot: true
      enable: [MD013, MD041]
    when:
      event: pull_request
      path: [.markdownlint.yaml, "**/*.md"]]

Gitlab: (using script is needed because of https://gitlab.com/gitlab-org/gitlab/-/issues/19717⁠)

markdownlint:
  needs: []
  stage: lint
  image:
    name: kokuwaio/markdownlint:0.49.1
    entrypoint: [""]
  script: [/usr/local/bin/entrypoint.sh]
  variables:
    PLUGIN_DOT: true
    PLUGIN_ENABLE: MD013,MD041
  rules:
    - if: $CI_PIPELINE_SOURCE == "merge_request_event"
      changes: [.markdownlint.yaml, "**/*.md"]

CLI:

docker run --rm --volume=$PWD:$PWD:rw --workdir=$PWD kokuwaio/markdownlint --fix

⁠Settings

Settings NameEnvironmentDefaultDescription
config-filePLUGIN_CONFIG_FILEnoneConfiguration file (JSON, JSONC, JS, YAML, or TOML)
dotPLUGIN_DOTtrueInclude files/folders with a dot (for example .github)
enablePLUGIN_ENABLEnoneEnable certain rules, e.g. --enable=MD013,MD041
disablePLUGIN_DISABLEnoneDisable certain rules, e.g. --disable=MD013,MD041

⁠Alternatives

ImageCommentamd64arm64
kokuwaio/markdownlint⁠Woodpecker pluginsizesize
ghcr.io/igorshubovych/markdownlint-cli⁠not a Woodpecker plugin, officialsizesize
tmknom/markdownlint⁠not a Woodpecker pluginsizesize
thegeeklab/markdownlint-cli⁠not a Woodpecker pluginsizesize
peterdavehello/markdownlint⁠not a Woodpecker plugin, outdatedsizesize
06kellyjac/markdownlint-cli⁠not a Woodpecker plugin, outdatedsizesize

Tag summary

Content type

Image

Digest

sha256:7269e8009…

Size

78.3 MB

Last updated

about 17 hours ago

docker pull kokuwaio/markdownlint