Skip to content

[Docs] Interactive UI components for Installation and TPU Setup pages - #3297

Merged
RobMulla merged 5 commits into
vllm-project:mainfrom
mtsokol:docs-interactive-components
Jul 31, 2026
Merged

[Docs] Interactive UI components for Installation and TPU Setup pages#3297
RobMulla merged 5 commits into
vllm-project:mainfrom
mtsokol:docs-interactive-components

Conversation

@mtsokol

@mtsokol mtsokol commented Jul 30, 2026

Copy link
Copy Markdown
Contributor

Split out of #2064 to keep that PR focused on the ToC reorganization.

This PR adds the new interactive UI components for the MkDocs site and the two pages that use them:

New assets

  • docs/mkdocs/javascripts/interactive.js — command generator (installation method picker), TPU provision generator, and a per-tab search box for support tables
  • docs/mkdocs/stylesheets/interactive.css — styles for the generator components
  • docs/mkdocs/stylesheets/extra.css — nav section styling, three-column card grid, and cg-badge styles

Usage

  • docs/getting_started/installation.md — rewritten around the command generator
  • docs/getting_started/tpu_setup.md — rewritten around the provision generator
  • mkdocs.yml — registers the new CSS/JS assets (nav changes stay in Reorganization of ToC and docs linting #2064)

The homepage persona cards (which use the card grid) remain in #2064 because they link to pages introduced there; with strict: true those links would fail the docs build here. Verified mkdocs build passes in strict mode on this branch.

🤖 Generated with Claude Code

mtsokol and others added 3 commits July 30, 2026 15:33
…pages

Adds reusable interactive components for the MkDocs site:
- interactive.js: command generator (installation method picker),
  TPU provision generator, and per-tab table search
- interactive.css: styles for the generator components
- extra.css: nav section styling, card grid, and cg-badge styles

Uses them in the Installation and TPU Setup pages and registers the
assets in mkdocs.yml.

Split out of vllm-project#2064.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>

Signed-off-by: Mateusz Sokół <mat646@gmail.com>
Runtime-injected snippets are not colored by build-time Pygments, so add
a minimal shell tokenizer that wraps comments, strings, and variables in
Pygments token classes, styled with the theme's code-highlight palette.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>

Signed-off-by: Mateusz Sokół <mat646@gmail.com>
- Simplify installation methods comparison into a clean bulleted list
- Rename 'Interactive Installation' header to 'Installation Commands'
- Add release (latest) vs. nightly Docker image selector
- Unify TPU provisioning into a single generator supporting Standard vs. Flex-start (DWS) modes
- Use Compute Engine API (gcloud compute instances create) for modern TPU v6e and v5p provisioning
- Use ZONE placeholder variable in generated commands and add ZONE to parameter reference table
- Remove TPU v7x button from standalone command generator and add GKE provisioning admonition
- Document that TPU v7x, v4, and v3 do not support Flex-start (DWS) capacity model
- Add dynamic button greying-out for unsupported chip counts and Flex-start models across TPU generations
- Fix TPU accelerator-type generation for TensorCore-named generations (v3, v4)
- Add parameter reference table to TPU setup guide
- Clean up Table of Contents headings in TPU setup guide
- Upgrade shell snippet syntax highlighter to color keywords, subcommands, flags, and operators
- Switch table search filter from keyup to input event and restrict to tabbed tables

Signed-off-by: Rob Mulla <rob.mulla@gmail.com>
@RobMulla
RobMulla force-pushed the docs-interactive-components branch from 96d968c to 8eb8402 Compare July 30, 2026 19:33

@RobMulla RobMulla left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Thanks for adding these interactive UI components! I rebased the branch and pushed a few improvements:

  • TPU Setup: Combined Queued Resources and Flex-start into a single interactive generator.
  • Compute Engine API: Updated v6e and v5p to use gcloud compute instances create (keeping legacy queued-resources for older generations like v5e).
  • Generator UX: Greyed out unsupported chip sizes per generation and disabled Flex-start for older TPUs (v3, v4) and preview hardware (v7x). Also switched to a ZONE placeholder to prevent quota errors.
  • TOC & UI Polish: Cleaned up the Table of Contents sidebar headings, added a latest/nightly Docker toggle on the installation page, and refined syntax highlighting.

@RobMulla RobMulla added documentation Improvements or additions to documentation ready ONLY add when PR is ready to merge/full CI is needed labels Jul 30, 2026
@RobMulla
RobMulla self-requested a review July 31, 2026 17:04

@RobMulla RobMulla left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

LGTM

@RobMulla RobMulla left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

LGTM

@RobMulla
RobMulla enabled auto-merge (squash) July 31, 2026 17:15
@RobMulla
RobMulla merged commit df7af01 into vllm-project:main Jul 31, 2026
51 checks passed
@mtsokol
mtsokol deleted the docs-interactive-components branch August 3, 2026 08:48
mtsokol added a commit to mtsokol/tpu-inference that referenced this pull request Aug 4, 2026
The TPU v7x hardware button in tpu_setup.md needs the is_gce_only
handling that was part of this branch before the interactive components
were split into vllm-project#3297, since PROVISION_DATA in the merged interactive.js
does not include v7x.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Signed-off-by: Mateusz Sokół <mat646@gmail.com>
RobMulla pushed a commit to mtsokol/tpu-inference that referenced this pull request Aug 7, 2026
The TPU v7x hardware button in tpu_setup.md needs the is_gce_only
handling that was part of this branch before the interactive components
were split into vllm-project#3297, since PROVISION_DATA in the merged interactive.js
does not include v7x.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Signed-off-by: Mateusz Sokół <mat646@gmail.com>
helloworld1 pushed a commit that referenced this pull request Aug 17, 2026
…#3297)

Signed-off-by: Mateusz Sokół <mat646@gmail.com>
Signed-off-by: Rob Mulla <rob.mulla@gmail.com>
Co-authored-by: Rob Mulla <rob.mulla@gmail.com>
Co-authored-by: Rob Mulla <RobMulla@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

documentation Improvements or additions to documentation ready ONLY add when PR is ready to merge/full CI is needed

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants