Skip to content

docs: add Quick Start section to front page - #851

Merged
max-sixty merged 13 commits into
mainfrom
quick-start
Jan 26, 2026
Merged

max-sixty merged 13 commits into
mainfrom
quick-start

Conversation

@max-sixty

@max-sixty max-sixty commented Jan 25, 2026 •

Copy link
Copy Markdown
Owner

Summary

  • Adds a "Quick Start" section to docs with realistic examples
  • Terminal prompts ($) are now non-copyable via CSS ::before pseudo-element
  • Quick Start merge example shows LLM commit generation (not fallback message)
  • Removes redundant bash code blocks before terminal output blocks
  • README examples use console code blocks with $ command prefix

Test plan

  • Verify terminal prompts appear but aren't copied
  • Verify Quick Start merge shows "Add authentication module" commit message
  • Review rendered docs at worktrunk.dev after merge

🤖 Generated with Claude Code

max-sixty and others added 13 commits January 25, 2026 13:36
Shows the basic workflow with clear directory paths at each stage:
- Create worktree with wt switch --create
- Check status with wt list
- Two merge paths: PR workflow (push + gh pr create + wt remove)
  and local merge (wt merge)
- Parallel agents example with -x flag

Co-Authored-By: Claude <[email protected]>
- Add snapshot-based output sync for quickstart examples (switch, list, merge)
- Make examples more realistic: 53 lines of auth module changes instead of 9
- Show uncommitted changes in wt list demo (WIP state, not already committed)
- Add wt step commit to PR workflow since changes are now uncommitted
- Remove redundant git push from PR workflow (gh pr create auto-pushes)
- Suppress worktree-path hint in quickstart tests for cleaner output
- Add transform_zola_to_github() for converting HTML terminal markers to plain code blocks

Co-Authored-By: Claude <[email protected]>
Convert bash code blocks to console format with command prompts and output
in a single block. Update regex pattern to optionally strip redundant bash
preamble when converting AUTO-GENERATED-HTML terminal markers.
The terminal shortcodes already include the command with $ prefix,
so separate bash blocks showing just the command were redundant.

Also fix broken anchor link in config.md.

Co-Authored-By: Claude <[email protected]>
Use CSS ::before pseudo-element to generate the $ prompt, making it
structurally non-copyable. This works with both manual text selection
and copy buttons.

Changes:
- Add .cmd::before { content: "$ "; } to generate prompt via CSS
- Remove explicit <span class="prompt">$</span> from HTML output
- Extract command from snapshot YAML header instead of parsing HTML
- Update expand_command_placeholders for command pages (list.md, etc.)

Co-Authored-By: Claude <[email protected]>
The merge example now shows staged changes being committed as part of
the wt merge workflow, reflecting a realistic user experience where
code is staged but not yet committed before merging.

Co-Authored-By: Claude <[email protected]>
The quickstart_merge test was using a shell script for the mock LLM
which doesn't work on Windows. Now uses the mock-stub system which
creates a cross-platform mock binary.

Co-Authored-By: Claude <[email protected]>
Windows paths with backslashes trigger shell metacharacter handling,
which wraps the command in `sh -c`. Bash can't parse Windows paths
like `C:\Users\...`. Converting to forward slashes with
to_slash_lossy() makes the path bash-compatible.

Co-Authored-By: Claude <[email protected]>
@max-sixty
max-sixty merged commit 69b3e47 into main Jan 26, 2026
@max-sixty
max-sixty deleted the quick-start branch January 26, 2026 06:26
max-sixty added a commit that referenced this pull request Jan 26, 2026
max-sixty pushed a commit that referenced this pull request Aug 5, 2026
Removes the Outage Recovery section from the overlay; the guidance now
lives in tend's bundled `review-runs` skill, proposed in
[max-sixty/tend#851](max-sixty/tend#851).

**Why upstream.** Nothing in the section was worktrunk-specific: the
`tend-outage` issue shape, the `pull_request_target`-only trigger that
makes a dead `tend-review` unrecoverable, the session-log message that
names the quota limit, and the scheduled-vs-event-triggered split are
all properties of tend itself. Every consumer running `tend-review`
loses reviews the same way. That was already the disposition in
[max-sixty/tend#816](max-sixty/tend#816) (Gap
2), which the upstream PR closes out.

**What changed from the original PR.** This branch first carried a
three-line correction naming the second subscription limit. That
correction is folded into the upstream section instead, so the net diff
here is the removal.

**Sequencing.** Merging this before #851 lands leaves a window with no
drain guidance in either place. The window costs one daily sweep at
most, and the outage issue accumulates rather than losing data, so it's
a maintainer call whether to hold this until upstream merges.

---------

Co-authored-by: worktrunk-bot <[email protected]>
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