Skip to content

docs: Collapse the agent setup prompt by default - #873

Merged
Isakdl merged 2 commits into
mainfrom
docs/collapse-agent-prompt
Oct 2, 2026
Merged

Isakdl merged 2 commits into
mainfrom
docs/collapse-agent-prompt

Conversation

@Isakdl

@Isakdl Isakdl commented Oct 2, 2026

Copy link
Copy Markdown
Contributor

Follow-up to #872. The agent setup prompt on the installation page rendered fully expanded, with long lines scrolling sideways.

Adds a CollapsibleCodeBlock component that wraps a fenced code block and:

  • Shows only the first lines until Show full prompt is clicked. The height is set with collapsedHeight (default 6rem).
  • Always wraps long lines.
  • Keeps the copy button fully visible instead of hidden until hover. Copy still copies the full prompt and reports the copy_code_block event.

Applied to the prompt on both the current and 4.0.0 installation pages. The markdown export drops the wrapper and keeps the plain code block.

🤖 Generated with Claude Code

Adds a CollapsibleCodeBlock component that wraps a fenced code block,
shows only its first lines until expanded, always wraps long lines, and
keeps the copy button fully visible.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@Isakdl
Isakdl requested review from SandPod and marcelomendoncasoares and removed request for SandPod October 2, 2026 14:56
@Isakdl
Isakdl enabled auto-merge (squash) October 2, 2026 14:56
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@Isakdl
Isakdl merged commit c6f4246 into main Oct 2, 2026
5 checks passed
@Isakdl
Isakdl deleted the docs/collapse-agent-prompt branch October 2, 2026 15:08
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.

2 participants