diff --git a/Makefile b/Makefile index dce9b7c7d..147a45dea 100644 --- a/Makefile +++ b/Makefile @@ -15,6 +15,13 @@ lint: ## Run the linter @echo "Running the linter" @golangci-lint run +.PHONY: md-lint +md-lint: ## Lint Markdown docs + @echo "Running markdownlint-cli" + @# Each directory has its own .markdownlint.yaml configuration + @docker run -v $$PWD:/workdir ghcr.io/igorshubovych/markdownlint-cli:latest "*.md" + @docker run -v $$PWD/docs:/workdir ghcr.io/igorshubovych/markdownlint-cli:latest "*.md" + .PHONY: generate generate: ## Generate the file that are commited to the repo @echo "Generating Go files" @@ -27,7 +34,7 @@ graphql-schema: ## Generate the graphql schema file @mv offchain/schema.graphql api/graphql/reader.graphql .PHONY: check-generate -check-generate: generate graphql-schema ## Check whether the generated files are in sync +check-generate: generate graphql-schema ## Check whether the generated files are in sync @echo "Checking differences on the repository..." @if git diff --exit-code; then \ echo "No differences found."; \