Skip to content

fix : version picker to the API docs and highlight the overview as active#160

Open
ryzrr wants to merge 3 commits into
mainfrom
fix/sidebar-overview-and-version-picker
Open

fix : version picker to the API docs and highlight the overview as active#160
ryzrr wants to merge 3 commits into
mainfrom
fix/sidebar-overview-and-version-picker

Conversation

@ryzrr

@ryzrr ryzrr commented Jun 29, 2026

Copy link
Copy Markdown
Member

Summary
Adds the version picker and the fixup to make overview in the governance section as active (highlighted)

What kind of change does this PR introduce?
Fixes some Bug and one improvement

Did you add tests for your changes?
NO

Does this PR introduce a breaking change?
NO

If relevant, what needs to be documented once your changes are merged or what have you already documented?
NA

Use of AI
for the regex and testing

@vercel

vercel Bot commented Jun 29, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
webpack-doc-kit Ready Ready Preview, Comment Jun 29, 2026 2:57pm

Request Review

Comment thread components/SideBar.jsx
Comment on lines +28 to +31
const versionItems = versions.map(version => ({
value: `/docs/api/v${major(version)}.x`,
label: `v${major(version)}.x`,
}));

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this can go outside the function, right?

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

it's already sits at the top of the component , so it is only build once when the file loads.

Comment thread components/SideBar.jsx Outdated
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.

2 participants