Skip to content

docs: add version dropdown (stable/dev) to master - #11862

Merged
naorpeled merged 2 commits into
masterfrom
docs/version-dropdown
Dec 21, 2025
Merged

naorpeled merged 2 commits into
masterfrom
docs/version-dropdown

Conversation

@naorpeled

@naorpeled naorpeled commented Dec 20, 2025 •

Copy link
Copy Markdown
Member

Adds a navbar "Version" dropdown to the Docusaurus docs site so users can quickly switch between:

image

Copilot AI review requested due to automatic review settings December 20, 2025 20:27
@qodo-free-for-open-source-projects

Copy link
Copy Markdown

PR Reviewer Guide 🔍

Here are some key observations to aid the review process:

⏱️ Estimated effort to review: 1 🔵⚪⚪⚪⚪
🧪 No relevant tests
🔒 No security concerns identified
⚡ Recommended focus areas for review

Navigation Behavior

The dropdown uses href for external navigation, which will cause a full page reload when switching versions. Consider if this is the intended behavior or if there should be any warning to users that they will lose their current page context when switching versions. Also verify that both URLs are accessible and properly configured.

{
    type: "dropdown",
    label: "Version",
    position: "right",
    items: [
        {
            label: "Stable (v0.3)",
            href: "https://typeorm.io",
        },
        {
            label: "Dev (master)",
            href: "https://dev.typeorm.io",
        },
    ],
},

@naorpeled naorpeled changed the title docs: add version dropdown (stable/dev) docs: add version dropdown (stable/dev) to master Dec 20, 2025
@qodo-free-for-open-source-projects

Copy link
Copy Markdown

PR Code Suggestions ✨

Explore these optional code suggestions:

CategorySuggestion                                                                                                                                    Impact
General
Use built-in version dropdown component

Replace the manually created version dropdown with the built-in Docusaurus
docsVersionDropdown component to improve usability and maintainability.

docs/docusaurus.config.ts [101-115]

 {
-    type: "dropdown",
-    label: "Version",
+    type: "docsVersionDropdown",
     position: "right",
-    items: [
-        {
-            label: "Stable (v0.3)",
-            href: "https://typeorm.io",
-        },
-        {
-            label: "Dev (master)",
-            href: "https://dev.typeorm.io",
-        },
-    ],
 },
  • Apply / Chat
Suggestion importance[1-10]: 7

__

Why: The suggestion correctly identifies a suboptimal implementation with hardcoded URLs and proposes using the idiomatic Docusaurus docsVersionDropdown component, which improves maintainability and user experience.

Medium
  • More

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Pull request overview

This PR adds a version dropdown to the Docusaurus documentation site's navbar, enabling users to easily switch between the stable (v0.3) and development (master) versions of the TypeORM documentation.

Key Changes:

  • Added a "Version" dropdown to the navbar with links to both stable and dev documentation sites

@G0maa G0maa left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

🚀

@gioboa gioboa left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

👏

@qodo-free-for-open-source-projects

Copy link
Copy Markdown

PR Code Suggestions ✨

No code suggestions found for the PR.

@naorpeled
naorpeled merged commit 2359039 into master Dec 21, 2025
@naorpeled
naorpeled deleted the docs/version-dropdown branch December 21, 2025 21:16
@alumni alumni mentioned this pull request Dec 30, 2025
18 tasks done
mgohin pushed a commit to mgohin/typeorm that referenced this pull request Jan 15, 2026
kranners pushed a commit to kranners/typeorm that referenced this pull request Mar 1, 2026
@pkuczynski pkuczynski added this to the 1.0 milestone Mar 8, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

6 participants