Repository navigation
Reorganize common.ai provider docs into topic-based navigation - #73523
Merged
Merged
Conversation
The provider docs had a single flat "Guides" list of 20 entries, with the seven connection pages sitting between the quick start and everything else and the operators at position 13. Several features (durable execution, guardrails, code mode, message history, approval gates, structured output) existed only as subsections of the AgentOperator and LLMOperator pages, and three pages exceeded 600 lines. The sidebar is now grouped into captions: Getting started, Models and providers, Operators, Toolsets, Running agents, Document and RAG pipelines, Reliability and operations, Examples and References. The toolsets and choosing-a-toolset pages become one overview plus a page per toolset, the sandbox page splits into overview, configuration and backends, and the agent and LLM operator feature sections become pages of their own. New pages cover installation, core concepts and troubleshooting. A redirects file covers the removed pages, and the AgentOperator page keeps a durable execution heading because pydantic-ai's docs deep-link that anchor.
kaxil
force-pushed
the
common-ai-docs-reorg
branch
from
September 22, 2026 07:42
5754e66 to
b46cd92
Compare
vatsrahul1001
approved these changes
Sep 22, 2026
The auto-generated tail of index.rst is regenerated by the update-providers-build-files hook, which separates its blocks with two blank lines. The reorg collapsed them to one, so the hook rewrote the file in CI. This commit is the hook's output.
1 task done
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
The
common.aidocs sidebar is one flat "Guides" list of 20 entries. Seven connection pages sit between the quick start and everything else, the operators are entry 13 of 20, and "Choosing a toolset" comes after both "Toolsets" and "Sandboxed execution". A reader cannot tell from the sidebar which features exist: durable execution, guardrails, code mode, message history, approval gates and structured output are subsections of theAgentOperatorandLLMOperatorpages, andtoolsets.rst(1145 lines),sandbox.rst(821) andchoosing_a_toolset.rst(611, which re-walkstoolsets.rsttoolset by toolset) carry most of the agent material.This PR regroups the sidebar into captions (Getting started, Models and providers, Operators, Toolsets, Running agents, Document and RAG pipelines, Reliability and operations, Examples, References), splits the three long pages, gives each feature above a page of its own, and adds an installation page, a core concepts page and a troubleshooting page. It is a move, not a rewrite: existing prose travels verbatim apart from the sentences that referred to "this page" or "below", and content fixes are left for a follow-up so this diff can be reviewed as a reorganization.
Design rationale
Toolsets and agent runtime features are separate captions. A reader wiring a Snowflake connection into an agent and a reader asking what happens on retry are different people, and Pydantic AI's own docs keep "Tools & Toolsets" apart from "Capabilities" for the same reason. MCP and the sandbox are entries under those captions rather than captions of their own: each is two or three pages, and the Airflow Sphinx theme renders every caption permanently expanded, so a two-entry caption reads as an afterthought. The MCP connection and hook pages nest under
toolsets/mcp.rstthrough its own toctree, so they remain one click away without adding sidebar lines.Durable execution sits under Reliability, next to retry policies. A reader whose retries are expensive scans for "retry", lands on
LLMRetryPolicy(which classifies failures and never mentioned durable execution), and leaves with the wrong feature. Both pages now open with a paragraph naming the other and the batch operator's re-attach behaviour.choosing_a_toolset.rstis retired rather than kept as a page. Its intro, decision table and tail sections (credentials, call barriers, layering) open the newtoolsets/index.rst; each per-toolset section becomes a "When to choose it" section on that toolset's page, so the guidance sits beside the configuration reference instead of on a parallel page.Agent security gets its own page.
security.rstis checked verbatim against a shared include bycheck_provider_docs, so the 250-line defense-layers,allowed_tablesand production-checklist section fromtoolsets.rstlives inagent_security.rstunder Reliability.Sidebar labels are class names or short nouns. Task-first labels such as "Airflow hooks as tools" wrap at the sidebar width; the page titles keep the longer form and the overview table does the "I have X, which toolset" mapping.
Gotchas
redirects.txtcovers the four removed pages (toolsets,choosing_a_toolset,sandbox,hooks/index).operators/agent.html#durable-execution, sooperators/agent.rstkeeps a short "Durable execution" heading pointing at the new page. Fragments do not survive a redirect, which is why a stub rather than a redirect.Follow-ups
Content fixes found while reading every page (stale model ids, review-process language in prose, version-pinned claims, a connection rename note pasted into three pages, the same MCP explanation on three pages) are intentionally not in this PR.
{pr_number}.significant.rst, in airflow-core/newsfragments. You can add this file in a follow-up commit after the PR is created so you know the PR number.