Skip to content

Commit 2cb847f

Browse files
committed
markdown linting added
Signed-off-by: Kairvee Vaswani <[email protected]>
1 parent f246109 commit 2cb847f

File tree

4 files changed

+30
-3
lines changed

4 files changed

+30
-3
lines changed

.github/workflows/markdown.yaml

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
name: Markdown Lint
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
pull_request:
8+
branches:
9+
- main
10+
11+
jobs:
12+
markdownlint:
13+
runs-on: ubuntu-latest
14+
steps:
15+
- name: Checkout code
16+
uses: actions/checkout@v3
17+
18+
- name: Run markdownlint with auto-fix
19+
uses: DavidAnson/markdownlint-cli2-action@v19
20+
with:
21+
fix: true # Enable auto-fixing
22+
globs: '**/*.md' # Specify the files to lint
23+
config: '.markdownlint.json' # personal config file based over the choices told

.markdownlint.json

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
{
2+
"MD013": false,
3+
"MD033": false
4+
}

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -402,7 +402,7 @@ as non-DHCP static addresses.
402402

403403
- Create `/etc/bootptab` like this. Make sure not to drop the "%%" header.
404404

405-
```
405+
```bash
406406
# bootptab
407407
%%
408408
# hostname hwtype hwaddr ipaddr bootfile
@@ -411,7 +411,7 @@ tmp-vm01 1 de:ad:be:ef:00:01 192.168.105.100
411411

412412
- Reload the DHCP daemon.
413413

414-
```
414+
```bas
415415
sudo /bin/launchctl kickstart -kp system/com.apple.bootpd
416416
```
417417

test/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ test/perf.sh create -c 3 2>perf.log
3232
Run all tests with shared and bridged modes, vz and qemu vm type,
3333
using 1, 2, and 3 vms:
3434

35-
```
35+
```bash
3636
for v in vz qemu; do
3737
for c in $(seq 3); do
3838
test/perf.sh run -c $c -v $v 2>>perf.log

0 commit comments

Comments
 (0)