-
-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy pathrecipe.yaml
173 lines (142 loc) · 6.32 KB
/
recipe.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
list(
map(include('build_parts'), key=regex('build_parts?', ignore_case=True)),
map(any(include('generate_crowd_anki'), list(include('generate_crowd_anki'))), key=regex('generate_crowd_anki', ignore_case=True)),
map(any(include('generate_csvs'), list(include('generate_csvs'))), key=regex('generate_csvs?', ignore_case=True)),
map(any(include('generate_guids_in_csvs'), list(include('generate_guids_in_csvs'))), key=regex('generate_guids_in_csvs?', ignore_case=True)),
map(any(include('save_media_groups_to_folder'), list(include('save_media_groups_to_folder'))), key=regex('save_media_groups?_to_folder', ignore_case=True)),
map(any(include('save_note_models_to_folder'), list(include('save_note_models_to_folder'))), key=regex('save_note_models?_to_folder', ignore_case=True))
)
---
build_parts:
list(
map(any(include('headers_from_crowd_anki'), list(include('headers_from_crowd_anki'))), key=regex('headers?_from_crowd_anki', ignore_case=True)),
map(any(include('headers_from_yaml_part'), list(include('headers_from_yaml_part'))), key=regex('headers?_from_yaml_part', ignore_case=True)),
map(any(include('media_group_from_crowd_anki'), list(include('media_group_from_crowd_anki'))), key=regex('media_group_from_crowd_anki', ignore_case=True)),
map(any(include('media_group_from_folder'), list(include('media_group_from_folder'))), key=regex('media_group_from_folder', ignore_case=True)),
map(any(include('media_group_from_yaml_part'), list(include('media_group_from_yaml_part'))), key=regex('media_group_from_yaml_part', ignore_case=True)),
map(any(include('note_model_from_crowd_anki'), list(include('note_model_from_crowd_anki'))), key=regex('note_model_from_crowd_anki', ignore_case=True)),
map(any(include('note_model_from_html_parts'), list(include('note_model_from_html_parts'))), key=regex('note_model_from_html_parts', ignore_case=True)),
map(any(include('note_models_all_from_crowd_anki'), list(include('note_models_all_from_crowd_anki'))), key=regex('note_models_all_from_crowd_anki', ignore_case=True)),
map(any(include('note_models_from_yaml_part'), list(include('note_models_from_yaml_part'))), key=regex('note_models?_from_yaml_part', ignore_case=True)),
map(any(include('notes_from_crowd_anki'), list(include('notes_from_crowd_anki'))), key=regex('notes_from_crowd_anki', ignore_case=True)),
map(any(include('notes_from_csvs'), list(include('notes_from_csvs'))), key=regex('notes_from_csvs?', ignore_case=True)),
map(any(include('notes_from_yaml_part'), list(include('notes_from_yaml_part'))), key=regex('notes_from_yaml_part', ignore_case=True))
)
generate_crowd_anki:
folder: str()
headers: str()
notes: include('notes_to_crowd_anki')
note_models: include('note_models_to_crowd_anki')
media: include('media_group_to_crowd_anki', required=False)
generate_csvs:
notes: str()
note_model_mappings: list(include('note_model_mapping'))
file_mappings: list(include('file_mapping'))
generate_guids_in_csvs:
source: any(str(), list(str()))
columns: any(str(), list(str()))
delimiter: str(required=False)
save_media_groups_to_folder:
parts: list(str())
folder: str()
clear_folder: bool(required=False)
recursive: bool(required=False)
save_note_models_to_folder:
parts: list(str())
folder: str()
clear_existing: bool(required=False)
---
file_mapping:
file: str()
note_model: str(required=False)
sort_by_columns: list(str(), required=False)
reverse_sort: bool(required=False)
case_insensitive_sort: bool(required=False)
derivatives: list(include('file_mapping'), required=False)
delimiter: str(required=False)
headers_from_crowd_anki:
part_id: str()
source: str()
save_to_file: str(required=False)
headers_from_yaml_part:
part_id: str()
file: str()
override: include('headers_override', required=False)
headers_override:
crowdanki_uuid: str(required=False)
deck_description_html_file: str(required=False)
name: str(required=False)
media_group_from_crowd_anki:
part_id: str()
source: str()
save_to_file: str(required=False)
recursive: bool(required=False)
filter_whitelist_from_parts: list(str(), required=False)
filter_blacklist_from_parts: list(str(), required=False)
media_group_from_folder:
part_id: str()
source: str()
save_to_file: str(required=False)
recursive: bool(required=False)
filter_whitelist_from_parts: list(str(), required=False)
filter_blacklist_from_parts: list(str(), required=False)
media_group_from_yaml_part:
part_id: str()
file: str()
media_group_to_crowd_anki:
parts: list(str())
note_model_field:
name: str()
font: str(required=False)
font_size: int(required=False)
is_sticky: bool(required=False)
is_right_to_left: bool(required=False)
note_model_from_crowd_anki:
part_id: str()
source: str()
model_name: str(required=False)
save_to_file: str(required=False)
note_model_from_html_parts:
part_id: str()
model_id: str()
css_file: str()
fields: list(include('note_model_field'))
templates: list(str())
model_name: str(required=False)
save_to_file: str(required=False)
note_model_mapping:
note_models: any(list(str()), str())
columns_to_fields: map(str(), key=str(), required=False)
personal_fields: list(str(), required=False)
note_models_all_from_crowd_anki:
source: str()
note_models_from_yaml_part:
part_id: str()
file: str()
note_models_to_crowd_anki:
parts: list(include('note_models_to_crowd_anki_item'))
note_models_to_crowd_anki_item:
part_id: str()
notes_from_crowd_anki:
part_id: str()
source: str()
sort_order: list(str(), required=False)
save_to_file: str(required=False)
reverse_sort: str(required=False)
notes_from_csvs:
part_id: str()
save_to_file: str(required=False)
note_model_mappings: list(include('note_model_mapping'))
file_mappings: list(include('file_mapping'))
notes_from_yaml_part:
part_id: str()
file: str()
notes_override:
note_model: str(required=False)
notes_to_crowd_anki:
part_id: str()
sort_order: list(str(), required=False)
reverse_sort: bool(required=False)
additional_items_to_add: map(str(), key=str(), required=False)
override: include('notes_override', required=False)
case_insensitive_sort: bool(required=False)