Skip to content

docs: reorganize docs/ into intent-based sections#723

Merged
patniko merged 2 commits intomainfrom
docs/reorganize-structure
Mar 8, 2026
Merged

docs: reorganize docs/ into intent-based sections#723
patniko merged 2 commits intomainfrom
docs/reorganize-structure

Conversation

@patniko
Copy link
Contributor

@patniko patniko commented Mar 8, 2026

Summary

Restructures the docs/ folder from an organic flat layout into intent-based sections that are easier to navigate and discover.

Changes

New structure

Section Purpose Previously
docs/index.md Top-level TOC with "I want to…" persona routing (did not exist)
setup/ Get it running — deployment & architecture guides/setup/ (nested two levels deep)
auth/ Configure access (unchanged)
features/ Build things — SDK capabilities with new index guides/ (flat grab-bag)
hooks/ Per-hook API reference (unchanged, overview.mdindex.md)
troubleshooting/ Fix problems Scattered across root (debugging.md, compatibility.md, mcp/debugging.md)
observability/ Monitoring & telemetry Orphaned at root (opentelemetry-instrumentation.md)

Key improvements

  • Top-level navigation — new docs/index.md routes users by intent ("I want to build my first app", "I want to debug an issue", etc.)
  • Feature guide hub — new docs/features/index.md provides an overview of all SDK capabilities
  • Eliminated duplicate — removed guides/setup/byok.md (was a copy of auth/byok.md)
  • Flattened setup/ — moved from guides/setup/ to setup/ (one level shallower)
  • Consolidated troubleshooting — debugging, compatibility, and MCP debugging now live together
  • 50+ cross-references updated — verified zero broken internal links
  • README Quick Links expanded — surfaces 6 doc sections instead of 2

Validation

  • ✅ All internal markdown links verified (automated check, zero broken)
  • just validate-docs-extract passes (31 files, 298 code blocks extracted)
  • just validate-docs-check passes (all TS/Go/C# blocks valid)
  • ✅ No content changes — only file moves, link updates, and new index pages

Restructure the docs folder from an organic flat layout into
intent-based sections that are easier to navigate:

- setup/     — get it running (was guides/setup/, moved up one level)
- auth/      — configure access (unchanged)
- features/  — build things (was guides/, scoped to SDK capabilities)
- hooks/     — API reference per hook (unchanged, overview.md → index.md)
- troubleshooting/ — fix problems (new, consolidates debugging + compatibility)
- observability/   — monitoring (new, houses OpenTelemetry docs)

Key changes:
- Add docs/index.md as top-level table of contents with persona routing
- Add docs/features/index.md as feature guide overview
- Remove duplicate guides/setup/byok.md (auth/byok.md is source of truth)
- Rename hooks/overview.md → hooks/index.md for consistency
- Move mcp/overview.md → features/mcp.md, mcp/debugging.md → troubleshooting/
- Update all internal cross-references (verified zero broken links)
- Expand README Quick Links to surface more documentation sections

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
@patniko patniko requested a review from a team as a code owner March 8, 2026 07:51
Copilot AI review requested due to automatic review settings March 8, 2026 07:51
Create a dedicated integrations/ section at the bottom of the docs
hierarchy for platform/framework-specific guides. Move MAF out of
features/ since it's an integration pattern, not an SDK capability.

This makes it easy to add future guides for other platforms alongside MAF.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
@patniko patniko merged commit f4b0956 into main Mar 8, 2026
13 checks passed
@patniko patniko deleted the docs/reorganize-structure branch March 8, 2026 07:54
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Restructures the documentation under docs/ into intent-based sections (setup/auth/features/hooks/troubleshooting/observability) and updates internal cross-references so navigation and discovery are easier across the SDK docs.

Changes:

  • Added new intent-based landing pages (docs/index.md, docs/features/index.md) and new feature guides (e.g., streaming events, image input, custom agents, MAF integration).
  • Consolidated troubleshooting docs under docs/troubleshooting/ and updated “See also” cross-links across docs.
  • Moved/retargeted setup and feature references (e.g., BYOK, session persistence, MCP) and removed a duplicated BYOK guide.

Reviewed changes

Copilot reviewed 28 out of 32 changed files in this pull request and generated no comments.

Show a summary per file
File Description
docs/troubleshooting/mcp-debugging.md Updates “See also” links to the new troubleshooting/features locations.
docs/troubleshooting/debugging.md Fixes MCP debugging references to the new mcp-debugging.md location and updates “See also” links.
docs/troubleshooting/compatibility.md Updates “See also” links for getting started/hooks/MCP to new paths.
docs/setup/scaling.md Updates next-step links for session persistence and BYOK to new locations.
docs/setup/local-cli.md Updates BYOK + next-step links to new getting-started/auth/features paths.
docs/setup/index.md Updates BYOK and getting-started links to new locations.
docs/setup/github-oauth.md Updates BYOK/auth links to new locations.
docs/setup/bundled-cli.md Updates BYOK/session persistence/getting-started links to new locations.
docs/setup/backend-services.md Updates BYOK and session persistence links to new locations.
docs/setup/azure-managed-identity.md Updates BYOK references to new auth location.
docs/observability/opentelemetry.md Adds a new OpenTelemetry instrumentation guide under the new observability/ section.
docs/index.md Adds a top-level docs index with intent-based routing and a documentation map.
docs/hooks/user-prompt-submitted.md Updates hooks overview link from overview.md to index.md.
docs/hooks/session-lifecycle.md Updates hooks overview and debugging guide links to new paths.
docs/hooks/pre-tool-use.md Updates hooks overview and debugging guide links to new paths.
docs/hooks/post-tool-use.md Updates hooks overview link to index.md.
docs/hooks/index.md Updates debugging guide link to new troubleshooting location.
docs/hooks/error-handling.md Updates hooks overview and debugging guide links to new paths.
docs/guides/setup/byok.md Removes duplicate BYOK guide content (per PR description).
docs/getting-started.md Updates MCP documentation links to the new features page.
docs/features/streaming-events.md Adds a new, detailed streaming session events reference.
docs/features/steering-and-queueing.md Updates hooks link to the new hooks index.
docs/features/skills.md Updates MCP link to the new features MCP guide.
docs/features/session-persistence.md Updates compatibility/hooks/debugging links to new troubleshooting/hooks locations.
docs/features/microsoft-agent-framework.md Adds a new MAF integration guide and examples.
docs/features/mcp.md Updates MCP debugging and related-resource links to new troubleshooting locations.
docs/features/index.md Adds a new “Features” hub page linking to feature guides.
docs/features/image-input.md Adds a new guide documenting image attachments / vision usage.
docs/features/hooks.md Updates hooks overview/debugging links to new hooks/troubleshooting locations.
docs/features/custom-agents.md Adds a new custom agents & sub-agent orchestration guide.
docs/auth/index.md Updates MCP link to the new features MCP guide.
README.md Expands “Quick Links” to include docs index + new sections.
Comments suppressed due to low confidence (1)

docs/features/mcp.md:269

  • The "General Debugging Guide" link is broken (".../" in the path) and also points to the MCP debugging page instead of the SDK-wide debugging guide. Update it to the correct relative path from docs/features/mcp.md (e.g., ../troubleshooting/debugging.md).

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.

2 participants