Skip to content
This repository has been archived by the owner on Apr 2, 2024. It is now read-only.

Commit

Permalink
Use glob filter for mbox instead of find
Browse files Browse the repository at this point in the history
  • Loading branch information
jgpruitt authored and paulfantom committed May 18, 2022
1 parent 73bae80 commit ee7f76e
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -53,16 +53,15 @@ deploy/helm-chart/templates/prometheus-rule.yaml:
./scripts/generate-helm-alerts.sh

MDOX_VALIDATE_CONFIG?=.mdox.validate.yaml
MD_FILES_TO_FORMAT=$(shell find -type f -name '*.md')
.PHONY: docs
docs:
@echo ">> formatting and local/remote links"
$(MDOX_BIN) fmt --soft-wraps -l --links.validate.config-file=$(MDOX_VALIDATE_CONFIG) $(MD_FILES_TO_FORMAT)
$(MDOX_BIN) fmt --soft-wraps -l --links.validate.config-file=$(MDOX_VALIDATE_CONFIG) **/*.md

.PHONY: check-docs
check-docs:
@echo ">> checking formatting and local/remote links"
$(MDOX_BIN) fmt --soft-wraps --check -l --links.validate.config-file=$(MDOX_VALIDATE_CONFIG) $(MD_FILES_TO_FORMAT)
$(MDOX_BIN) fmt --soft-wraps --check -l --links.validate.config-file=$(MDOX_VALIDATE_CONFIG) **/*.md

.PHONY: all
all: build test go-fmt go-lint

0 comments on commit ee7f76e

Please sign in to comment.