Implement collapsible navigation and table of contents in documentation#7
Conversation
…n structure with hidden scrollbars
…d update documentation structure
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: cbdcc11dac
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
| }, | ||
| { | ||
| title: 'Data Prep', | ||
| href: '/docs/architecture/data-prep', |
There was a problem hiding this comment.
Remove sidebar routes that point to non-existent docs pages
This commit adds many new href entries under docsConfig.sidebarNav that do not have corresponding route files under src/app/docs (for example /docs/architecture/data-prep), so clicking them in the desktop or mobile nav now leads users to 404 pages. Because these links are prominently exposed in navigation, this is a user-facing regression rather than a content gap hidden from users.
Useful? React with 👍 / 👎.
| }, 100) | ||
|
|
||
| return () => clearTimeout(timer) | ||
| }, []) // eslint-disable-line react-hooks/exhaustive-deps |
There was a problem hiding this comment.
Recompute ToC items when navigating between docs pages
The TOC heading scan runs only once (useEffect(..., [])), but this component is mounted from the shared /docs layout, so client-side navigation between docs pages reuses the same instance and leaves items stale from the previous page. As a result, the “On This Page” links can reference headings from a different document after route changes.
Useful? React with 👍 / 👎.
No description provided.