Skip to content

Commit 80d70b8

Browse files
committed
Properly next appendix chapters
1 parent 16b46c0 commit 80d70b8

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/project/types/book/book-config.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -357,6 +357,7 @@ export async function bookRenderItems(
357357
kBookItemChapter,
358358
bookChaptersToSidebarItems(bookInputs)
359359
.map((item) => normalizeSidebarItem(projectDir, item, context)),
360+
key === "chapters" ? 0 : 1, // next chapters under appendices, so start depth at level 1 (under appendix)
360361
);
361362
}
362363
};

0 commit comments

Comments
 (0)