# Sample YAML, for checking config-file highlighting.
#
# Config files are the everyday case for a code viewer: keys, strings,
# anchors, comments and multi-line blocks all want to look different from
# each other.

version: "1.4"

defaults: &defaults
  timeout: 30
  retries: 3
  log_level: info

service:
  name: report-builder
  <<: *defaults
  log_level: debug          # overrides the anchor above
  replicas: 2
  enabled: true
  memory_mb: 512
  cpu: 0.5

formats:
  - pdf
  - docx
  - html
  - png

themes:
  - name: Paper
    dark: false
    accent: "#c2410c"
  - name: Slate
    dark: true
    accent: "#38bdf8"
  - name: Ink
    dark: true
    accent: "#a3a3a3"

export:
  margins:
    top: 20mm
    bottom: 20mm
    inner: 25mm
    outer: 18mm
  header: "{{title}}"
  footer: "Page {{page}} of {{pages}}"

# A folded block: newlines become spaces.
summary: >
  A single paragraph written across several lines in the file,
  which YAML joins back together when it is read.

# A literal block: newlines are kept exactly as written.
notice: |
  Rendered locally.
  Nothing is uploaded.
  Works offline.

paths:
  watch:
    - ~/Documents/notes
    - ~/Development
  ignore:
    - node_modules
    - .git
    - "*.log"

empty_value: null
quoted_number: "42"
plain_number: 42
