Skip to content

Allow part to be a page loaded from a file #58

@So-Cool

Description

@So-Cool

Description / Summary

Load part content from a file via the following ToC syntax

format: jb-book
root: index
parts:
  - file: part_1/index
    chapters:
      - file: part_1/chapter_1
      - file: part_1/chapter_2/index
        sections:
          - file: part_1/chapter_2/section_1
          - file: part_1/chapter_2/section_2

Value / benefit

  • Allows to write individual preface for each part -- this page won't be numbered as opposed to individual chapters
  • Makes the parts--chapters ToC syntax consistent with chapters--sections syntax

Implementation details

  • The file key seems to be accepted for parts entries, but it has no effect on the ToC

Tasks to complete

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions