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

config(course): add title update license fields #292

Merged
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
1 change: 1 addition & 0 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ repos:
hooks:
- id: trailing-whitespace
- id: end-of-file-fixer
exclude: VERSION|RELEASE.rst
- id: check-merge-conflict
- id: check-yaml
- id: check-added-large-files
Expand Down
20 changes: 15 additions & 5 deletions ocw-course-v2/ocw-studio.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -208,12 +208,14 @@ collections:
- label: License
name: license
options:
- label: CC BY-NC-SA
value: https://creativecommons.org/licenses/by-nc-sa/4.0/
- label: CC BY
value: https://creativecommons.org/licenses/by/4.0/
- label: CC BY-NC
value: https://creativecommons.org/licenses/by-nc/4.0/
- label: CC BY-NC-SA
value: https://creativecommons.org/licenses/by-nc-sa/4.0/
- label: CC BY-SA
value: https://creativecommons.org/licenses/by-sa/4.0/
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nit: Please sort the CC variants alphabetically:

CC BY
CC BY-NC
CC BY-NC-SA
CC BY-SA

- label: public domain
value: https://creativecommons.org/publicdomain/zero/1.0/
widget: select
Expand Down Expand Up @@ -280,6 +282,12 @@ collections:
label: External Resources
folder: content/external-resources
fields:
- label: Title
name: title
widget: string
required: true
help: The default link text for this external resource.

- label: URL
name: external_url
widget: string
Expand All @@ -292,17 +300,19 @@ collections:
name: license
widget: select
options:
- label: CC BY-NC-SA
value: https://creativecommons.org/licenses/by-nc-sa/4.0/
- label: CC BY
value: https://creativecommons.org/licenses/by/4.0/
- label: CC BY-NC
value: https://creativecommons.org/licenses/by-nc/4.0/
- label: CC BY-NC-SA
value: https://creativecommons.org/licenses/by-nc-sa/4.0/
- label: CC BY-SA
value: https://creativecommons.org/licenses/by-sa/4.0/
- label: public domain
value: https://creativecommons.org/publicdomain/zero/1.0/
- label: All Rights Reserved
value: https://en.wikipedia.org/wiki/All_rights_reserved
default: https://creativecommons.org/licenses/by-nc-sa/4.0/
default: https://en.wikipedia.org/wiki/All_rights_reserved
required: true

- label: Include non-OCW licensing warning
Expand Down
Loading