-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocs.yml
102 lines (102 loc) · 3.92 KB
/
docs.yml
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
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
path:
arguments:
map: &arg_map
required: false
type: string
description: The name of the asset map hash table within `site.data`.
defaults:
- "include.map"
- "page.asset_map.name"
- "site.asset_map.name"
- '"manifest"'
name: &arg_name
required: true
type: string
description: The name of the asset within the asset map.
error:
description: "There are four errors you can throw, from most severe to least: `alert`, `error`, `comment`, and `404`. All `asset_map/*` includes respect the same options for an `error` parameter."
arguments:
message:
required: true
type: string
description: A specific error message.
error: &arg_error
required: false
type: one of "alert", "error", "comment", or "404"
description: What kind of error to raise.
defaults:
- "include.error"
- "site.asset_map.error"
- '"404" if jekyll.environment is "production", else "alert"'
script:
arguments:
map: *arg_map
name: *arg_name
error: *arg_error
"...other script tag attrs": &arg_script_tag_attrs
required: false
type: "bool or string"
description: "Other script tag attributes: [async](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/script#attr-async), [defer](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/script#attr-defer), [nomodule](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/script#attr-nomodule), [type](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/script#attr-type), [crossorigin](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/script#attr-crossorigin), [referrerpolicy](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/script#attr-referrerpolicy). "
defaults:
- "false/blank"
stylesheet:
arguments:
map: *arg_map
name: *arg_name
error: *arg_error
"...other stylesheet tag attrs": &arg_stylesheet_tag_attrs
required: false
type: "bool or string"
description: 'Other `<link rel="stylesheet">` attributes: [`crossorigin`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/link#attr-crossorigin), [`importance`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/link#attr-importance), [media](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/link#attr-media), [type](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/link#attr-type).'
defaults:
- "false/blank"
integrity:
arguments:
map: *arg_map
name: *arg_name
chunks_js:
arguments:
map: *arg_map
entrypoints: &arg_entrypoints
required: true
type: string
description: a list of entrypoint names, separated by `include.sep` or commas. Whitespace-sensitive.
sep: &arg_sep
required: false
type: string
description: the string that separates the entrypoint names in `include.entrypoints`.
defaults:
- '","'
asset_key:
description: the sub-array of the entrypoint containing the js chunk descriptors.
required: false
type: string
defaults:
- '"js"'
entrypoint_key:
required: false
type: string
defaults:
- '"entrypoints"'
description: where within the asset map to look for the arrays of chunks that make up your entrypoints.
error: *arg_error
"...other script tag attrs": *arg_script_tag_attrs
chunks_css:
arguments:
map: *arg_map
entrypoints: *arg_entrypoints
sep: *arg_sep
asset_key:
description: the sub-array of the entrypoint containing the css chunk descriptors.
required: false
type: string
defaults:
- '"css"'
entrypoint_key:
required: false
type: string
defaults:
- '"entrypoints"'
description: where within the asset map to look for the arrays of chunks that make up your entrypoints.
error: *arg_error
"...other stylesheet tag attrs": *arg_script_tag_attrs