Skip to content

Restore xyz.md / xyz-overview.md convention for Agents section#2308

Merged
burtenshaw merged 3 commits intohuggingface:mainfrom
mishig25:agents-landing-page
Mar 20, 2026
Merged

Restore xyz.md / xyz-overview.md convention for Agents section#2308
burtenshaw merged 3 commits intohuggingface:mainfrom
mishig25:agents-landing-page

Conversation

@mishig25
Copy link
Copy Markdown
Collaborator

@mishig25 mishig25 commented Mar 19, 2026

Summary

#2289 made agents-overview the top-level toctree entry for the Agents section, which breaks the xyz.md / xyz-overview.md convention that every other Hub doc section follows:

Section Landing page (xyz.md) Overview subpage
Spaces spaces.md spaces-overview.md
Jobs jobs.md jobs-overview.md
Datasets datasets.md datasets-overview.md
Models models.md models-the-hub.md
Agents (after #2289) noneagents-overview.md was promoted agents.md demoted to "Agent Libraries"

This PR restores the convention by:

  • Creating a proper agents.md landing page — a table-of-contents style page (same format as jobs.md / spaces.md) with an introductory paragraph and links to all sub-pages
  • Renaming the old agents.md (Agent Libraries content) → agents-libraries.md
  • Restoring agents as the toctree root with agents-overview as the first child section, matching how spaces, jobs, and datasets are structured

No content was removed — the Agent Libraries material is preserved in full at agents-libraries.md.

It will also fix this UI-bug

image

Made with Cursor


Note

Low Risk
Low risk documentation-only change that reshuffles the Agents docs navigation; main risk is broken links or unexpected sidebar ordering.

Overview
Restores the xyz.md / xyz-overview.md convention for the Hub Agents docs by making agents.md the landing page again and placing agents-overview as the first subpage in the Agents toctree.

Moves the previous “Agent Libraries” content out of agents.md into a new agents-libraries.md, and updates docs/hub/index.md + _toctree.yml to point to the new page and improve link labels (e.g., “Agents Overview”, “Building agents with the HF SDK”, “Local Agents”, “Agent Libraries”).

Written by Cursor Bugbot for commit b5d8d8d. This will update automatically on new commits. Configure here.

huggingface#2289 made `agents-overview` the top-level toctree entry, breaking
the pattern every other Hub section follows:

  spaces.md    → spaces-overview.md
  jobs.md      → jobs-overview.md
  datasets.md  → datasets-overview.md
  models.md    → models-the-hub.md

This commit:
- Creates a proper `agents.md` landing page (table-of-contents style,
  like `jobs.md` / `spaces.md`)
- Renames the old `agents.md` (Agent Libraries content) to
  `agents-libraries.md`
- Restores `agents` as the toctree root with `agents-overview` as the
  first child section

Made-with: Cursor
@mishig25 mishig25 requested review from burtenshaw, gary149, julien-c and pcuenca and removed request for julien-c March 19, 2026 16:58
@HuggingFaceDocBuilderDev
Copy link
Copy Markdown

The docs for this PR live here. All of your documentation changes will be reflected on that endpoint. The docs are available until 30 days after the last update.

Aligns the index.md HTML links with the new toctree structure:
rename "Agents on the Hub" → "Agents Overview", reorder entries
to match toctree, and add missing agents-local and agents-libraries links.

Made-with: Cursor
@mishig25 mishig25 requested a review from hanouticelina March 19, 2026 17:01
Copy link
Copy Markdown
Contributor

@hanouticelina hanouticelina left a comment

Choose a reason for hiding this comment

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

yes looks good to me, thanks!
(I hadn't noticed this convention when I suggested making agents-overview the top level toctree)

Copy link
Copy Markdown
Member

@julien-c julien-c left a comment

Choose a reason for hiding this comment

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

ok for me

Co-authored-by: Pedro Cuenca <pedro@huggingface.co>
Copy link
Copy Markdown
Collaborator

@burtenshaw burtenshaw left a comment

Choose a reason for hiding this comment

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

thanks! til.

@burtenshaw burtenshaw merged commit 06d74e3 into huggingface:main Mar 20, 2026
2 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.

6 participants