backend:
  name: gitlab
  branch: dev
  repo: ealyx/public-docs
  auth_type: pkce
  app_id: faab8d8e9d50d61d23edcfa059e78a76bbec79fa524799eb3c241341edf275a2
  preview_context: decap_preview

# local_backend: true
# backend:
#   name: git-gateway

site_url: https://docs.ealyx.es/branches/dev/
media_folder: static/img
public_folder: /img/
logo_url: /img/ealyx-logo.svg
show_preview_links: true
publish_mode: editorial_workflow
collections:
  - name: docsMD
    label: docs/.md
    extension: "md" 
    format: "frontmatter"
    folder: docs
    create: true
    preview_path: '{{docusaurusPath}}'
    sortable_fields: ['sidebar_position','commit_date', 'title', 'commit_author']
    summary: "{{dirname}}: {{sidebar_position}} '{{filename}}.{{extension}}' - {{title}}  (updated at {{commit_date | date('YYYY-MM-DD')}}, by {{commit_author}})"
    view_groups:
      - label: Sidebar Position
        field: sidebar_position
    # adding a nested object will show the collection folder structure
    nested:
      depth: 100 # max depth to show in the collection tree
      summary: '{{sidebar_position}} - {{parentFolder}}' # optional summary for a tree node, defaults to the inferred title field
    # adding a meta object with a path property allows editing the path of entries
    # moving an existing entry will move the entire sub tree of the entry to the new location
    meta: { path: { widget: string, label: 'Path', index_file: 'index' } }
    fields:
      - label: Id
        name: id
        widget: string
        required: false
      - label: Title
        name: title
        widget: string
        required: false
      - label: Sidebar Label
        name: sidebar_label
        required: false
        widget: string
      - label: Sidebar Position
        name: sidebar_position
        widget: number
        required: false
      - label: Slug
        name: slug
        widget: string
        required: false
      - label: Content
        name: body
        widget: markdown
  - name: docsMDX
    label: docs/.mdx
    extension: "mdx" 
    format: "frontmatter"
    folder: docs
    create: true
    preview_path: '{{docusaurusPath}}'
    sortable_fields: ['sidebar_position','commit_date', 'title', 'commit_author']
    summary: "{{dirname}}: {{sidebar_position}} '{{filename}}.{{extension}}' - {{title}}  (updated at {{commit_date | date('YYYY-MM-DD')}}, by {{commit_author}})"
    view_groups:
      - label: Sidebar Position
        field: sidebar_position
    # adding a nested object will show the collection folder structure
    nested:
      depth: 100 # max depth to show in the collection tree
      summary: '{{sidebar_position}} - {{parentFolder}}' # optional summary for a tree node, defaults to the inferred title field
    # adding a meta object with a path property allows editing the path of entries
    # moving an existing entry will move the entire sub tree of the entry to the new location
    meta: { path: { widget: string, label: 'Path', index_file: 'index' } }
    fields:
      - label: Id
        name: id
        widget: string
        required: false
      - label: Title
        name: title
        widget: string
        required: false
      - label: Sidebar Label
        name: sidebar_label
        required: false
        widget: string
      - label: Sidebar Position
        name: sidebar_position
        widget: number
        required: false
      - label: Slug
        name: slug
        widget: string
        required: false
      - label: Content
        name: body
        widget: markdown
  - name: docsJSON
    label: docs/*.json
    extension: "json" 
    format: "plain_json"
    folder: docs
    editor:
      preview: false
    create: true
    nested:
      depth: 100 # max depth to show in the collection tree
      summary: '{{parentFolder}}'
    summary: "{{filename}}.{{extension}} - (updated at {{commit_date | date('YYYY-MM-DD')}}, by {{commit_author}})"
    meta: { path: { widget: string, label: 'Path', index_file: 'index' } }
    fields:
      - name: "body"
        label: "Content"
        widget: "code"
        default_language: "json"
        output_code_only: true
  - name: srcTsx
    label: src/*tsx
    extension: "tsx" 
    format: "tsx"
    folder: src
    editor:
      preview: false
    create: true
    nested:
      depth: 100 # max depth to show in the collection tree
      summary: '{{parentFolder}}'
    summary: "{{filename}}.{{extension}} - (updated at {{commit_date | date('YYYY-MM-DD')}}, by {{commit_author}})"
    meta: { path: { widget: string, label: 'Path', index_file: 'index' } }
    fields:
      - name: "body"
        label: "Content"
        widget: "code"
        default_language: "typescript"
        output_code_only: true
  - name: srcJS
    label: src/*.js
    extension: "js" 
    format: "js"
    folder: src
    editor:
      preview: false
    create: true
    nested:
      depth: 100 # max depth to show in the collection tree
      summary: '{{parentFolder}}'
    summary: "{{filename}}.{{extension}} - (updated at {{commit_date | date('YYYY-MM-DD')}}, by {{commit_author}})"
    meta: { path: { widget: string, label: 'Path', index_file: 'index' } }
    fields:
      - name: "body"
        label: "Content"
        widget: "code"
        default_language: "javascript"
        output_code_only: true
  - name: srcCSS
    label: src/*.css
    extension: "css" 
    format: "css"
    folder: src
    editor:
      preview: false
    create: true
    nested:
      depth: 100 # max depth to show in the collection tree
      summary: '{{parentFolder}}'
    summary: "{{filename}}.{{extension}} - (updated at {{commit_date | date('YYYY-MM-DD')}}, by {{commit_author}})"
    meta: { path: { widget: string, label: 'Path', index_file: 'index' } }
    fields:
      - name: "body"
        label: "Content"
        widget: "code"
        default_language: "css"
        output_code_only: true
  - name: srcJSON
    label: src/*.json
    extension: "json"
    format: "plain_json"
    folder: src
    editor:
      preview: false
    create: true
    nested:
      depth: 100 # max depth to show in the collection tree
      summary: '{{parentFolder}}'
    summary: "{{filename}}.{{extension}} - (updated at {{commit_date | date('YYYY-MM-DD')}}, by {{commit_author}})"
    meta: { path: { widget: string, label: 'Path', index_file: 'index' } }
    fields:
      - name: "body"
        label: "Content"
        widget: "code"
        default_language: "json"
        output_code_only: true
  - name: staticJS
    label: static/*.js
    extension: "js"
    format: "js"
    folder: static
    editor:
      preview: false
    create: true
    nested:
      depth: 100 # max depth to show in the collection tree
      summary: '{{parentFolder}}'
    summary: "{{filename}}.{{extension}} - (updated at {{commit_date | date('YYYY-MM-DD')}}, by {{commit_author}})"
    meta: { path: { widget: string, label: 'Path', index_file: 'index' } }
    fields:
      - name: "body"
        label: "Content"
        widget: "code"
        default_language: "javascript"
        output_code_only: true
  - name: staticCSS
    label: static/*.css
    extension: "css"
    format: "css"
    folder: static
    editor:
      preview: false
    create: true
    nested:
      depth: 100 # max depth to show in the collection tree
      summary: '{{parentFolder}}'
    summary: "{{filename}}.{{extension}} - (updated at {{commit_date | date('YYYY-MM-DD')}}, by {{commit_author}})"
    meta: { path: { widget: string, label: 'Path', index_file: 'index' } }
    fields:
      - name: "body"
        label: "Content"
        widget: "code"
        default_language: "css"
        output_code_only: true
  - name: staticYML
    label: static/*.yml
    extension: "yml"
    format: "plain_yml"
    folder: static
    editor:
      preview: false
    create: true
    nested:
      depth: 100 # max depth to show in the collection tree
      summary: '{{parentFolder}}'
    summary: "{{filename}}.{{extension}} - (updated at {{commit_date | date('YYYY-MM-DD')}}, by {{commit_author}})"
    meta: { path: { widget: string, label: 'Path', index_file: 'index' } }
    fields:
      - name: "body"
        label: "Content"
        widget: "code"
        default_language: "yaml"
        output_code_only: true