-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcloudcannon.config.yml
211 lines (205 loc) · 4.81 KB
/
cloudcannon.config.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
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
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
paths:
# uploads: "docs/assets"
uploads_filename:
uploads_use_relative_path: true
static: ""
dam_uploads:
dam_uploads_filename:
dam_static:
collections:
data:
layouts:
includes:
#brandon changed this
uploads: '[base_path]/assets'
collections_config:
docs:
path: docs
output: true
url: /[full_slug]/
filter:
base: strict
exclude:
- /schema
- /schema.json
name: Documentation
icon: notes
disable_add: false
disable_add_folder: false
disable_file_actions: false
_editables:
content:
#changed this to false per Tom at CloudCannon recommendation for now as a workaround
# allow_custom_markup: true
#changed back to test
allow_custom_markup: true
remove_custom_markup: false
blockquote: true
bold: true
bulletedlist: true
code: true
copyformatting: true
embed: true
format: p h1 h2 h3 h4 h5 h6
horizontalrule: true
image: true
image_size_attributes: true
indent: true
italic: true
link: true
numberedlist: true
outdent: true
redo: true
removeformat: true
strike: true
subscript: true
superscript: true
table: true
underline: true
undo: true
snippet: true
_inputs:
image:
type: image
options:
paths:
uploads: images
accepts_mime_type:
- image/png
- image/jpeg
- image/jpg
allowed_sources:
- site-files
empty_type:
resize_style: contain
width: 400
height: 300
expandable: true
# prevent_resize_existing_files: false
#brandon changed this
prevent_resize_existing_files: true
mime_type: image/png
sizes:
- size: 2x
target: _retina_image_file
image: /docs/assets/image.png
_retina_image_file: /docs/assets/image-2x.png
source_editor:
tab_size: 4
content_editor:
tab_size: 4
#brandon added this
_snippets_imports:
python_markdown_extensions:
include:
- python_markdown_admonition
- python_markdown_collapsible_admonition
timezone: Etc/UTC
#brandon added this
_snippets:
mkdoc_button:
snippet: "[[[button_text]]]([[button_link]]){ [[button_class]] }"
preview:
text:
- key: button_text
- 'Button'
subtext:
- key: button_link
metadata:
- text:
- key: button_icon
picker_preview:
text: Button
params:
button_text:
parser: content
options:
editor_key: button_text
forbidden_tokens: ["]", ":"]
style:
trim_text: true
button_link:
parser: argument
options:
model:
editor_key: button_link
format:
forbidden_tokens: [")"]
string_boundary: ['']
button_class:
parser: content
options:
editor_key: button_class
forbidden_tokens: ["}"]
style:
trim_text: true
_inputs:
button_class:
type: select
label: Button type
options:
values:
- name: Primary
class: '.md-button .md-button--primary'
- name: Secondary
class: '.md-button'
value_key: class
allow_empty: false
mkdoc_button_with_icon:
snippet: "[[[button_text]] :[[button_icon]]:]([[button_link]]){ [[button_class]] }"
preview:
text:
- key: button_text
- 'Button'
subtext:
- key: button_link
metadata:
- text:
- key: button_icon
picker_preview:
text: Button with icon
params:
button_text:
parser: content
options:
editor_key: button_text
forbidden_tokens: ["]", ":"]
style:
trim_text: true
button_link:
parser: argument
options:
model:
editor_key: button_link
format:
forbidden_tokens: [")"]
string_boundary: ['']
button_class:
parser: content
options:
editor_key: button_class
forbidden_tokens: ["}"]
style:
trim_text: true
button_icon:
parser: content
options:
editor_key: button_icon
forbidden_tokens: [':']
_inputs:
button_class:
type: select
label: Button type
options:
values:
- name: Primary
class: '.md-button .md-button--primary'
- name: Secondary
class: '.md-button'
value_key: class
allow_empty: false
button_icon:
type: text
label: Button Icon
comment: >
Search available icons <a href="https://squidfunk.github.io/mkdocs-material/reference/icons-emojis/#search">here</a>. Remove the colons on each side when pasting.