backend:
  name: github
  repo: pyconhk/pyconhk-news
  branch: cms
  base_url: https://cms.pycon.hk
  auth_endpoint: api/decap/auth
  site_domain: cms.pycon.hk
locale: pycon-en
publish_mode: simple
media_folder: website/public/outstatic/images
public_folder: /outstatic/images
i18n:
  structure: multiple_files
  locales:
    - en
    - zh-hk
    - zh-hant
    - zh-hans
    - ja
    - ko
  default_locale: en
collections:
  - name: posts
    label: 2026 News
    folder: website/outstatic/content/2026-posts
    create: true
    i18n: true
    extension: mdx
    format: news-frontmatter
    identifier_field: slug
    slug: "{{slug}}"
    summary: "{{title}}"
    editor:
      preview: true
    fields:
      - label: Website visibility
        name: status
        widget: website-visibility
        hint: Choose visibility for this language, then Save. English can publish first;
          keep unfinished translations as Draft. Copying another locale also
          copies its visibility, so review it before saving.
        options:
          - &a1
            label: Draft — do not publish
            value: draft
          - label: Publish this language after checks
            value: published
        default: draft
        i18n: true
      - label: Title
        name: title
        widget: string
        required: false
        i18n: true
      - label: Description
        name: description
        widget: text
        required: false
        hint: Short summary used for cards, meta descriptions, and social previews.
        i18n: true
      - label: Publish Date
        name: publishedAt
        widget: datetime
        required: false
        i18n: duplicate
      - label: Slug
        name: slug
        widget: string
        hint: Shared across all locales. This is also used in the filename.
        i18n: duplicate
      - label: Author
        name: author
        widget: object
        i18n: true
        collapsed: true
        fields:
          - label: Name
            name: name
            widget: string
            default: PyCon HK
            i18n: true
          - label: Avatar URL
            name: picture
            widget: string
            required: false
            i18n: duplicate
      - label: Cover Image
        name: coverImage
        widget: image
        required: false
        i18n: duplicate
      - label: Tags
        name: tags
        widget: list
        field:
          label: Tag
          name: tag
          widget: string
        required: false
        i18n: true
      - label: Body
        name: body
        widget: markdown
        required: false
        i18n: true
  - name: posts_2025
    label: 2025 News
    folder: website/outstatic/content/2025-posts
    create: true
    i18n:
      locales:
        - en
        - zh-hk
        - zh-hant
        - zh-hans
        - ja
      default_locale: en
    extension: mdx
    format: news-frontmatter
    identifier_field: slug
    slug: "{{slug}}"
    summary: "{{title}}"
    editor:
      preview: true
    fields:
      - label: Website visibility
        name: status
        widget: select
        hint: Choose visibility, then Save. Archived 2025 News requires all five
          translations to pass checks together before publishing.
        options:
          - *a1
          - label: Publish all five translations after checks
            value: published
        default: draft
        i18n: duplicate
      - label: Title
        name: title
        widget: string
        required: false
        i18n: true
      - label: Description
        name: description
        widget: text
        required: false
        hint: Short summary used for cards, meta descriptions, and social previews.
        i18n: true
      - label: Publish Date
        name: publishedAt
        widget: datetime
        required: false
        i18n: duplicate
      - label: Slug
        name: slug
        widget: string
        hint: Shared across all locales. This is also used in the filename.
        i18n: duplicate
      - label: Author
        name: author
        widget: object
        i18n: true
        collapsed: true
        fields:
          - label: Name
            name: name
            widget: string
            default: PyCon HK
            i18n: true
          - label: Avatar URL
            name: picture
            widget: string
            required: false
            i18n: duplicate
      - label: Cover Image
        name: coverImage
        widget: image
        required: false
        i18n: duplicate
      - label: Tags
        name: tags
        widget: list
        field:
          label: Tag
          name: tag
          widget: string
        required: false
        i18n: true
      - label: Body
        name: body
        widget: markdown
        required: false
        i18n: true
  - name: sprint_2026
    label: 2026 Sprint
    folder: website/outstatic/content/2026-sprint
    create: false
    delete: false
    i18n: true
    extension: json
    format: json
    identifier_field: slug
    slug: settings
    filter:
      field: slug
      value: settings
    summary: Sprint settings
    editor:
      preview: true
    fields:
      - name: slug
        widget: hidden
        default: settings
        i18n: duplicate
      - label: Website visibility
        name: status
        widget: select
        options:
          - label: Draft — do not publish
            value: draft
          - label: Publish all six translations after checks
            value: published
        default: draft
        i18n: duplicate
        hint: Sprint publishes all six languages together. Complete every translation
          before choosing Publish. Save stores your changes in CMS; the website
          changes only after checks and deployment succeed.
      - label: Introduction
        name: intro
        widget: text
        required: false
        i18n: true
      - label: Sprint date
        name: date
        widget: datetime
        date_format: YYYY-MM-DD
        time_format: false
        format: YYYY-MM-DD
        picker_utc: true
        required: false
        i18n: duplicate
      - label: Start time (Hong Kong)
        name: startTime
        widget: string
        required: false
        i18n: duplicate
        hint: Optional. Use 24-hour time, for example 10:00.
      - label: End time (Hong Kong)
        name: endTime
        widget: string
        required: false
        i18n: duplicate
        hint: Optional. Use 24-hour time, for example 17:00.
      - label: Location
        name: location
        widget: string
        required: false
        i18n: true
      - label: Registration URL
        name: registrationUrl
        widget: string
        required: false
        i18n: duplicate
        hint: Use an HTTPS link for Sprint registration.
      - label: Project proposal URL
        name: proposalUrl
        widget: string
        required: false
        i18n: duplicate
        hint: Use an HTTPS link for project and Sprint Lead proposals.
      - label: Project proposal deadline
        name: proposalDeadline
        widget: string
        required: false
        i18n: duplicate
        hint: Optional. Include the time zone, for example 2026-11-14T23:59:00+08:00 for
          Hong Kong time.
      - label: Additional information
        name: items
        widget: list
        required: false
        default: []
        i18n: true
        field:
          label: Item
          name: item
          widget: string
      - label: Questions and answers
        name: qa
        widget: list
        required: false
        default: []
        i18n: true
        summary: "{{fields.question}}"
        hint: Use the same stable question IDs and order in all six languages.
        fields:
          - label: Question ID
            name: id
            widget: string
            required: false
            hint: Keep this ID unchanged across translations, for example preparation.
          - label: Question
            name: question
            widget: string
            required: false
          - label: Answer
            name: answer
            widget: text
            required: false
            i18n: true
      - label: Projects
        name: projects
        widget: list
        required: false
        default: []
        i18n: true
        summary: "{{fields.title}} · {{fields.status}}"
        hint: Draft projects may be unfinished and stay off the public website.
          Published project IDs, order, lead names, levels and links must match
          across all six languages.
        fields:
          - label: Project ID
            name: id
            widget: string
            required: false
            hint: Keep this ID unchanged across translations, for example python-docs.
          - label: Project visibility
            name: status
            widget: select
            options:
              - label: Draft — hide from website
                value: draft
              - label: Published — include on Sprint page
                value: published
            default: draft
          - label: Project title
            name: title
            widget: string
            required: false
          - label: Description
            name: description
            widget: text
            required: false
            i18n: true
          - label: Sprint Lead
            name: lead
            widget: string
            required: false
          - label: Sprint Lead profile URL
            name: leadProfileUrl
            widget: string
            required: false
            hint: Optional. Use a confirmed public HTTPS profile link. Keep the same link
              across translations.
          - label: Participant level
            name: level
            widget: select
            required: false
            default: ""
            options:
              - label: Not specified
                value: ""
              - label: All levels
                value: all-levels
              - label: Intermediate
                value: intermediate
            hint: Use the confirmed participant level. Keep the same value across
              translations.
          - label: Repository URL
            name: repositoryUrl
            widget: string
            required: false
            hint: HTTPS link. Keep the same link across translations.
          - label: Setup instructions URL
            name: setupUrl
            widget: string
            required: false
            hint: HTTPS link. Keep the same link across translations.
          - label: Discord URL
            name: discordUrl
            widget: string
            required: false
            default: ""
            hint: Optional. Use only a confirmed HTTPS invite or channel link for this
              project. Keep the same link across translations.
          - label: Useful skills
            name: skills
            widget: list
            required: false
            default: []
            i18n: true
            field:
              label: Item
              name: item
              widget: string
          - label: Goals and contribution tasks
            name: contributions
            widget: list
            required: false
            default: []
            i18n: true
            field:
              label: Item
              name: item
              widget: string
