Skip to content

docs: add repo README and docs/ guides#5

Merged
ThatRendle merged 1 commit into
mainfrom
docs/readme-and-guides
May 28, 2026
Merged

docs: add repo README and docs/ guides#5
ThatRendle merged 1 commit into
mainfrom
docs/readme-and-guides

Conversation

@ThatRendle
Copy link
Copy Markdown
Contributor

Summary

Adds user-facing documentation for the library — there was none in-tree before (only CLAUDE.md).

  • README.md (new, repo root) — overview, install, quickstart, the mental model, a docs index, samples, and build instructions.
  • docs/ (new) — focused guides plus a full API reference:
    • concepts.md — inline rendering, the commit horizon, the fixed region, the single-writer loop, mechanics-vs-semantics
    • getting-started.md — install, first program, lifecycle, terminal requirements
    • styled-text.mdSegment/Line/Style/Color/Format/LineBuilder
    • scrollback.mdAppend, live blocks, one-way collapsibles
    • fixed-region.md — input editor, status bar, autocomplete
    • dialogs.mdSelectAsync/MultiSelectAsync/ChoiceAsync/InputAsync, wizards, AllowBack
    • events.md — the event channel, key encoding caveats, Ctrl+C/signals, paste, resize
    • testing.md — faking ITerminal, HeadlessTerminal, VirtualClock, frame snapshots
    • architecture.md — the binding design decisions + the restore guarantee, distilled from the OpenSpec design doc
    • api-reference.md — every public type with exact signatures
  • src/Dcli/README.md (the NuGet package README) — corrected the stale "Dcli.Testing ships next release" note (it exists now) and added a docs link.

Verification

  • Every major code sample was compiled against Dcli and Dcli.Testing in a scratch project → builds clean. This caught a real trap: there is no string-items + string-title dialog-constructor overload, so those examples use Line.FromText(...) items.
  • No source code changed; build/test gates are unaffected.

🤖 Generated with Claude Code

Add a repo-root README and a docs/ folder covering the library end to end:
concepts, getting started, styled text, scrollback, the fixed region,
dialogs, input & events, testing, architecture, and a full API reference.

Update the NuGet-package README (src/Dcli/README.md): the Dcli.Testing
harness now exists, and link out to the docs.

All code samples were compiled against Dcli and Dcli.Testing to confirm
they build against the real public API.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
@ThatRendle ThatRendle merged commit 4609175 into main May 28, 2026
3 checks passed
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