Skip to content

Switch current version to documented version - #13918

Merged
parlough merged 3 commits into
mainfrom
misc/simplified-documented-version
Sep 22, 2026
Merged

parlough merged 3 commits into
mainfrom
misc/simplified-documented-version

Conversation

@parlough

Copy link
Copy Markdown
Member

Keep the site variable focused by only specifying the major.minor version as patches should generally not affect the docs at a grand scale and we might not update the version every patch. Also update the name from currentFlutterVersion to documentedFlutterVersion to better reflect its purpose and usage.

@parlough
parlough requested review from a team and sfshaza2 as code owners September 22, 2026 16:14

@sfshaza2 sfshaza2 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.

Thankyou! I do prefer when it sticks to major.minor.

@gemini-code-assist gemini-code-assist Bot 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.

Code Review

This pull request replaces the 'currentFlutterVersion' configuration with 'documentedFlutterVersion' (in 'major.minor' format) across the documentation and layout components, adding validation to ensure the version is correctly formatted. The feedback suggests improving the validation error message to explicitly guide contributors to use a quoted string, preventing issues where YAML parsers interpret unquoted versions as doubles.

Comment thread sites/docs/lib/src/components/layout/trailing_content.dart Outdated
@flutter-website-bot

flutter-website-bot commented Sep 22, 2026 •

Copy link
Copy Markdown
Collaborator

Staged preview of the updated docs.flutter.dev site (updated for commit ab0e656):

https://flutter-docs-prod--docs-pr13918-misc-simplified-docume-j464iir7.web.app

@flutter-website-bot

Copy link
Copy Markdown
Collaborator

Staged preview of the updated flutter.dev site (updated for commit bb0d8c4):

https://flutter-dev-230821--www-pr13918-misc-simplified-docume-o5k7okli.web.app

@parlough
parlough merged commit 5d0760a into main Sep 22, 2026
16 checks passed
@parlough
parlough deleted the misc/simplified-documented-version branch September 22, 2026 16:33
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.

3 participants