generated from mintlify/starter
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathproject.json
More file actions
52 lines (52 loc) · 1.48 KB
/
project.json
File metadata and controls
52 lines (52 loc) · 1.48 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
{
"name": "docs",
"$schema": "https://raw.githubusercontent.com/nrwl/nx/refs/heads/master/packages/nx/schemas/project-schema.json",
"projectType": "library",
"sourceRoot": ".",
"targets": {
"dev": {
"executor": "nx:run-commands",
"options": {
"command": "mintlify dev"
}
},
"validate-broken-links": {
"executor": "nx:run-commands",
"options": {
"command": "output=$(mintlify broken-links); echo \"$output\"; echo \"$output\" | grep -q 'found.*broken links' && exit 1 || exit 0"
}
},
"validate-accessibility": {
"executor": "nx:run-commands",
"options": {
"command": "mintlify a11y"
}
},
"validate-openapi": {
"executor": "nx:run-commands",
"options": {
"commands": [
"for file in $(find . -type f \\( -name 'openapi.yaml' -o -name 'openapi.yml' -o -name 'openapi.json' \\) 2>/dev/null); do mintlify openapi-check \"$file\"; done"
]
}
},
"validate-schema": {
"executor": "nx:run-commands",
"options": {
"command": "npx ajv-cli test -s mintlify.schema.json -d docs.json -c ajv-formats --valid --strict=false"
}
},
"validate-all": {
"executor": "nx:run-commands",
"dependsOn": [
"validate-broken-links",
"validate-accessibility",
"validate-openapi",
"validate-schema"
],
"options": {
"commands": ["echo 'All validations complete'"]
}
}
}
}