From b5d5809faec798ef91fa4381e2f2a044a9cb15a3 Mon Sep 17 00:00:00 2001 From: Ralf Handl Date: Wed, 13 Nov 2024 09:21:52 +0100 Subject: [PATCH] Validate src/oas.md --- .github/workflows/validate-markdown.yaml | 4 ++-- package.json | 3 ++- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/.github/workflows/validate-markdown.yaml b/.github/workflows/validate-markdown.yaml index cd9d503ae4..577a16c8e6 100644 --- a/.github/workflows/validate-markdown.yaml +++ b/.github/workflows/validate-markdown.yaml @@ -28,6 +28,6 @@ jobs: with: node-version: '20.x' - name: Validate markdown - run: npx --yes mdv versions/3.*.md + run: npx --yes mdv versions/3.*.md src/oas.md - name: Lint markdown 3.0.4, 3.1.1, and later - run: npx --yes markdownlint-cli --config .markdownlint.yaml versions/3.0.4.md versions/3.1.[^0].md versions/3.[2-9].*.md + run: npx --yes markdownlint-cli --config .markdownlint.yaml versions/3.0.4.md versions/3.1.[^0].md versions/3.[2-9].*.md src/oas.md diff --git a/package.json b/package.json index e8cdb13a86..948d42887a 100644 --- a/package.json +++ b/package.json @@ -14,7 +14,8 @@ "license": "Apache-2.0", "scripts": { "build": "bash ./scripts/md2html/build.sh", - "test": "c8 --100 vitest --watch=false" + "test": "c8 --100 vitest --watch=false", + "validate-markdown": "npx mdv src/oas.md && npx markdownlint-cli src/oas.md" }, "readmeFilename": "README.md", "files": [