Skip to content

[AI Docs] Integrate AI documentation into the default sidebar - #13735

Merged
jesskuras merged 1 commit into
flutter:mainfrom
jesskuras:ai-sidenav-migration
Aug 19, 2026
Merged

[AI Docs] Integrate AI documentation into the default sidebar#13735
jesskuras merged 1 commit into
flutter:mainfrom
jesskuras:ai-sidenav-migration

Conversation

@jesskuras

@jesskuras jesskuras commented Aug 17, 2026

Copy link
Copy Markdown
Contributor

Integrate the standalone AI sidebar into the main default sidebar (default.yml)
under a dedicated AI top-level section header.

This migration:

  • Adds a new - header: AI section in default.yml with top-level entries for
    Overview, Develop with AI, and Build AI-powered apps.
  • Nests AI evaluations under Develop with AI.
  • Updates all 25 AI content markdown files to use the default sidebar.
  • Removes the standalone src/data/sidenav/ai.yml.

Integrate the standalone AI sidebar into default.yml as a dedicated
top-level section header, update AI content pages to use default
sidebar navigation, and remove deprecated ai.yml.
@flutter-website-bot

Copy link
Copy Markdown
Collaborator

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

https://flutter-docs-prod--docs-pr13735-ai-sidenav-migration-kr3sd4jg.web.app

@flutter-website-bot

Copy link
Copy Markdown
Collaborator

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

https://flutter-dev-230821--www-pr13735-ai-sidenav-migration-y15stxi6.web.app

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

I know this is a draft, @jesskuras, but this was MUCH NEEDED. Thanks! I'm ok with adding this, sooner than later, and tweaking as things evolve.

@lamek

lamek commented Aug 18, 2026

Copy link
Copy Markdown
Contributor

This looks great. I like keeping the top level "AI" tab.

I think we may need at least one redirect, for the default /ai path.

@jesskuras
jesskuras marked this pull request as ready for review August 19, 2026 22:01
@jesskuras
jesskuras requested a review from a team as a code owner August 19, 2026 22:01

@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 integrates the AI documentation navigation directly into the default sidebar configuration (default.yml) and removes the individual sidenav: ai frontmatter properties from the AI content files. Feedback on the changes suggests removing the permalink property from the "Build AI-powered apps" parent item in the sidebar to prevent it from unexpectedly navigating users directly to a sub-topic, allowing it to serve as a standard expandable container instead.

Comment on lines +670 to +672
- title: Build AI-powered apps
permalink: /ai/genui
icon: auto_awesome

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.

medium

The parent item Build AI-powered apps is configured with permalink: /ai/genui, which points directly to the GenUI SDK for Flutter page (the third child in this section). This can be confusing for users who click on the category header expecting a general overview or simply wanting to expand the section, only to be navigated directly to a specific sub-topic.

Since there is no dedicated overview page for 'Build AI-powered apps' (unlike 'Develop with AI' which naturally points to its first child 'Get started'), it is recommended to remove the permalink property from this category header. This allows it to function purely as an expandable/collapsible container, consistent with other nested sidebar categories.

- title: Build AI-powered apps
  icon: auto_awesome

@jesskuras

Copy link
Copy Markdown
Contributor Author

This looks great. I like keeping the top level "AI" tab.

I think we may need at least one redirect, for the default /ai path.

Thanks! I double-checked and since none of the URLs are changing (including the default /ai one) it looks like it still resolves fine.

@jesskuras
jesskuras merged commit 545a69a into flutter:main Aug 19, 2026
14 checks passed
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.

4 participants