Skip to content

Conversation

@parlough
Copy link
Member

@parlough parlough commented Jan 7, 2026

  • Collocates the various AI-related top-level directories under the top-level /ai directory.
  • Adds an auto-generated index page at /ai.
  • Removes the /resources/ai-overview page that isn't linked to and is covered by /ai/create-with-ai.
  • Renames /ai/flutter-ext-for-gemini to /ai/gemini-cli-extension to be more accurate and avoid duplication in the path.
  • Updates a few titles to use sentence case as expected by site standards.
  • Adds some custom short titles and breadcrumbs for improved site navigation and contextualization.

@parlough parlough requested review from a team and sfshaza2 as code owners January 7, 2026 20:38
@gemini-code-assist
Copy link
Contributor

Summary of Changes

Hello @parlough, I'm Gemini Code Assist1! I'm currently reviewing this pull request and will post my feedback shortly. In the meantime, here's a summary to help you and other reviewers quickly get up to speed!

This pull request significantly refactors the site's AI-related documentation by centralizing all relevant content under a new /ai top-level directory. The changes aim to enhance content organization, improve navigation through standardized titles and new index pages, and ensure a seamless user experience by implementing comprehensive URL redirects for all moved and renamed pages. This consolidation makes it easier for users to find and access information about AI integration with Flutter.

Highlights

  • AI Content Collocation: All AI-related top-level directories have been consolidated under a new, unified /ai directory to improve organization and discoverability.
  • New AI Index Page: An auto-generated index page has been added at /ai to provide a central entry point for all AI-related content.
  • Page Removal and Redirection: The /resources/ai-overview page, which was unlinked and redundant, has been removed and its content is now covered by /ai/create-with-ai with appropriate redirects.
  • Path and Title Standardization: The path /ai/flutter-ext-for-gemini has been renamed to /ai/gemini-cli-extension for accuracy and to avoid duplication. Additionally, several page titles have been updated to use sentence case, and custom short titles and breadcrumbs have been added for improved site navigation.
  • URL Redirections: The firebase.json configuration has been updated with 301 redirects to ensure that old URLs for moved and renamed AI-related content continue to function correctly, pointing to their new locations.

🧠 New Feature in Public Preview: You can now enable Memory to help Gemini Code Assist learn from your team's feedback. This makes future code reviews more consistent and personalized to your project's style. Click here to enable Memory in your admin console.

Using Gemini Code Assist

The full guide for Gemini Code Assist can be found on our documentation page, here are some quick tips.

Invoking Gemini

You can request assistance from Gemini at any point by creating a comment using either /gemini <command> or @gemini-code-assist <command>. Below is a summary of the supported commands on the current page.

Feature Command Description
Code Review /gemini review Performs a code review for the current pull request in its current state.
Pull Request Summary /gemini summary Provides a summary of the current pull request in its current state.
Comment @gemini-code-assist Responds in comments when explicitly tagged, both in pull request comments and review comments.
Help /gemini help Displays a list of available commands.

Customization

To customize Gemini Code Assist for GitHub experience, repository maintainers can create a configuration file and/or provide a custom code review style guide (such as PEP-8 for Python) by creating and adding files to a .gemini/ folder in the base of the repository. Detailed instructions can be found here.

Limitations & Feedback

Gemini Code Assist may make mistakes. Please leave feedback on any instances where its feedback is incorrect or counter productive. You can react with 👍 and 👎 on @gemini-code-assist comments. If you're interested in giving your feedback about your experience with Gemini Code Assist for Github and other Google products, sign up here.

You can also get AI-powered code generation, chat, as well as code reviews directly in the IDE at no cost with the Gemini Code Assist IDE Extension.

Footnotes

  1. Review the Privacy Notices, Generative AI Prohibited Use Policy, Terms of Service, and learn how to configure Gemini Code Assist in GitHub here. Gemini can make mistakes, so double check it and use code with caution.

Copy link
Contributor

@gemini-code-assist gemini-code-assist bot left a comment

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 reorganizes and updates the documentation structure for AI-related content, primarily by moving existing AI documentation paths under a consistent /ai/ prefix (e.g., /ai/best-practices, /ai/ai-toolkit). This involved adding new 301 redirects in firebase.json for these updated paths, updating numerous internal links within markdown files (e.g., src/content/ai/ai-toolkit/*.md, src/content/ai/best-practices/*.md), and restructuring the sidebar navigation in src/data/sidenav.yml to reflect these changes. Additionally, a new top-level AI overview page (src/content/ai/index.md) was introduced, replacing a previous version, and shortTitle frontmatter was added to several AI-related markdown files. Review comments highlighted an incorrect redirect destination in firebase.json for tool-calls-aka-function-calls, an inconsistent short-title key in src/content/ai/best-practices/index.md that should be shortTitle, and suggested updating a Flutter AI Toolkit link in src/content/ai/create-with-ai.md to use its direct, final path to avoid a redirect.

parlough and others added 3 commits January 7, 2026 14:41
Co-authored-by: gemini-code-assist[bot] <176961590+gemini-code-assist[bot]@users.noreply.github.com>
@flutter-website-bot
Copy link
Collaborator

flutter-website-bot commented Jan 7, 2026

Visit the preview URL for this PR (updated for commit 9e4fc6e):

https://flutter-docs-prod--pr12895-feat-ai-directory-cleanup-lng61chn.web.app

Copy link
Contributor

@sfshaza2 sfshaza2 left a comment

Choose a reason for hiding this comment

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

"/ai/ai-toolkit/..." is not the most elegant of urls, but ok.

@sfshaza2 sfshaza2 merged commit 192b36c into main Jan 7, 2026
10 checks passed
@sfshaza2 sfshaza2 deleted the feat/ai-directory-cleanup branch January 7, 2026 21:03
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