Skip to content

feat: Cross-chapter navigation at section boundaries#133

Merged
williamzujkowski merged 1 commit intomainfrom
feat/130-cross-chapter-nav
Apr 1, 2026
Merged

feat: Cross-chapter navigation at section boundaries#133
williamzujkowski merged 1 commit intomainfrom
feat/130-cross-chapter-nav

Conversation

@williamzujkowski
Copy link
Copy Markdown
Collaborator

No more dead ends! Last section in a chapter now links to first section of next chapter (and vice versa). Shows '(Ch. N)' to signal chapter crossing. Closes #130.

When reaching the last section of a chapter, "Next →" now links to the
first section of the next chapter (with "(Ch. N)" indicator). Similarly,
the first section links backward to the previous chapter's last section.

Implementation:
- Pre-compute sorted chapter list per title in getStaticPaths
- Pass prevChapterLast and nextChapterFirst as props
- Fall back to cross-chapter link when at chapter boundary
- Show "(Ch. N)" in nav label to signal chapter crossing

Closes #130

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@williamzujkowski williamzujkowski merged commit c9c2511 into main Apr 1, 2026
@williamzujkowski williamzujkowski deleted the feat/130-cross-chapter-nav branch April 1, 2026 01:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

feat: Cross-chapter navigation at section boundaries

1 participant