Skip to content

Commit 192b36c

Browse files
Collect AI-related content together and standardize titles (#12895)
- 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. --------- Co-authored-by: gemini-code-assist[bot] <176961590+gemini-code-assist[bot]@users.noreply.github.com>
1 parent e538583 commit 192b36c

20 files changed

+65
-99
lines changed

firebase.json

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,12 @@
2929
{ "source": "/accessibility", "destination": "/ui/accessibility", "type": 301 },
3030
{ "source": "/adaptations", "destination": "/platform-integration/platform-adaptations", "type": 301 },
3131
{ "source": "/adaptive*", "destination": "/ui/adaptive-responsive", "type": 301 },
32+
{ "source": "/ai-best-practices", "destination": "/ai/best-practices", "type": 301 },
33+
{ "source": "/ai-best-practices/:rest*", "destination": "/ai/best-practices/:rest*", "type": 301 },
34+
{ "source": "/ai-toolkit", "destination": "/ai/ai-toolkit", "type": 301 },
35+
{ "source": "/ai-toolkit/:rest*", "destination": "/ai/ai-toolkit/:rest*", "type": 301 },
36+
{ "source": "/ai/flutter-ext-for-gemini", "destination": "/ai/gemini-cli-extension", "type": 301 },
37+
{ "source": "/ai/best-practices/tool-calls-aka-function-calls", "destination": "/ai/best-practices/tool-calls", "type": 301 },
3238
{ "source": "/android-release", "destination": "/deployment/android", "type": 301 },
3339
{ "source": "/animations", "destination": "/ui/animations", "type": 301 },
3440
{ "source": "/animations/:rest*", "destination": "/ui/animations/:rest*", "type": 301 },
@@ -182,6 +188,7 @@
182188
{ "source": "/release/breaking-changes/win_lifecycle_process_function", "destination": "/release/breaking-changes/win-lifecycle-process-function", "type": 301 },
183189
{ "source": "/release/archive", "destination": "/install/archive", "type": 301 },
184190
{ "source": "/release/upgrade", "destination": "/install/upgrade", "type": 301 },
191+
{ "source": "/resources/ai-overview", "destination": "/ai/create-with-ai", "type": 301 },
185192
{ "source": "/resources/books", "destination": "https://docs.flutter.dev/reference/learning-resources", "type": 301 },
186193
{ "source": "/resources/compatibility", "destination": "/release/compatibility-policy", "type": 301 },
187194
{ "source": "/resources/dart-swift-concurrency", "destination": "/get-started/flutter-for/dart-swift-concurrency", "type": 301 },

src/content/ai/ai-rules.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
---
22
title: AI rules for Flutter and Dart
3+
shortTitle: AI rules
34
description: >-
45
Learn how to add AI rules to tools that accelerate your
56
development workflow.

src/content/ai-toolkit/chat-client-sample.md renamed to src/content/ai/ai-toolkit/chat-client-sample.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ description: >
44
Learn about the chat client sample included in the AI Toolkit.
55
prev:
66
title: Custom LLM providers
7-
path: /ai-toolkit/custom-llm-providers
7+
path: /ai/ai-toolkit/custom-llm-providers
88
---
99

1010
The AI Chat sample is meant to be a full-fledged chat app built using the

src/content/ai-toolkit/custom-llm-providers.md renamed to src/content/ai/ai-toolkit/custom-llm-providers.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,10 @@ description: >
44
How to integrate with other Flutter features.
55
prev:
66
title: Feature integration
7-
path: /ai-toolkit/feature-integration
7+
path: /ai/ai-toolkit/feature-integration
88
next:
99
title: Chat client sample
10-
path: /ai-toolkit/chat-client-sample
10+
path: /ai/ai-toolkit/chat-client-sample
1111
---
1212

1313
The protocol connecting an LLM and the `LlmChatView` is expressed in the

src/content/ai-toolkit/feature-integration.md renamed to src/content/ai/ai-toolkit/feature-integration.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,10 @@ description: >
44
How to integrate with other Flutter features.
55
prev:
66
title: User experience
7-
path: /ai-toolkit/user-experience
7+
path: /ai/ai-toolkit/user-experience
88
next:
99
title: Custom LLM providers
10-
path: /ai-toolkit/custom-llm-providers
10+
path: /ai/ai-toolkit/custom-llm-providers
1111
---
1212

1313
In addition to the features that are provided automatically by the
Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,12 @@
11
---
2-
title: AI Toolkit
2+
title: Flutter AI Toolkit
3+
shortTitle: AI Toolkit
34
description: >
45
Learn how to add the AI Toolkit chatbot
56
to your Flutter application.
67
next:
78
title: User experience
8-
path: /ai-toolkit/user-experience
9+
path: /ai/ai-toolkit/user-experience
910
---
1011

1112
Hello and welcome to the Flutter AI Toolkit!

src/content/ai-toolkit/user-experience.md renamed to src/content/ai/ai-toolkit/user-experience.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,10 @@ description: >
44
How the user will experience the AI Toolkit in your app.
55
prev:
66
title: AI Toolkit overview
7-
path: /ai-toolkit/
7+
path: /ai/ai-toolkit/
88
next:
99
title: Feature integration
10-
path: /ai-toolkit/feature-integration
10+
path: /ai/ai-toolkit/feature-integration
1111
---
1212

1313
The [`LlmChatView`][] widget is the entry point for the interactive chat
@@ -190,6 +190,6 @@ documentation.
190190
[Cupertino app]: {{site.api}}/flutter/cupertino/CupertinoApp-class.html
191191
[`CupertinoTextField`]:
192192
{{site.api}}/flutter/cupertino/CupertinoTextField-class.html
193-
[Custom styling]: /ai-toolkit/feature-integration#custom-styling
193+
[Custom styling]: /ai/ai-toolkit/feature-integration#custom-styling
194194
[Material app]: {{site.api}}/flutter/material/MaterialApp-class.html
195195
[`TextField`]: {{site.api}}/flutter/material/TextField-class.html

src/content/ai-best-practices/developer-experience.md renamed to src/content/ai/best-practices/developer-experience.md

Lines changed: 3 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ description: >
55
iterate on high-quality Flutter applications.
66
prev:
77
title: Mode of interaction
8-
path: /ai-best-practices/mode-of-interaction
8+
path: /ai/best-practices/mode-of-interaction
99
---
1010

1111

@@ -153,14 +153,5 @@ Doing this a few times keeps the code in good shape for AI agents and humans
153153
alike.
154154

155155

156-
157-
158-
159-
160-
161-
162-
163-
[requirements]:
164-
{{site.github}}/flutter/demos/blob/main/crossword_companion/specs/requirements.md
165-
[tasks-spec]:
166-
{{site.github}}/flutter/demos/blob/main/crossword_companion/specs/tasks.md
156+
[requirements]: {{site.github}}/flutter/demos/blob/main/crossword_companion/specs/requirements.md
157+
[tasks-spec]: {{site.github}}/flutter/demos/blob/main/crossword_companion/specs/tasks.md
Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,13 @@
11
---
22
title: Flutter AI best practices
3+
shortTitle: AI best practices
4+
breadcrumb: Best practices
35
description: >
46
Learn best practices for building AI-powered Flutter apps using guardrails to
57
verify and correct AI-generated data.
68
next:
79
title: Prompting
8-
path: /ai-best-practices/prompting
10+
path: /ai/best-practices/prompting
911
---
1012

1113

@@ -57,5 +59,4 @@ practices to use when you're building your own AI apps with Flutter. So let's
5759
get to it!
5860

5961

60-
61-
[crossword-app]: {{site.github}}/flutter/demos/tree/main/crossword_companion
62+
[crossword-app]: {{site.github}}/flutter/demos/tree/main/crossword_companion

src/content/ai-best-practices/mode-of-interaction.md renamed to src/content/ai/best-practices/mode-of-interaction.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,10 @@ description: >
55
guardrails to manage nondeterministic AI behavior.
66
prev:
77
title: Tool calls (aka function calls)
8-
path: /ai-best-practices/tool-calls-aka-function-calls
8+
path: /ai/best-practices/tool-calls
99
next:
1010
title: Developer experience
11-
path: /ai-best-practices/developer-experience
11+
path: /ai/best-practices/developer-experience
1212
---
1313

1414

0 commit comments

Comments
 (0)