Skip to content

[docs] Add a unified APIs navigation section#64387

Draft
ronny-anyscale wants to merge 1 commit into
masterfrom
pattern-b
Draft

[docs] Add a unified APIs navigation section#64387
ronny-anyscale wants to merge 1 commit into
masterfrom
pattern-b

Conversation

@ronny-anyscale

Copy link
Copy Markdown
Contributor

What

Prototype of a unified APIs navigation section. Each library's API reference (Data, Train, Tune, Serve, RLlib, Core) moves under a single apis/<lib>/ tree, surfaced as an "APIs" item in the top navigation. On any API page the left sidebar shows the API navigation — scoped to the current library, with the current symbol anchored — instead of the library's narrative navigation.

Why

Today every page renders the same global left nav. This makes the API reference a first-class, self-contained section with its own navigation, so navigating into a symbol (e.g. Dataset.sum) keeps you in the API tree.

How

  • git mv each library's API reference under apis/<lib>/; add a MyST apis/index.md landing page and an "APIs" top-nav entry; drop the API entry from each library's narrative toctree.
  • A small Sphinx extension (_ext/api_sidebar.py) scopes the APIs sidebar to apis/ pages (orphan pages fall back to the global sidebar).
  • Short autosummary stub labels so the sidebar shows leaf symbol names.

Status / notes

  • Draft — opening primarily to preview the Read the Docs build.
  • make html -W is clean locally (0 warnings).
  • Canonical API URLs change (/<lib>/api/.../apis/<lib>/...). Redirects for the old URLs are not included yet, and a few absolute deep-links in example notebooks still point at old paths (non-breaking) — follow-up.

🤖 Generated with Claude Code

Move each library's API reference (Data, Train, Tune, Serve, RLlib, Core)
under a single apis/ tree, surfaced as an "APIs" top-nav tab. On any API
page the left sidebar shows the API navigation scoped to the current library
(with the current symbol anchored) instead of the narrative navigation.

Adds a small Sphinx extension to scope the APIs sidebar to apis/ pages,
short autosummary stub labels, and a MyST APIs landing page.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Signed-off-by: Ronny Roland <ronny.roland@anyscale.com>

@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 restructures the API documentation by consolidating library APIs under a unified apis/ directory. It introduces a new Sphinx extension api_sidebar to scope the API sidebar to these pages, updates various autosummary templates to use shortened names, and updates internal links across the documentation to point to the new /apis/ paths. There are no review comments, so I have no feedback to provide.

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.

1 participant