-
Notifications
You must be signed in to change notification settings - Fork 12
Open
Description
Allow adding arbitrary structure grouping canvases (e.g. chapter 1, chapter 2, etc) by extending info.yml with a structures property.
label: A Book with Chapters
structures:
- Chapter 1
- _page1
- _page2
- _page3
- Chapter 2
- _page3
- _page4
- _page5Here "Chapter 1" will be the label for the parent range, and canvases are included by their folder name. The canvas range label is retrieved using the existing label logic for canvases.
structures: [
{
"id": ".../index.json/ranges/range0",
"type": "Range",
"label": {
"@none": [
"Chapter 1"
]
},
"items": [
{
"id": "...index.json/canvases/canvas0",
"label": {
"@none": [
"page 1"
]
},
"type": "Canvas"
},
{
"id": "...index.json/canvases/canvas1",
"label": {
"@none": [
"page 2"
]
},
"type": "Canvas"
},
{
"id": "...index.json/canvases/canvas2",
"label": {
"@none": [
"page 3"
]
},
"type": "Canvas"
}
]
}
]
Metadata
Metadata
Assignees
Labels
No labels