Add page-aware API version switcher for API Explorer - #3831
Conversation
API Explorer pages need cross-version links to the same operation when it exists, with landing-page fallback otherwise. Reuse the docs nav dropdown pattern and hide the product nav dropdown on API pages. Co-authored-by: Cursor <cursoragent@cursor.com>
Apply dotnet format fixes required by the pre-push lint hook. Co-authored-by: Cursor <cursoragent@cursor.com>
|
@copilot resolve the merge conflicts in this pull request |
…licts Co-authored-by: reakaleek <16325797+reakaleek@users.noreply.github.com>
Merge conflicts resolved in c9d0fa9. The two conflicting files were:
|
Replace leftover FileSystemFactory call sites with DocumentationFileSystem.Resolve so the branch compiles after merging main.
|
@copilot resolve the merge conflicts in this pull request |
…licts Co-authored-by: reakaleek <16325797+reakaleek@users.noreply.github.com>
Merge conflicts resolved in 346250e. The conflict was in |
Why
Multi-version API pages need a version switcher that links to the same operation in another major when it exists there. The interim native select only navigated to version landing pages and did not match the docs navigation dropdown pattern.
What
Replace the interim
<select>with the same focus-within dropdown used in docs navigation. Build switcher targets from the version index and a cross-version page index so operation, tag, and schema pages deep-link across majors with landing-page fallback. Hide the product#nav-dropdownon API pages so only the version switcher appears in the left nav.Closes elastic/docs-eng-team#723
Made with Cursor