Skip to content

docs: add per-example READMEs and slim the examples showcase#943

Merged
scarmuega merged 1 commit into
mainfrom
docs/example-readmes
Jun 14, 2026
Merged

docs: add per-example READMEs and slim the examples showcase#943
scarmuega merged 1 commit into
mainfrom
docs/example-readmes

Conversation

@scarmuega

@scarmuega scarmuega commented Jun 14, 2026

Copy link
Copy Markdown
Member

What

Every runnable example under examples/ now ships a brief README.md covering its scope, pipeline (as a mermaid flowchart), prerequisites, and run command.

  • 24 new READMEsassert, aws_lambda, aws_s3, aws_sqs, dolos_source, elasticsearch, file_cursor, file_rotate, gcp_cloudfunction, gcp_pubsub, hydra, into_json, kafka, metrics, mithril, n2c_source, parse_cbor, redis, select, sqlite, stdout, webhook_basics, zeromq, rabbitmq.
  • 4 existing READMEs reshaped to the same template, preserving their unique steps — postgresql (psql/init.sql), redis_cursor (Demeter tunnel), metadata_regex_filter (regex patterns), wasm_basic (tinygo build).
  • Left untouched: examples/lib/ (its own tailored README) and examples/_deprecated/*.

Each pipeline diagram was verified against the example's actual daemon.toml, and cargo feature flags against Cargo.toml. Run commands use the installed-binary form, plus cargo run --features <feat> where a feature flag is required.

Showcase doc cleanup

With the per-example READMEs now serving as the detail pages behind the showcase links, docs/v2/examples/index.mdx:

  • collapses the duplicated "Companion files & setup" section to a one-line pointer to each example's README;
  • drops the "Setup" column from all five tables, leaving a clean Example | What it shows catalog.

The "Running an example" guidance, the inline TOML recipes, and the "As a library" section are kept.

🤖 Generated with Claude Code

Summary by CodeRabbit

Documentation

  • Added comprehensive README files for all example projects, each documenting pipeline architecture, prerequisites, and run instructions
  • Reorganized main examples index page with simplified table structure, directing users to individual example documentation
  • Standardized example documentation format across all pipelines using consistent sections, Mermaid diagrams, and clear setup guidance

Add a brief README.md to each runnable example under examples/ describing
its scope, pipeline (as a mermaid flowchart), prerequisites, and run command.
24 new READMEs plus 4 existing ones (postgresql, redis_cursor,
metadata_regex_filter, wasm_basic) reshaped to the same template.

With per-example READMEs now serving as the detail pages behind the showcase,
drop the now-duplicated "Companion files & setup" section and the "Setup"
column from docs/v2/examples/index.mdx, leaving a clean Example | What it shows
catalog plus the inline recipes.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@scarmuega scarmuega requested a review from paulobressan as a code owner June 14, 2026 15:42
@coderabbitai

coderabbitai Bot commented Jun 14, 2026

Copy link
Copy Markdown

Review Change Stack

Caution

Review failed

The pull request is closed.

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Pro

Run ID: e6afee02-d01d-4e9c-9b10-78ca0965914e

📥 Commits

Reviewing files that changed from the base of the PR and between fb02bbd and 0e7bc41.

📒 Files selected for processing (29)
  • docs/v2/examples/index.mdx
  • examples/assert/README.md
  • examples/aws_lambda/README.md
  • examples/aws_s3/README.md
  • examples/aws_sqs/README.md
  • examples/dolos_source/README.md
  • examples/elasticsearch/README.md
  • examples/file_cursor/README.md
  • examples/file_rotate/README.md
  • examples/gcp_cloudfunction/README.md
  • examples/gcp_pubsub/README.md
  • examples/hydra/README.md
  • examples/into_json/README.md
  • examples/kafka/README.md
  • examples/metadata_regex_filter/README.md
  • examples/metrics/README.md
  • examples/mithril/README.md
  • examples/n2c_source/README.md
  • examples/parse_cbor/README.md
  • examples/postgresql/README.md
  • examples/rabbitmq/README.md
  • examples/redis/README.md
  • examples/redis_cursor/README.md
  • examples/select/README.md
  • examples/sqlite/README.md
  • examples/stdout/README.md
  • examples/wasm_basic/README.md
  • examples/webhook_basics/README.md
  • examples/zeromq/README.md

📝 Walkthrough

Walkthrough

Adds or rewrites README.md files for all oura v2 example directories (26 examples), each providing a pipeline overview with Mermaid diagrams, prerequisites, and run instructions. The docs/v2/examples/index.mdx index page is simplified to two-column tables and a README-first setup introduction, removing the prior Setup column and inline prerequisite notes.

Changes

Examples Documentation Overhaul

Layer / File(s) Summary
Examples index simplification
docs/v2/examples/index.mdx
Adds a "Companion files & setup" introduction paragraph and replaces all five category tables (Sources, Filters & pipelines, Sinks, Cursors, Observability) with simplified two-column Example/What it shows tables, removing the Setup column and inline notes.
Source example READMEs
examples/n2c_source/README.md, examples/dolos_source/README.md, examples/mithril/README.md, examples/hydra/README.md
New or rewritten READMEs for source examples covering N2C Unix-socket (with docker-compose and socket_path note), U5C/gRPC (with gRPC metadata config for authenticated vs. local Dolos), Mithril snapshot bootstrap with Breadcrumbs intersect, and Hydra WebSocket streaming.
Filter and pipeline example READMEs
examples/stdout/README.md, examples/parse_cbor/README.md, examples/into_json/README.md, examples/select/README.md, examples/metadata_regex_filter/README.md, examples/file_rotate/README.md, examples/wasm_basic/README.md
New or rewritten READMEs for filter/pipeline examples: stdout (LegacyV1 event model), parse_cbor (SplitBlock → ParseCbor → FileRotate), into_json (adds IntoJson step), select (address selection with skip_uncertain), metadata_regex_filter (rewritten with Select behavior and concrete regex patterns), file_rotate (JSONL rotation config), and wasm_basic (rewritten as WasmPlugin walkthrough with tinygo build).
Sink example READMEs
examples/assert/README.md, examples/aws_lambda/README.md, examples/aws_s3/README.md, examples/aws_sqs/README.md, examples/gcp_cloudfunction/README.md, examples/gcp_pubsub/README.md, examples/elasticsearch/README.md, examples/kafka/README.md, examples/rabbitmq/README.md, examples/redis/README.md, examples/webhook_basics/README.md, examples/zeromq/README.md, examples/postgresql/README.md, examples/sqlite/README.md, examples/metrics/README.md
New or rewritten READMEs for all sink examples — each documents pipeline flow, required Cargo feature flags, companion docker-compose or init-SQL files, and run instructions.
Cursor example READMEs
examples/file_cursor/README.md, examples/redis_cursor/README.md
New or rewritten READMEs for cursor examples: file_cursor describes my_cursor.json persistence and the resume feedback loop; redis_cursor replaces prior prose (including a typo fix) with a structured mermaid diagram, per-component descriptions, and expanded redis-cli GET key inspection commands.

Estimated code review effort

🎯 2 (Simple) | ⏱️ ~10 minutes

Suggested reviewers

  • paulobressan

Poem

🐇 Hop through the docs, each example's a treat,
With pipelines and diagrams, so tidy and neat!
From Kafka to Redis, from WASM to S3,
Each README now blooms like a clover for me.
No more lost setup steps — just follow the flow,
A rabbit's dream garden of knowledge to grow! 🌿

✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch docs/example-readmes

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

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