Skip to content

Commit a05e8b9

Browse files
authored
Ai cleanup redirects (#13270)
Cleanup for the new AI section. ## Presubmit checklist - [X] If you are unwilling, or unable, to sign the CLA, even for a _tiny_, one-word PR, please file an issue instead of a PR. - [X] If this PR is not meant to land until a future stable release, mark it as draft with an explanation. - [X] This PR follows the [Google Developer Documentation Style Guidelines](https://developers.google.com/style)—for example, it doesn't use _i.e._ or _e.g._, and it avoids _I_ and _we_ (first-person pronouns). - [X] This PR uses [semantic line breaks](https://github.com/dart-lang/site-shared/blob/main/doc/writing-for-dart-and-flutter-websites.md#semantic-line-breaks) of 80 characters or fewer.
1 parent 206470e commit a05e8b9

5 files changed

Lines changed: 30 additions & 67 deletions

File tree

firebase.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,9 @@
3535
{ "source": "/ai-toolkit/:rest*", "destination": "/ai/ai-toolkit/:rest*", "type": 301 },
3636
{ "source": "/ai/flutter-ext-for-gemini", "destination": "/ai/gemini-cli-extension", "type": 301 },
3737
{ "source": "/ai/best-practices/tool-calls-aka-function-calls", "destination": "/ai/best-practices/tool-calls", "type": 301 },
38+
{ "source": "/ai/antigravity", "destination": "/ai/coding-assistants", "type": 301 },
39+
{ "source": "/ai/gemini-code-assist", "destination": "/ai/coding-assistants", "type": 301 },
40+
{ "source": "/ai/firebase-ai-logic", "destination": "https://firebase.google.com/docs/ai-logic/get-started?platform=flutter", "type": 301 },
3841
{ "source": "/android-release", "destination": "/deployment/android", "type": 301 },
3942
{ "source": "/animations", "destination": "/ui/animations", "type": 301 },
4043
{ "source": "/animations/:rest*", "destination": "/ui/animations/:rest*", "type": 301 },

site/lib/src/layouts/dash_layout.dart

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -157,7 +157,10 @@ ga('send', 'pageview');
157157
final bodyClass = pageData['bodyClass'] as String?;
158158
final pageUrl = page.url.startsWith('/') ? page.url : '/${page.url}';
159159

160-
final pageSidenav = pageData['sidenav'] as String? ?? defaultSidenav;
160+
final pageSidenavRaw = pageData['sidenav'];
161+
final pageSidenav = pageSidenavRaw is String
162+
? pageSidenavRaw
163+
: defaultSidenav;
161164
final sideNavEntries = switch (page.data['sidenav']) {
162165
_ when pageSidenav == 'ai' => switch (page.data['ai']) {
163166
final List<Object?> sidenavData => navEntriesFromData(sidenavData),

src/content/ai/coding-assistants.md

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,11 @@ description: >
66
to accelerate your Flutter development.
77
---
88

9-
AI tools are not only features in your app, but can also be powerful assistants in your development workflow. Tools like Antigravity and Gemini CLI can help you write code faster, understand complex concepts, and reduce boilerplate.
9+
AI tools are not only features in your app,
10+
but can also be powerful assistants in your development workflow.
11+
12+
Tools like Antigravity and Gemini CLI can help you write code faster,
13+
understand complex concepts, and reduce boilerplate.
1014

1115
## Antigravity
1216

src/content/ai/create-with-ai.md

Lines changed: 18 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -11,18 +11,24 @@ This guide covers how you can leverage AI tools to build AI-powered
1111
features for your Flutter apps and streamline your
1212
Flutter and Dart development.
1313

14-
## Overview
15-
16-
AI can be used for building AI-powered apps with Flutter and for accelerating
17-
your development workflow. You can integrate AI-powered features like natural
18-
language understanding and content generation directly into your Flutter app
19-
using powerful SDKs, like the Firebase SDK for Generative AI. You can also use
20-
AI tools, such as Gemini Code Assist and Gemini CLI, to help with code
21-
generation and scaffolding. These tools are powered by the Dart and Flutter MCP
22-
server, which provides AI with a rich context about your codebase. The Flutter
23-
Extension for Gemini CLI makes it easy to leverage official rules, the MCP server,
24-
and custom commands for building your app. Additionally, rules files help
25-
fine-tune the AI's behavior and enforce project-specific best practices.
14+
AI can be used for building AI-powered apps with Flutter
15+
and for accelerating your development workflow.
16+
17+
You can integrate AI-powered features like natural language understanding
18+
and content generation directly into your Flutter app
19+
using powerful SDKs, like the Firebase SDK for Generative AI.
20+
21+
You can also use AI tools, such as Gemini Code Assist and Gemini CLI,
22+
to help with code generation and scaffolding.
23+
24+
These tools are powered by the Dart and Flutter MCP server,
25+
which provides AI with a rich context about your codebase.
26+
27+
The Flutter Extension for Gemini CLI makes it easy to leverage official rules,
28+
the MCP server, and custom commands for building your app.
29+
30+
Additionally, rules files help fine-tune the AI's behavior
31+
and enforce project-specific best practices.
2632

2733
## Build AI-powered experiences with Flutter
2834

src/data/sidenav.yml

Lines changed: 0 additions & 53 deletions
Original file line numberDiff line numberDiff line change
@@ -271,59 +271,6 @@
271271
- divider
272272
- header: Beyond UI
273273

274-
- title: AI solutions
275-
permalink: /ai
276-
icon: smart_toy
277-
children:
278-
- title: Create with AI
279-
permalink: /ai/create-with-ai
280-
- title: Rules for AI
281-
permalink: /ai/ai-rules
282-
- title: AI best practices
283-
permalink: /ai/best-practices
284-
children:
285-
- title: Overview
286-
permalink: /ai/best-practices
287-
- title: Prompting
288-
permalink: /ai/best-practices/prompting
289-
- title: Structure & output
290-
permalink: /ai/best-practices/structure-output
291-
- title: Tool calls (aka function calls)
292-
permalink: /ai/best-practices/tool-calls
293-
- title: Mode of interaction
294-
permalink: /ai/best-practices/mode-of-interaction
295-
- title: Developer experience
296-
permalink: /ai/best-practices/developer-experience
297-
- title: AI Toolkit
298-
permalink: /ai/ai-toolkit
299-
children:
300-
- title: Overview
301-
permalink: /ai/ai-toolkit
302-
- title: User experience
303-
permalink: /ai/ai-toolkit/user-experience
304-
- title: Feature integration
305-
permalink: /ai/ai-toolkit/feature-integration
306-
- title: Custom LLM providers
307-
permalink: /ai/ai-toolkit/custom-llm-providers
308-
- title: Chat client sample
309-
permalink: /ai/ai-toolkit/chat-client-sample
310-
- title: GenUI SDK for Flutter
311-
permalink: /ai/genui
312-
children:
313-
- title: Overview
314-
permalink: /ai/genui
315-
- title: Main components & concepts
316-
permalink: /ai/genui/components
317-
- title: Get started
318-
permalink: /ai/genui/get-started
319-
- title: Input and events
320-
permalink: /ai/genui/input-events
321-
- title: Dart & Flutter MCP server
322-
permalink: /ai/mcp-server
323-
- title: Flutter extension for Gemini CLI
324-
permalink: /ai/gemini-cli-extension
325-
- title: Firebase AI Logic
326-
permalink: https://firebase.google.com/docs/ai-logic/get-started?platform=flutter
327274

328275
- title: Data & backend
329276
permalink: /data-and-backend

0 commit comments

Comments
 (0)