-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathrecipe.yml
199 lines (197 loc) · 5.59 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
name: 'Drupal Decoupled'
description: 'Drupal installation based on standard that uses GQL to make decoupled site'
type: 'Site'
recipes:
# Core recipes with basic functionality
# Content types
- core/recipes/article_content_type
- core/recipes/article_tags
- core/recipes/page_content_type
# Adding tags vocabulary and taxonomy field to article
- core/recipes/tags_taxonomy
# 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
- config
- help
- contextual
- datetime
- field_ui
- history
- link
- menu_link_content
- menu_ui
- options
- views_ui
# Contrib
- admin_toolbar
- admin_toolbar_tools
- admin_toolbar_search
- gin
- gin_login
- gin_toolbar
- coffee
- metatag
- pathauto
- redirect
- subpathauto
- view_unpublished
- simple_oauth
- webform
- webform_ui
# Decoupled contrib
- decoupled_preview_iframe
- visual_editor
- 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:
admin_toolbar: '*'
admin_toolbar_tools: '*'
admin_toolbar_search: '*'
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_login: '*'
coffee: '*'
metatag: '*'
pathauto: '*'
redirect: '*'
subpathauto: '*'
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
# Set blocks to us as default content
block.block.gin_content:
simple_config_update:
status: content
weight: -5
# 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]'
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.title: '[node:title] | [site:name]'
# 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'
user.role.previewer:
createIfNotExists:
id: previewer
label: Previewer
weight: 4
is_admin: false
permissions:
- 'execute graphql_compose_server arbitrary graphql requests'
- 'view all revisions'
- 'view any unpublished content'
- 'view graphql_compose_preview entity'
- 'view own unpublished content'
user.role.viewer:
createIfNotExists:
id: viewer
label: Viewer
weight: 5
is_admin: false
permissions:
- 'execute graphql_compose_server arbitrary graphql requests'
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