Skip to content

[Docs] Reduce docs nesting and improve consistency - #2668

Merged
akeimach merged 1 commit into
v4-spikefrom
alyssamaruyama/stg-2804-polish-nested-note-code-block-rendering-in-stagehand-v4-docs
Aug 10, 2026
Merged

akeimach merged 1 commit into
v4-spikefrom
alyssamaruyama/stg-2804-polish-nested-note-code-block-rendering-in-stagehand-v4-docs

Conversation

@akeimach

@akeimach akeimach commented Aug 10, 2026 •

Copy link
Copy Markdown
Contributor

why

  • Reduces docs nesting (e.g. don't have code snippet inside warning)
  • Removes . from sub-headers for consistency
  • Removes the language tabs when the snippet is language-agnostic bash

what changed

test plan


Summary by cubic

Flattens Stagehand v4 docs to reduce nested notes and unify code examples for clearer, more consistent rendering. Fixes chopped code blocks in nested notes and removes language tabs for bash snippets (STG-2804).

  • Refactors
    • Un-nested code blocks from notes/warnings to fix nested-note rendering (STG-2804).
    • Removed language tabs where snippets are language-agnostic bash.
    • Standardized subheaders by removing trailing periods; aligned titles (e.g., “User data”, “Observe use cases”).
    • Collapsed duplicate CLI/env examples across languages into a single bash block.
    • Reworked logging docs: clarified destinations, split external platforms into Sentry and DataDog with setup steps, and added examples for passing a production logger via logging.onLog.

Written for commit 10dc1b5. Summary will update on new commits.

Review in cubic

…ove language toggle for language-agnostic bash
@akeimach
akeimach requested a review from a team as a code owner August 10, 2026 02:38
@changeset-bot

changeset-bot Bot commented Aug 10, 2026

Copy link
Copy Markdown

⚠️ No Changeset found

Latest commit: 10dc1b5

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

@cubic-dev-ai cubic-dev-ai 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.

cubic analysis

No issues found across 16 files

Confidence score: 5/5

  • Automated review surfaced no issues in the provided summaries.
  • No files require special attention.

Linked issue analysis

Linked issue: STG-2804: Polish nested note code block rendering in Stagehand v4 docs

Status Acceptance criteria Notes
✅ Un-nest code blocks from notes/warnings so code snippets are not rendered chopped in nested note content The PR removes nested Tabs and moves code blocks out of note/warning nesting in multiple docs, which directly targets the chopped rendering issue.
✅ Remove language tabs where the snippet language is bash / collapse multi-language CLI examples into a single bash block The PR consistently removes per-language / wrappers and leaves a single bash block for CLI/env examples across many files.

Re-trigger cubic

@akeimach
akeimach merged commit 0fa8b25 into v4-spike Aug 10, 2026
22 checks passed
@akeimach
akeimach deleted the alyssamaruyama/stg-2804-polish-nested-note-code-block-rendering-in-stagehand-v4-docs branch August 10, 2026 02:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants