adk-docs icon indicating copy to clipboard operation
adk-docs copied to clipboard

Refactor multi-tool agent tutorial to remove language-specific headings from ToC

Open ravixalgorithm opened this issue 11 months ago • 2 comments

While exploring the ADK documentation, I noticed a small UI inconsistency in the “Build a multi-tool agent” and some other pages.

When a specific language (e.g., Python, TypeScript, or Java) is selected, the Table of Contents still displays entries for all languages instead of showing only the sections relevant to the selected language.

This can be slightly confusing for readers, especially beginners, as the ToC suggests content that isn’t currently visible or applicable.

Expected Behavior

The Table of Contents should dynamically update to show only the sections corresponding to the currently selected language.

Actual Behavior

The Table of Contents includes entries for all languages regardless of the selected language tab.

Why this matters

  • Improves clarity and focus while reading docs
  • Reduces cognitive load for new users
  • Aligns ToC behavior with the selected language context

Proposed Solution (Optional)

Conditionally render or filter the Table of Contents based on the active language selection.

Additional Context

This seems like a minor UI enhancement, but it could significantly improve the documentation experience. I’m a beginner in open source and would love to take this up as a starter contribution if the maintainers are open to it. I’m happy to follow the project’s contribution guidelines and feedback.

Screenshot

Image

ravixalgorithm avatar Dec 19 '25 11:12 ravixalgorithm

I’m a beginner in open source and would love to take this up as a starter contribution if the maintainers are open to it. I’m happy to follow the project’s contribution guidelines and feedback.

ravixalgorithm avatar Dec 19 '25 11:12 ravixalgorithm

Thanks for the issue!

It's not a good dev/reader experience to modify the ToC based on tabbed language selectors. The tutorial page that you linked to is an older version of the newer, more streamlined Getting Started pages. On other docs pages, we try to handle multiple languages entirely within tabs as opposed to ToC nav items.

I'll rename this issue to reflect the actual fix needed to that specific page. On that page, the ToC items should be refactored so that language-specific headings don't appear as separate ToC entries.

koverholt avatar Jan 30 '26 20:01 koverholt