backend:
  name: github
  repo: garyhawton/hwit_kb
  branch: main

# Lets you run the CMS against your local repo (npx decap-server) with no login.
local_backend: true

media_folder: "public/media/fundamentals/articles"
public_folder: "/media/fundamentals/articles"

# One collection per help category. All are flat folders of Markdown articles.
collections:
  - name: setting-up-your-system
    label: "Setting Up Your System"
    label_singular: "Article"
    folder: "src/content/docs/setting-up-your-system"
    create: true
    extension: md
    format: frontmatter
    sortable_fields: ["sidebar.order", "title"]
    fields: &article_fields
      - { label: "Title", name: "title", widget: "string" }
      - { label: "Description", name: "description", widget: "text", required: false }
      - label: "Sidebar"
        name: "sidebar"
        widget: "object"
        required: false
        fields:
          - {
              label: "Order",
              name: "order",
              widget: "number",
              value_type: "int",
              min: 0,
              required: false,
              hint: "Lower number appears higher in the sidebar",
            }
      - {
          label: "Status",
          name: "status",
          widget: "select",
          options: ["published", "draft", "archived"],
          default: "published",
        }
      - { label: "Product site", name: "productSite", widget: "hidden", default: "fundamentals" }
      - {
          label: "Last reviewed",
          name: "lastReviewed",
          widget: "datetime",
          date_format: "YYYY-MM-DD",
          time_format: false,
          required: false,
        }
      - { label: "Tags", name: "tags", widget: "list", required: false }
      - label: "Source (migration traceability)"
        name: "source"
        widget: "object"
        required: false
        collapsed: true
        fields:
          - { label: "System", name: "system", widget: "string", required: false }
          - { label: "URL", name: "url", widget: "string", required: false }
      - label: "AI hints (optional)"
        name: "ai"
        widget: "object"
        required: false
        collapsed: true
        fields:
          - { label: "Aliases", name: "aliases", widget: "list", required: false }
          - { label: "Common questions", name: "commonQuestions", widget: "list", required: false }
          - { label: "Answer summary", name: "answerSummary", widget: "text", required: false }
          - { label: "Ask when ambiguous", name: "shouldAskWhen", widget: "list", required: false }
      - {
          label: "Body",
          name: "body",
          widget: "markdown",
          hint: "Add a video with ::video{provider=\"vimeo\" videoId=\"123\" privacyHash=\"abc\" title=\"...\"} on its own line.",
        }

  - name: scheduling
    label: "Scheduling"
    label_singular: "Article"
    folder: "src/content/docs/scheduling"
    create: true
    extension: md
    format: frontmatter
    sortable_fields: ["sidebar.order", "title"]
    fields: *article_fields

  - name: reporting
    label: "Reporting"
    label_singular: "Article"
    folder: "src/content/docs/reporting"
    create: true
    extension: md
    format: frontmatter
    sortable_fields: ["sidebar.order", "title"]
    fields: *article_fields

  - name: monitorqa
    label: "MonitorQA"
    label_singular: "Article"
    folder: "src/content/docs/monitorqa"
    create: true
    extension: md
    format: frontmatter
    sortable_fields: ["sidebar.order", "title"]
    fields: *article_fields

  - name: invoicing
    label: "Invoicing"
    label_singular: "Article"
    folder: "src/content/docs/invoicing"
    create: true
    extension: md
    format: frontmatter
    sortable_fields: ["sidebar.order", "title"]
    fields: *article_fields

  - name: custpropinfo
    label: "Customer & Property Info"
    label_singular: "Article"
    folder: "src/content/docs/custpropinfo"
    create: true
    extension: md
    format: frontmatter
    sortable_fields: ["sidebar.order", "title"]
    fields: *article_fields

  - name: webinars
    label: "Webinars"
    label_singular: "Article"
    folder: "src/content/docs/webinars"
    create: true
    extension: md
    format: frontmatter
    sortable_fields: ["sidebar.order", "title"]
    fields: *article_fields
