diff --git a/.markdownlint.yaml b/.markdownlint.yaml deleted file mode 100644 index 8ece4c7613e..00000000000 --- a/.markdownlint.yaml +++ /dev/null @@ -1,3 +0,0 @@ ---- -MD013: false -MD029: false diff --git a/.md_style.rb b/.md_style.rb new file mode 100644 index 00000000000..73adf8ae47e --- /dev/null +++ b/.md_style.rb @@ -0,0 +1,4 @@ +all +exclude_rule 'MD013' +exclude_rule 'MD029' +rule 'MD007', :indent => 2 diff --git a/.mdlrc b/.mdlrc new file mode 100644 index 00000000000..8ca55a8cee5 --- /dev/null +++ b/.mdlrc @@ -0,0 +1 @@ +style "#{File.dirname(__FILE__)}/.md_style.rb" diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 5b2f78f7aef..d79a716ad40 100644 --- a/.pre-commit-config.yaml +++ b/.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 diff --git a/docs/cloud_providers/openstack.md b/docs/cloud_providers/openstack.md index 6f53da53444..1506be370c4 100644 --- a/docs/cloud_providers/openstack.md +++ b/docs/cloud_providers/openstack.md @@ -1,4 +1,3 @@ - # OpenStack ## Known compatible public clouds diff --git a/docs/operations/recover-control-plane.md b/docs/operations/recover-control-plane.md index c54808b41cb..d54aa13f58a 100644 --- a/docs/operations/recover-control-plane.md +++ b/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.