Skip to content

Commit f4a10aa

Browse files
authored
Update CMS config, add chapter collection and chapter relation to organizers collection (#153)
* Update config.yml - Add chapter collection for chapter pages - Add chapter relation to organizers collection * Add seattle and lynn to content * Temporarily disable travis - Add note to re-enable once we have tests
1 parent da6acbb commit f4a10aa

File tree

5 files changed

+34
-7
lines changed

5 files changed

+34
-7
lines changed

.travis.yml

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,9 @@
1+
# TODO (Nicola): Re-enable travis when we have tests to run
12
language: node_js
23
node_js:
34
- '10.15.3'
5+
# script:
6+
# the `audit-level` is at `moderate` to avoid https://www.npmjs.com/advisories/836, which has no resolution at time of writing
7+
# consider swapping from `moderate` to `low` whenever this is possible and / reasonable (ex: when issue in the link above is fixed)
48

5-
script:
6-
# the `audit-level` is at `moderate` to avoid https://www.npmjs.com/advisories/836, which has no resolution at time of writing
7-
# consider swapping from `moderate` to `low` whenever this is possible and / reasonable (ex: when issue in the link above is fixed)
8-
- npm audit --audit-level=moderate
9+
# - npm audit --audit-level=moderate

content/chapters/seattle.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
{
2+
"city": "Seattle"
3+
}

content/organizers/lynn-cyrin.json

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
{
2+
"name": "Lynn Cyrin",
3+
"headshot": "/images/lynn-cyrin.jpg",
4+
"pronouns": "they/them",
5+
"roles": ["Chapter Lead"]
6+
}

static/admin/config.yml

Lines changed: 20 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,16 @@ publish_mode: editorial_workflow
1313
show_preview_links: false
1414

1515
collections:
16+
- name: 'chapters'
17+
label: 'Chapters'
18+
folder: 'content/chapters'
19+
delete: false
20+
fields:
21+
- label: 'City'
22+
name: 'city'
23+
widget: 'string'
24+
required: true
25+
1626
- name: 'pages'
1727
label: 'Pages'
1828
description: 'Edit the copy of standalone pages on our site.'
@@ -209,18 +219,25 @@ collections:
209219
name: 'pronouns'
210220
widget: 'string'
211221
required: false
212-
- label: 'Role'
213-
name: 'role'
222+
- label: 'Roles'
223+
name: 'roles'
214224
widget: 'select'
215225
multiple: true
216226
options:
217227
[
218228
'Board Member',
219-
'Chapter Organizer',
220229
'Conference Organizer',
221230
'Website Contributor',
231+
'Chapter Lead',
222232
]
223233
required: true
234+
- label: 'Chapter'
235+
name: 'chapter'
236+
widget: 'relation'
237+
collection: 'chapters'
238+
required: false
239+
searchFields: ['city']
240+
valueField: 'city'
224241
- label: 'Social Links'
225242
name: 'links'
226243
widget: 'list'

static/images/lynn-cyrin.jpg

102 KB
Loading

0 commit comments

Comments
 (0)