pub const INIT_MANIFEST: &str = r#"book:
  title: "Collected Substack Essays"
  author: "Author Name"
  language: "en"
  identifier: "urn:uuid:11111111-2222-3333-4444-555555555555"
  description: "A compiled EPUB built by ebookm"

output:
  path: "dist/collection.epub"

defaults:
  fetch_images: true
  normalize_substack_embeds: true
  processing:
    include_author: true
    include_date: true
    include_source_url: true
    skip_first_paragraphs: 0
  metadata:
    author: "Author Name"

sections:
  - id: "essays"
    title: "Essays"
    entries:
      - "opening-post"
      - "saved-html"

entries:
  opening-post:
    source:
      kind: "substack"
      url: "https://example.substack.com/p/opening-post"
    processing:
      skip_first_paragraphs: 1
    toc:
      title: "Opening Post"

  saved-html:
    source:
      kind: "html"
      path: "articles/saved-post.html"
    title: "Saved Local Article"
    links:
      mode: "explicit"
      allow_to: ["opening-post"]

link_rules:
  mode: "auto"
  rewrite_external_substack_links: true
  preserve_other_external_links: true
  rules:
    - from: ["section:essays"]
      to: ["section:essays"]
      match_mode: "canonical-url"
"#;
