Skip to content

docs: Add version selector and update navbar#721

Merged
tilucasoli merged 1 commit intomainfrom
docs/add-versioning
Sep 4, 2025
Merged

docs: Add version selector and update navbar#721
tilucasoli merged 1 commit intomainfrom
docs/add-versioning

Conversation

@tilucasoli
Copy link
Copy Markdown
Collaborator

@tilucasoli tilucasoli commented Sep 4, 2025

Add versioning to documentation

Introduced a VersionSelector component for switching documentation versions and updated the navbar to include it, removing Discord and Twitter links. Also updated sitemap URLs and timestamps, and made minor formatting changes to style.css.
@docs-page
Copy link
Copy Markdown

docs-page Bot commented Sep 4, 2025

To view this pull requests documentation preview, visit the following URL:

docs.page/btwld/mix~721

Documentation is deployed and generated using docs.page.

@github-actions github-actions Bot added the documentation Improvements or additions to documentation label Sep 4, 2025
@tilucasoli tilucasoli requested a review from Copilot September 4, 2025 14:18
@tilucasoli tilucasoli merged commit b2b4570 into main Sep 4, 2025
2 checks passed
@tilucasoli tilucasoli deleted the docs/add-versioning branch September 4, 2025 14:22
@github-actions github-actions Bot removed the documentation Improvements or additions to documentation label Sep 4, 2025
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

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 selector component to the documentation website navbar and removes Discord/Twitter social links. The changes focus on improving version navigation while cleaning up the navbar design.

  • Added a new VersionSelector component with version 1.7 and 2.0 options
  • Replaced Discord and Twitter links in navbar with the version selector
  • Updated sitemap with new documentation pages and timestamps

Reviewed Changes

Copilot reviewed 4 out of 4 changed files in this pull request and generated 2 comments.

File Description
website/theme.config.tsx Imports and integrates VersionSelector component, removes social media links from navbar
website/style.css Minor CSS formatting cleanup for background gradient
website/public/sitemap-0.xml Updated sitemap with new tutorial pages and refreshed timestamps
website/components/VersionSelector.tsx New version selector component with dropdown for switching between versions 1.7 and 2.0

Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.

const newVersion = event.target.value;

if (newVersion === '1.7') {
window.location.href = 'mix-docs-gosljkd74-fluttertools.vercel.app';
Copy link

Copilot AI Sep 4, 2025

Choose a reason for hiding this comment

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

The URL assignment is missing the protocol (https://). This could cause the browser to treat it as a relative URL instead of navigating to the intended external domain.

Suggested change
window.location.href = 'mix-docs-gosljkd74-fluttertools.vercel.app';
window.location.href = 'https://mix-docs-gosljkd74-fluttertools.vercel.app';

Copilot uses AI. Check for mistakes.
@@ -0,0 +1,41 @@
const VersionSelector = () => {
Copy link

Copilot AI Sep 4, 2025

Choose a reason for hiding this comment

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

[nitpick] Component should be defined with React.FC type annotation or use function declaration for better TypeScript support and consistency.

Suggested change
const VersionSelector = () => {
import React from 'react';
const VersionSelector: React.FC = () => {

Copilot uses AI. Check for mistakes.
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