Browse Source

pre-commit: adjust mardownlint default, md fixes

Use a style file as recommended by upstream. This makes for only one
source of truth.
Conserve previous upstream default for MD007 (upstream default changed
here https://github.com/markdownlint/markdownlint/pull/373)
pull/11244/head
Max Gautier 6 months ago
parent
commit
ff48144607
Failed to extract signature
6 changed files with 6 additions and 7 deletions
  1. 3
      .markdownlint.yaml
  2. 4
      .md_style.rb
  3. 1
      .mdlrc
  4. 3
      .pre-commit-config.yaml
  5. 1
      docs/cloud_providers/openstack.md
  6. 1
      docs/operations/recover-control-plane.md

3
.markdownlint.yaml

@ -1,3 +0,0 @@
---
MD013: false
MD029: false

4
.md_style.rb

@ -0,0 +1,4 @@
all
exclude_rule 'MD013'
exclude_rule 'MD029'
rule 'MD007', :indent => 2

1
.mdlrc

@ -0,0 +1 @@
style "#{File.dirname(__FILE__)}/.md_style.rb"

3
.pre-commit-config.yaml

@ -24,8 +24,7 @@ repos:
rev: v0.11.0
hooks:
- id: markdownlint
args: [-r, "~MD013,~MD029"]
exclude: "^.git"
exclude: "^.github|(^docs/_sidebar\\.md$)"
- repo: https://github.com/shellcheck-py/shellcheck-py
rev: v0.10.0.1

1
docs/cloud_providers/openstack.md

@ -1,4 +1,3 @@
# OpenStack
## Known compatible public clouds

1
docs/operations/recover-control-plane.md

@ -1,4 +1,3 @@
# Recovering the control plane
To recover from broken nodes in the control plane use the "recover\-control\-plane.yml" playbook.

Loading…
Cancel
Save