From 444a2f15cb5b0c6ee266d409309fce7c071d44b0 Mon Sep 17 00:00:00 2001 From: Tisham Dhar Date: Fri, 25 Aug 2023 10:02:37 +0930 Subject: [PATCH] fix(docs): npx spellcheker, use node glob --- .github/workflows/docs-lint.yml | 1 - Makefile | 3 ++- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/docs-lint.yml b/.github/workflows/docs-lint.yml index 4e02e110..168ece40 100644 --- a/.github/workflows/docs-lint.yml +++ b/.github/workflows/docs-lint.yml @@ -23,5 +23,4 @@ jobs: - uses: actions/setup-node@v3 with: node-version: 18 - - run: npm install --global spellchecker-cli - run: make docs-lint \ No newline at end of file diff --git a/Makefile b/Makefile index 859d5b34..b928cae0 100644 --- a/Makefile +++ b/Makefile @@ -276,6 +276,7 @@ e2e-exec: ginkgo e2e-destroy: kind delete cluster --name capsule +SPELL_CHECKER = npx spellchecker-cli docs-lint: - cd docs/content && spellchecker *.md */*.md -d dictionary.txt + cd docs/content && $(SPELL_CHECKER) -f "*.md" "*/*.md" -d dictionary.txt