From e7cf217dba05fe22e913d5e79c2c9c763387302b Mon Sep 17 00:00:00 2001 From: XhmikosR Date: Sun, 2 Mar 2025 09:22:14 +0200 Subject: [PATCH] Tweak npm scripts Now CI runs build once. Signed-off-by: XhmikosR --- .github/workflows/ci.yml | 2 +- package.json | 7 ++++--- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 5c302dc17..3f5b1fefa 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -41,7 +41,7 @@ jobs: run: npm ci - name: Build docs - run: mkdocs build --strict + run: npm run build - name: Test run: npm test diff --git a/package.json b/package.json index c6a0511d8..0ba2dd00c 100644 --- a/package.json +++ b/package.json @@ -16,11 +16,12 @@ }, "homepage": "https://docs.pi-hole.net/", "scripts": { - "build": "mkdocs build --clean", + "build": "mkdocs build --clean --strict", "markdownlint": "markdownlint-cli2 \"**/*.md\" \"!**/node_modules/**\"", - "linkinator": "npm run build && linkinator site --recurse --silent --skip \"^(?!http://localhost)\"", + "linkinator": "linkinator site --recurse --silent --skip \"^(?!http://localhost)\"", "test": "npm run markdownlint && npm run linkinator", - "serve": "mkdocs serve --dev-addr 0.0.0.0:8000" + "serve": "mkdocs serve --dev-addr 0.0.0.0:8000", + "start": "npm run serve" }, "devDependencies": { "linkinator": "^6.1.2",