mirror of
https://github.com/submariner-io/submariner-charts.git
synced 2026-09-20 21:30:35 +00:00
Add Markdown linting
Add linting for Markdown files, following norms from other repos. Signed-off-by: Daniel Farrell <dfarrell@redhat.com>
This commit is contained in:
committed by
Thomas Pantelis
parent
8c49e84959
commit
3ac4e14664
@@ -31,3 +31,15 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
config-file: ".markdownlinkcheck.json"
|
config-file: ".markdownlinkcheck.json"
|
||||||
check-modified-files-only: "yes"
|
check-modified-files-only: "yes"
|
||||||
|
|
||||||
|
markdownlint:
|
||||||
|
name: Markdown
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
- name: Check out the repository
|
||||||
|
uses: actions/checkout@v2
|
||||||
|
- name: Run markdownlint
|
||||||
|
uses: nosborn/github-action-markdown-cli@v1.1.1
|
||||||
|
with:
|
||||||
|
files: .
|
||||||
|
config_file: ".markdownlint.yml"
|
||||||
|
|||||||
@@ -0,0 +1,12 @@
|
|||||||
|
---
|
||||||
|
# Breaks reusing MD snippets extracted to files
|
||||||
|
first-line-heading: false
|
||||||
|
|
||||||
|
# Set maximum line Length to 140c to match Go linting
|
||||||
|
line-length:
|
||||||
|
line_length: 140
|
||||||
|
|
||||||
|
# Allow HTML span elements to set font sizes
|
||||||
|
no-inline-html:
|
||||||
|
allowed_elements:
|
||||||
|
- span
|
||||||
Reference in New Issue
Block a user