feat: add Reference link to main navigation

- Add Reference nav link with subtle separator styling
- Update nav highlight to show active state on reference pages

🤖 Generated with [Claude Code](https://claude.com/claude-code)
This commit is contained in:
2026-01-15 15:54:43 +01:00
parent 635c3112de
commit 50d458c1d1
3 changed files with 9 additions and 0 deletions

View File

@@ -1941,6 +1941,8 @@ function updateNavHighlight(route) {
if (route?.type === RouteType.SECTION && link.dataset.section === route.sectionId) {
link.classList.add("active");
} else if (route?.type === RouteType.REFERENCE && link.dataset.section === "reference") {
link.classList.add("active");
} else if (route?.type === RouteType.LESSON) {
// Highlight section based on module's inferred section
const module = lessonEngine.modules.find((m) => m.id === route.moduleId);