metadata:
    series:
        name:           Linsan
        volume:         1
    title:              Allegro
    author:             D. Moonfire
    publisher:          Broken Typewriter Press
    rights:             CC-BY-NC-SA-4.0
    description:
        source:        ./description.md
    subjects:
        - Anime
        - Fantasy
        - Steampunk
        - Fiction
        - Action
        - Drama
    language:           en
    date:               2019-12-20
    theme:              "@fedran/writing-theme"
    outputDirectory:    .
    outputFilename:     "dmoonfire-{{ edition.fedran.pov }}-{{ edition.fedran.vol}}-{{ edition.name }}-{{ edition.version }}.{{ edition.editionName }}"

editions:
    epub:
        format:             "@mfgames-writing/epub2"

    pdf:
        format:             "@mfgames-writing/weasyprint"
        images:
            grayscale:  true
            opaque:     true

contents:
    - element: cover
      source: build/repos/fedran-covers/dist/full/{{ edition.fedran.pov }}-{{ edition.fedran.vol}}-{{ edition.name }}-front.jpg
      linear: false
      exclude:
          editions: [pdf]
          toc: true
    - element: bastard
      source: frontmatter/title.html
      linear: false
      exclude:
          editions: [epub]
          toc: true
    - element: title
      source: frontmatter/title.html
      linear: false
      exclude:
          toc: true
    - element: legal
      source: frontmatter/legal.md
      liquid: true
      linear: false
    - element: dedication
      source: frontmatter/dedication.md
      linear: false
    - element: toc
      linear: false
      title: Contents
      exclude:
          editions: [pdf]
    - element: chapter
      number: 1
      directory: chapters
      source: /^chapter-\d+.md$/
      start: true
      page: 1
      pipeline: &pipelines
          - module: "@fedran/writing-hyphen"
          - module: "@mfgames-writing/hyphen"
    - element: appendix
      source: backmatter/about.md
    - element: appendix
      source: backmatter/fedran.md
    - element: appendix
      id: license
      source: backmatter/license.md
      liquid: true
    - element: appendix
      source: backmatter/patrons.md
    - element: appendix
      source: backmatter/credits.md
      pipeline: *pipelines
    - element: colophon
      source: backmatter/colophon.md