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:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user