forked from github/docs
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathproducts-schema.js
49 lines (42 loc) · 1.26 KB
/
products-schema.js
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
module.exports = {
properties: {
name: {
required: true,
description: 'the product name',
type: 'string'
},
id: {
required: true,
description: 'an identifier for the product',
type: 'string'
},
href: {
required: true,
description: 'the href to the product landing page',
type: 'string',
pattern: '^(/|http)' // if internal, must start with a slash; if external, must start with http
},
dir: {
description: 'the local relative path to the product directory',
type: 'string',
pattern: '^content/.*?[^/]$' // must start with content, can't end with a slash
},
toc: {
description: 'the local relative path to the product toc page',
type: 'string',
pattern: '^content/.*?index.md$' // must start with content and end with index.md
},
hasEnterpriseUserVersions: {
description: 'boolean indicating whether the product has Enterprise User permalinks',
type: 'boolean'
},
external: {
description: 'boolean indicating whether the product has external docs',
type: 'boolean'
},
wip: {
description: 'boolean indicating whether the product should display in production',
type: 'boolean'
}
}
}