Skip to content

Commit

Permalink
Add markdown linting
Browse files Browse the repository at this point in the history
  • Loading branch information
DanNixon committed Dec 5, 2023
1 parent 89aadb5 commit 2f8cec6
Show file tree
Hide file tree
Showing 5 changed files with 12 additions and 0 deletions.
4 changes: 4 additions & 0 deletions .mdl_style.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
all
exclude_rule 'MD013'
rule 'MD007', :indent => 2
rule 'MD029', :style => :ordered
1 change: 1 addition & 0 deletions .mdlrc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
style '.mdl_style.rb'
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,13 @@ nixos-rebuild switch --flake .#<hostname>
## Home Manager

Bootstrap:

```sh
nix run nixpkgs#home-manager -- switch --flake .
```

Normal:

```sh
home-manager switch --flake .
```
1 change: 1 addition & 0 deletions flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,7 @@

alejandra
treefmt
mdl

sops
];
Expand Down
4 changes: 4 additions & 0 deletions treefmt.toml
Original file line number Diff line number Diff line change
Expand Up @@ -5,3 +5,7 @@ excludes = [
"*/hardware-configuration.nix",
"modules/home-manager/email/secrets.nix",
]

[formatter.markdown]
command = "mdl"
includes = [ "*.md" ]

0 comments on commit 2f8cec6

Please sign in to comment.