-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathrecipe.yml
232 lines (228 loc) · 6.46 KB
/
recipe.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
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
name: 'Drupal Decoupled'
description: 'Drupal installation ready to make decoupled sites using GraphQL'
type: 'Site'
recipes:
# Core recipes with basic functionality
# Adding tags vocabulary and taxonomy field to article
- core/recipes/tags_taxonomy
# Adding media image type
- core/recipes/image_media_type
# Adding format editors
- core/recipes/basic_html_format_editor
- core/recipes/full_html_format_editor
- core/recipes/restricted_html_format
# Adding user roles
- core/recipes/administrator_role
- core/recipes/content_editor_role
# Adding core recommended maintenance modules
- core/recipes/core_recommended_maintenance
install:
# Core
- block_content
- ckeditor5
- config
- help
- contextual
- datetime
- editor
- field_ui
- file
- history
- image
- link
- media
- media_library
- menu_link_content
- menu_ui
- node
- options
- path
- taxonomy
- views
- views_ui
# Contrib
- admin_toolbar
- admin_toolbar_tools
- admin_toolbar_search
- dynamic_entity_reference
- field_group
- gin
- gin_login
- gin_toolbar
- coffee
- metatag
- metatag_open_graph
- metatag_twitter_cards
- override_node_options
- pathauto
- paragraphs
- redirect
- subpathauto
- view_unpublished
- viewfield
- simple_oauth
- webform
- webform_ui
# Decoupled contrib
- decoupled_preview_iframe
- visual_editor
- visual_editor_paragraphs
- graphql_compose
- graphql_compose_edges
- graphql_compose_image_style
- graphql_compose_menus
- graphql_compose_routes
- graphql_compose_users
- graphql_compose_views
- graphql_compose_metatags
- graphql_compose_preview
- graphql_compose_fragments
- graphql_compose_webform
config:
import:
block_content:
# View to list custom blocks.
- views.view.block_content
shortcut: '*'
# file: '*'
field_ui: '*'
menu_ui: '*'
node:
- views.view.content
- views.view.content_recent
datetime: '*'
views: '*'
views_ui: '*'
user:
# View to list users.
- views.view.user_admin_people
#contrib
admin_toolbar: '*'
admin_toolbar_tools: '*'
admin_toolbar_search: '*'
field_group: '*'
gin:
- gin.settings
- block.block.gin_breadcrumbs
- block.block.gin_content
- block.block.gin_help
- block.block.gin_local_actions
- block.block.gin_messages
- block.block.gin_page_title
- block.block.gin_primary_local_tasks
gin_toolbar: '*'
gin_login: '*'
coffee: '*'
metatag: '*'
override_node_options: '*'
pathauto: '*'
paragraphs: '*'
redirect: '*'
subpathauto: '*'
viewfield: '*'
simple_oauth: '*'
webform:
- system.action.webform_archive_action
- system.action.webform_close_action
- system.action.webform_delete_action
- system.action.webform_open_action
- system.action.webform_submission_delete_action
- system.action.webform_submission_make_lock_action
- system.action.webform_submission_make_sticky_action
- system.action.webform_submission_make_unlock_action
- system.action.webform_submission_make_unsticky_action
- system.action.webform_unarchive_action
- editor.editor.webform_default
- filter.format.webform_default
- views.view.webform_submissions
# Decoupled contrib
graphql_compose: '*'
actions:
# Set home page
system.site:
simple_config_update:
page.front: /home
# Set and unset Gin blocks.
block.block.gin_admin:
simple_config_update:
status: false
block.block.gin_branding:
simple_config_update:
status: false
block.block.gin_local_actions:
simple_config_update:
region: content
weight: -10
block.block.gin_local_tasks:
simple_config_update:
status: false
block.block.gin_page_title:
simple_config_update:
region: header
weight: -10
block.block.gin_primary_local_tasks:
simple_config_update:
region: header
weight: -5
settings.secondary: true
block.block.gin_tools:
simple_config_update:
status: false
# Update the admin theme to Gin in Theme settings.
node.settings:
simple_config_update:
use_admin_theme: true
system.theme:
simple_config_update:
admin: 'gin'
default: 'gin'
# Set metatag defaults.
metatag.metatag_defaults.global:
simple_config_update:
tags.canonical_url: '[current-page:url]'
tags.title: '[current-page:title] | [site:name]'
tags.twitter_cards_creator_id: '@OctahedroidHQ'
tags.twitter_cards_site: '@OctahedroidHQ'
tags.twitter_cards_title: '[current-page:title] | [site:name]'
tags.twitter_cards_type: summary
metatag.metatag_defaults.node:
simple_config_update:
tags.abstract: '[node:summary]'
tags.canonical_url: '[node:url]'
tags.description: '[node:summary]'
tags.image_src: '[node:field_image:entity:field_media_image:entity:url]'
tags.og_description: '[node:summary]'
tags.og_image: '[node:field_image:entity:field_media_image:entity:url]'
tags.og_image_url: '[node:field_image:entity:field_media_image:entity:url]'
tags.og_site_name: '[site:name]'
tags.og_title: '[node:title] | [site:name]'
tags.og_type: website
tags.og_url: '[node:url]'
tags.title: '[node:title] | [site:name]'
tags.twitter_cards_creator: '@OctahedroidHQ'
tags.twitter_cards_description: '[node:summary]'
tags.twitter_cards_image: '[node:field_image:entity:field_media_image:entity:url]'
tags.twitter_cards_site: '@OctahedroidHQ'
tags.twitter_cards_title: '[node:title]'
tags.twitter_cards_type: summary_large_image
# Set permissions for content editor role.
user.role.content_editor:
ensure_exists:
id: content_editor
grantPermissions:
- 'use text format basic_html'
- 'use text format full_html'
simple_oauth.settings:
simple_config_update:
access_token_expiration: 2592000
authorization_code_expiration: 2592000
refresh_token_expiration: 2592000
token_cron_batch_size: 0
public_key: ../keys/public.key
private_key: ../keys/private.key
remember_clients: true
use_implicit: false
disable_openid_connect: false
webform.settings:
simple_config_update:
ui.promotions_disabled: true