book:
  title: "ebookm Example Book"
  author: "ebookm"
  language: "en"
  identifier: "urn:uuid:ebookm-example-book"
  description: "Example manifest shipped with the repository"

output:
  path: "dist/example-book.epub"

defaults:
  fetch_images: false
  normalize_substack_embeds: true
  metadata:
    author: "ebookm"

sections:
  - id: "part-1"
    title: "Examples"
    entries:
      - "intro"
      - "notes"

entries:
  intro:
    source:
      kind: "html"
      path: "articles/intro.html"
    toc:
      title: "Introduction"

  notes:
    source:
      kind: "html"
      path: "articles/notes.html"
    title: "Working Notes"
    links:
      mode: "explicit"
      allow_to: ["intro"]

link_rules:
  mode: "explicit"
  rewrite_external_substack_links: true
  preserve_other_external_links: true
  rules:
    - from: ["notes"]
      to: ["intro"]
      match_mode: "canonical-url"
