File tree Expand file tree Collapse file tree 1 file changed +12
-0
lines changed Expand file tree Collapse file tree 1 file changed +12
-0
lines changed Original file line number Diff line number Diff line change @@ -28,6 +28,12 @@ check: ## Check code for compilation errors
28
28
check-format : # # Check code formatting
29
29
cargo +nightly fmt -- --check
30
30
31
+ .PHONY : check-md
32
+ check-md : # # Check if markdown files are properly formatted
33
+ @echo " Checking markdown formatting..."
34
+ npx prettier --check " **/*.md"
35
+ @echo " Markdown format check completed."
36
+
31
37
.PHONY : clean
32
38
clean : # # Clean build artifacts
33
39
cargo clean
@@ -36,6 +42,12 @@ clean: ## Clean build artifacts
36
42
format : # # Format code using rustfmt
37
43
cargo +nightly fmt
38
44
45
+ .PHONY : format-md
46
+ format-md : # # Format all markdown files to wrap at 80 characters
47
+ @echo " Formatting markdown files..."
48
+ npx prettier --write " **/*.md"
49
+ @echo " Markdown files have been formatted to 80 characters."
50
+
39
51
.PHONY : lint
40
52
lint : # # Run linter (clippy)
41
53
cargo clippy --all-targets -- -D warnings --allow clippy::mutable_key_type
You can’t perform that action at this time.
0 commit comments