Files
docs/package.json
XhmikosR d87d388443 Tweak npm scripts
* add `--strict` in the mkdocs build like on CI
* add a `start` script to run serve (can be used with `npm start`)
* move `build` to `pretest`

As a result, build runs once on CI now
2025-03-30 09:08:34 +03:00

32 lines
906 B
JSON

{
"name": "docs",
"private": true,
"version": "1.0.0",
"description": "Source for the official Pi-hole documentation",
"main": "",
"repository": {
"type": "git",
"url": "git+https://github.com/pi-hole/docs.git"
},
"keywords": [],
"author": "",
"license": "CC-BY-SA-4.0",
"bugs": {
"url": "https://github.com/pi-hole/docs/issues"
},
"homepage": "https://docs.pi-hole.net/",
"scripts": {
"build": "mkdocs build --clean --strict",
"markdownlint": "markdownlint-cli2 \"**/*.md\" \"!**/node_modules/**\"",
"linkinator": "linkinator site --recurse --silent --skip \"^(?!http://localhost)\"",
"pretest": "npm run build",
"test": "npm run markdownlint && npm run linkinator",
"serve": "mkdocs serve --dev-addr 0.0.0.0:8000",
"start": "npm run serve"
},
"devDependencies": {
"linkinator": "^6.1.2",
"markdownlint-cli2": "0.17.2"
}
}