Skip to content

Commit

Permalink
pre-commit: adjust mardownlint default, md fixes
Browse files Browse the repository at this point in the history
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 markdownlint/markdownlint#373)
  • Loading branch information
VannTen committed May 28, 2024
1 parent 0faa805 commit ff48144
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 7 deletions.
3 changes: 0 additions & 3 deletions .markdownlint.yaml

This file was deleted.

4 changes: 4 additions & 0 deletions .md_style.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
all
exclude_rule 'MD013'
exclude_rule 'MD029'
rule 'MD007', :indent => 2
1 change: 1 addition & 0 deletions .mdlrc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
style "#{File.dirname(__FILE__)}/.md_style.rb"
3 changes: 1 addition & 2 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
1 change: 0 additions & 1 deletion docs/cloud_providers/openstack.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@

# OpenStack

## Known compatible public clouds
Expand Down
1 change: 0 additions & 1 deletion docs/operations/recover-control-plane.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@

# Recovering the control plane

To recover from broken nodes in the control plane use the "recover\-control\-plane.yml" playbook.
Expand Down

0 comments on commit ff48144

Please sign in to comment.