Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update CMS config, add chapter collection and chapter relation to organizers collection #153

Merged
merged 3 commits into from
Dec 27, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 5 additions & 4 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
# TODO (Nicola): Re-enable travis when we have tests to run
language: node_js
node_js:
- '10.15.3'
# script:
# the `audit-level` is at `moderate` to avoid https://www.npmjs.com/advisories/836, which has no resolution at time of writing
# consider swapping from `moderate` to `low` whenever this is possible and / reasonable (ex: when issue in the link above is fixed)

script:
# the `audit-level` is at `moderate` to avoid https://www.npmjs.com/advisories/836, which has no resolution at time of writing
# consider swapping from `moderate` to `low` whenever this is possible and / reasonable (ex: when issue in the link above is fixed)
- npm audit --audit-level=moderate
# - npm audit --audit-level=moderate
3 changes: 3 additions & 0 deletions content/chapters/seattle.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"city": "Seattle"
}
6 changes: 6 additions & 0 deletions content/organizers/lynn-cyrin.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"name": "Lynn Cyrin",
"headshot": "/images/lynn-cyrin.jpg",
"pronouns": "they/them",
"roles": ["Chapter Lead"]
}
23 changes: 20 additions & 3 deletions static/admin/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,16 @@ publish_mode: editorial_workflow
show_preview_links: false

collections:
- name: 'chapters'
label: 'Chapters'
folder: 'content/chapters'
delete: false
fields:
- label: 'City'
name: 'city'
widget: 'string'
required: true

- name: 'pages'
label: 'Pages'
description: 'Edit the copy of standalone pages on our site.'
Expand Down Expand Up @@ -209,18 +219,25 @@ collections:
name: 'pronouns'
widget: 'string'
required: false
- label: 'Role'
name: 'role'
- label: 'Roles'
name: 'roles'
widget: 'select'
multiple: true
options:
[
'Board Member',
'Chapter Organizer',
'Conference Organizer',
'Website Contributor',
'Chapter Lead',
]
required: true
- label: 'Chapter'
name: 'chapter'
widget: 'relation'
collection: 'chapters'
required: false
searchFields: ['city']
valueField: 'city'
- label: 'Social Links'
name: 'links'
widget: 'list'
Expand Down
Binary file added static/images/lynn-cyrin.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.