-
Notifications
You must be signed in to change notification settings - Fork 12
/
blueprints.yaml
182 lines (176 loc) · 4.71 KB
/
blueprints.yaml
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
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
name: Page Toc
type: plugin
slug: page-toc
version: 3.2.4
description: Generate a table of contents and anchors from a page
icon: list
author:
name: Trilby Media, LLC
email: [email protected]
url: http://trilby.media
homepage: http://trilby.media
keywords: grav, plugin, toc, anchors
bugs: https://github.com/trilbymedia/grav-plugin-page-toc/issues
docs: https://github.com/trilbymedia/grav-plugin-page-toc/blob/develop/README.md
license: MIT
dependencies:
- { name: grav, version: '>=1.7.26' }
form:
validation: strict
fields:
enabled:
type: toggle
label: PLUGIN_ADMIN.PLUGIN_STATUS
highlight: 1
default: 1
options:
1: PLUGIN_ADMIN.ENABLED
0: PLUGIN_ADMIN.DISABLED
validate:
type: bool
include_css:
type: toggle
label: PLUGIN_PAGE_TOC.INCLUDE_CSS
highlight: 1
default: 1
options:
1: PLUGIN_ADMIN.ENABLED
0: PLUGIN_ADMIN.DISABLED
validate:
type: bool
active:
type: toggle
label: PLUGIN_PAGE_TOC.ACTIVE_BY_DEFAULT
highlight: 1
default: 1
options:
1: PLUGIN_ADMIN.ENABLED
0: PLUGIN_ADMIN.DISABLED
validate:
type: bool
templates:
type: selectize
label: PLUGIN_PAGE_TOC.ACTIVE_FOR_TEMPLATES
help: PLUGIN_PAGE_TOC.ACTIVE_FOR_TEMPLATES_HELP
validate:
type: commalist
toc_section:
type: section
title: PLUGIN_PAGE_TOC.TOC_SECTION
underline: true
fields:
start:
type: select
label: PLUGIN_PAGE_TOC.START_TOC_HEADERS
help: PLUGIN_PAGE_TOC.START_TOC_HEADERS_HELP
size: x-small
classes: fancy
options:
1: H1
2: H2
3: H3
4: H4
5: H5
6: H6
validate:
type: number
depth:
type: range
label: PLUGIN_PAGE_TOC.DEPTH_TOC_HEADERS
help: PLUGIN_PAGE_TOC.DEPTH_TOC_HEADERS_HELP
classes: fancy
validate:
min: 1
max: 6
hclass:
type: text
label: PLUGIN_PAGE_TOC.HEADER_CSS_CLASSES
help: PLUGIN_PAGE_TOC.HEADER_CSS_CLASSES_HELP
tags:
type: selectize
label: PLUGIN_PAGE_TOC.ALLOWED_HTML_TAGS
help: PLUGIN_PAGE_TOC.ALLOWED_HTML_TAGS_HELP
validate:
type: commalist
anchors_section:
type: section
title: PLUGIN_PAGE_TOC.ANCHORS_SECTION
underline: true
fields:
anchors.start:
type: select
label: PLUGIN_PAGE_TOC.START_ANCHOR_HEADERS
size: x-small
classes: fancy
options:
1: H1
2: H2
3: H3
4: H4
5: H5
6: H6
validate:
type: number
anchors.depth:
type: range
label: PLUGIN_PAGE_TOC.DEPTH_ANCHOR_HEADERS
help: PLUGIN_PAGE_TOC.DEPTH_ANCHOR_HEADERS_HELP
classes: fancy
validate:
min: 1
max: 6
anchors.link:
type: toggle
label: PLUGIN_PAGE_TOC.LINK_ANCHOR_HEADERS
highlight: 1
default: 1
options:
1: Enabled
0: Disabled
validate:
type: bool
anchors.aria:
type: text
label: PLUGIN_PAGE_TOC.ARIA_LABEL
default: Anchor
anchors.class:
type: text
label: PLUGIN_PAGE_TOC.ANCHORS_CLASS
help: PLUGIN_PAGE_TOC.ANCHORS_CLASS_HELP
anchors.icon:
type: text
label: PLUGIN_PAGE_TOC.ANCHORS_ICON
help: PLUGIN_PAGE_TOC.ANCHORS_ICON_HELP
default: '#'
size: x-small
anchors.position:
type: select
label: PLUGIN_PAGE_TOC.ANCHORS_POSITION
help: PLUGIN_PAGE_TOC.ANCHORS_POSITION_HELP
size: small
default: after
options:
before: PLUGIN_PAGE_TOC.BEFORE_TEXT
after: PLUGIN_PAGE_TOC.AFTER_TEXT
anchors.copy_to_clipboard:
type: toggle
label: PLUGIN_PAGE_TOC.COPY_TO_CLIPBOARD
help: PLUGIN_PAGE_TOC.COPY_TO_CLIPBOARD_HELP
highlight: 1
default: 1
options:
1: Enabled
0: Disabled
validate:
type: bool
anchors.slug_maxlen:
type: number
label: PLUGIN_PAGE_TOC.SLUG_MAXLEN
help: PLUGIN_PAGE_TOC.SLUG_MAXLEN_HELP
size: x-small
default: 25
append: 'chars'
anchors.slug_prefix:
type: text
label: PLUGIN_PAGE_TOC.SLUG_PREFIX
help: PLUGIN_PAGE_TOC.SLUG_PREFIX_HELP