docs: add missing backends collections to CMS (#3556)

This commit is contained in:
Erez Rokah 2020-04-06 10:44:48 +03:00 committed by GitHub
parent 7d1e1ec663
commit 67e3483b1c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -16,60 +16,71 @@ public_folder: img
docs_collection: &docs_collection docs_collection: &docs_collection
folder: website/content/docs folder: website/content/docs
create: true create: true
preview_path: "docs/{{slug}}" preview_path: 'docs/{{slug}}'
fields: fields:
- { label: Title, name: title } - { label: Title, name: title }
- { label: Group, name: group, widget: select, options: [start, features, reference, media, guides, customization, contributing] } - {
label: Group,
name: group,
widget: select,
options: [start, backends, features, reference, media, guides, customization, contributing],
}
- { label: Weight, name: weight, widget: number } - { label: Weight, name: weight, widget: number }
- { label: Body, name: body, widget: markdown } - { label: Body, name: body, widget: markdown }
collections: collections:
- <<: *docs_collection - <<: *docs_collection
name: docs_start name: docs_start
label: "Docs: Quick Start" label: 'Docs: Quick Start'
filter: filter:
field: group field: group
value: start value: start
- <<: *docs_collection
name: docs_backends
label: 'Docs: Backends'
filter:
field: group
value: backends
- <<: *docs_collection - <<: *docs_collection
name: docs_features name: docs_features
label: "Docs: Features" label: 'Docs: Features'
filter: filter:
field: group field: group
value: features value: features
- <<: *docs_collection - <<: *docs_collection
name: docs_reference name: docs_reference
label: "Docs: Reference" label: 'Docs: Reference'
filter: filter:
field: group field: group
value: reference value: reference
- <<: *docs_collection - <<: *docs_collection
name: docs_media name: docs_media
label: "Docs: Media" label: 'Docs: Media'
filter: filter:
field: group field: group
value: media value: media
- <<: *docs_collection - <<: *docs_collection
name: docs_guides name: docs_guides
label: "Docs: Guides" label: 'Docs: Guides'
filter: filter:
field: group field: group
value: guides value: guides
- <<: *docs_collection - <<: *docs_collection
name: docs_customization name: docs_customization
label: "Docs: Customization" label: 'Docs: Customization'
filter: filter:
field: group field: group
value: customization value: customization
- <<: *docs_collection - <<: *docs_collection
name: docs_contributing name: docs_contributing
label: "Docs: Contributing" label: 'Docs: Contributing'
filter: filter:
field: group field: group
value: contributing value: contributing
- name: widget_docs - name: widget_docs
label: "Docs: Widgets" label: 'Docs: Widgets'
folder: website/content/docs/widgets folder: website/content/docs/widgets
preview_path: "docs/widgets/{{title}}" preview_path: 'docs/widgets/{{title}}'
create: true create: true
fields: fields:
- { label: Name, name: title } - { label: Name, name: title }
@ -79,13 +90,18 @@ collections:
label: Blog label: Blog
label_singular: Post label_singular: Post
folder: website/content/blog folder: website/content/blog
preview_path: "blog/{{year}}/{{month}}/{{title}}" preview_path: 'blog/{{year}}/{{month}}/{{title}}'
create: true create: true
fields: fields:
- { label: Title, name: title } - { label: Title, name: title }
- { label: Author, name: author } - { label: Author, name: author }
- { label: Description (for blog list), name: description, widget: text } - { label: Description (for blog list), name: description, widget: text }
- { label: Meta Description (defaults to Description), name: meta_description, widget: text, required: false } - {
label: Meta Description (defaults to Description),
name: meta_description,
widget: text,
required: false,
}
- { label: Twitter Image, name: twitter_image, widget: image } - { label: Twitter Image, name: twitter_image, widget: image }
- { label: Date, name: date, widget: date } - { label: Date, name: date, widget: date }
- { label: Body, name: body, widget: markdown } - { label: Body, name: body, widget: markdown }
@ -140,4 +156,4 @@ collections:
- { label: Published, name: published, widget: boolean } - { label: Published, name: published, widget: boolean }
- { label: Loud, name: loud, widget: boolean } - { label: Loud, name: loud, widget: boolean }
- { label: Message, name: message, widget: text } - { label: Message, name: message, widget: text }
- { label: URL, name: url} - { label: URL, name: url }