1
0
mirror of https://github.com/djhackersdev/bemanitools.git synced 2024-11-27 16:00:52 +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:
icex2 2024-01-29 23:17:04 +01:00 committed by icex2
parent 6efbf71c30
commit 0897a25174

View File

@ -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