mirror of
https://github.com/djhackersdev/bemanitools.git
synced 2024-11-23 22:30:56 +01:00
feat(dev): Add markdown document formatting
Apply a consistent style across all markdown documents. Use mdformat (https://github.com/executablebooks/mdformat) to achieve that. Improves maintainability and readability.
This commit is contained in:
parent
6efbf71c30
commit
0897a25174
@ -43,6 +43,7 @@ FORCE:
|
||||
build-docker \
|
||||
clean \
|
||||
code-format \
|
||||
doc-format \
|
||||
print-building \
|
||||
print-release \
|
||||
run-tests \
|
||||
@ -53,6 +54,7 @@ release: \
|
||||
print-release \
|
||||
clean \
|
||||
code-format \
|
||||
doc-format \
|
||||
all \
|
||||
run-tests
|
||||
|
||||
@ -74,6 +76,10 @@ code-format:
|
||||
$(V)echo "Applying clang-format..."
|
||||
$(V)find src/main src/test -name '*.c' -o -name '*.h' | xargs clang-format -i -style=file
|
||||
|
||||
doc-format:
|
||||
$(V)echo "Applying mdformat on all docs..."
|
||||
$(V)find . -name '*.md' | xargs mdformat --wrap 100
|
||||
|
||||
run-tests:
|
||||
$(V)echo "Running tests..."
|
||||
$(V)./run-tests-wine.sh
|
||||
|
Loading…
Reference in New Issue
Block a user