1
0
mirror of https://github.com/djhackersdev/bemanitools.git synced 2024-11-30 17:24:30 +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 \ build-docker \
clean \ clean \
code-format \ code-format \
doc-format \
print-building \ print-building \
print-release \ print-release \
run-tests \ run-tests \
@ -53,6 +54,7 @@ release: \
print-release \ print-release \
clean \ clean \
code-format \ code-format \
doc-format \
all \ all \
run-tests run-tests
@ -74,6 +76,10 @@ code-format:
$(V)echo "Applying clang-format..." $(V)echo "Applying clang-format..."
$(V)find src/main src/test -name '*.c' -o -name '*.h' | xargs clang-format -i -style=file $(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: run-tests:
$(V)echo "Running tests..." $(V)echo "Running tests..."
$(V)./run-tests-wine.sh $(V)./run-tests-wine.sh