Skip to content

docs: generate antora partials from component specs - #4863

Merged
JakeSCahill merged 20 commits into
mainfrom
docs/generate-antora-partials
Oct 8, 2026
Merged

JakeSCahill merged 20 commits into
mainfrom
docs/generate-antora-partials

Conversation

@JakeSCahill

@JakeSCahill JakeSCahill commented Sep 25, 2026 •

Copy link
Copy Markdown
Contributor

Why

The connector reference on docs.redpanda.com isn't built from the specs in this repo today. The docs team runs its own generator in rp-connect-docs, reading rpk connect list --format json-full, and then patches the output with an overrides file of about 1,100 rewritten descriptions. The pages this repo generates under docs/ aren't published at all. So there are two descriptions for every field and nothing that keeps them in step. When you change a field and update its description, the published page can keep showing an old override. When the docs team fixes a description, --help and the JSON schema never see it.

This PR makes the specs the only source for that content:

  1. task docs now writes the files the published pages actually include: field reference, examples, metadata, and descriptions, plus the Common and Advanced config snippets and the Bloblang reference. Given the same component data, the output matches what the docs pipeline produces today byte for byte, with these deliberate exceptions:
    • New banner text pointing at this repo.
    • Deprecated Bloblang functions say "function" instead of "method".
    • The cloud-only a2a_message processor is included.
    • Components whose config is a single value, a list, or an empty object (resource, fallback, drop, and so on) get config snippets. Their pages used hand-written copies, and one of them listed fields that don't exist.
    • Every component gets every partial (fields, examples, metadata, description, availability), as an empty stub when there's no content, so a page include keeps resolving if a section is removed upstream.
    • An empty enum option renders as "" instead of two literal backticks.
    • A field's "Requires version" line appears only when the field is newer than its component or parent field, so shared constructors can't show versions older than the component.
    • Bloblang methods use their category's description, as the old benthos docs did. The three methods whose categories describe them differently (contains, length, slice) get one partial per category.
    • String examples and defaults in YAML are quoted where YAML needs it (interval: "@every 1s"), and Common snippets no longer list advanced nested fields. Both were bugs in the current pipeline, and a test now parses every generated snippet and example.
    • Code spans that contain __, **, or ## render literally, matching docs-extensions-and-macros PR 344.
    • Two http_client output fields, extract_headers and propagate_response, are no longer hidden on Redpanda Cloud. The docs team decided they apply there now that sync_response is Cloud-supported.
  2. The generated docs aren't committed. docs/modules is gitignored, and the release workflow runs the generator and attaches the output to each GitHub release as redpanda-connect-docs.tar.gz. CI still runs CGO_ENABLED=1 TAGS=x_benthos_extra task docs on every PR, which generates everything and lints every snippet, so a spec that breaks the docs fails the PR.
  3. The docs site downloads that asset for the latest release, so it publishes exactly the text that shipped in that release, and nothing from unreleased code on main.

Once the override file is retired, there is nowhere else to edit this text. Follow-up PRs move the reviewed wording from the overrides into the specs, merge copies of the same description into shared helpers, and add a test that fails if someone adds a new copy, so editing one copy without the others can't happen either.

What changes

  • cmd/tools/docs_gen is rewritten to emit Antora partials instead of full pages. The page templates are removed.
  • The old generated pages under docs/modules are deleted, and docs/antora.yml goes with them: this repo is no longer an Antora content source. The hand-written pages live in rp-connect-docs, and docs/README.md explains the split. One page here was hand-written and never published (outputs/bigquery_cdc_migration.adoc). It moves to rp-connect-docs.
  • .github/workflows/release.yml gets a docs-asset job that attaches the generated docs to the release.

Nothing changes on docs.redpanda.com until rp-connect-docs switches over. That switch waits for a Connect release that contains this PR and the follow-up text PRs: on its own, this PR would publish the older upstream descriptions that the overrides currently replace on about 240 pages.

Reviewing

The real change is 44 files. The other 327 are deletions of the old generated pages. Review cmd/tools/docs_gen/, docs/README.md, .gitignore, CLAUDE.md, the docs-asset job in .github/workflows/release.yml, the CI message in .github/workflows/test.yml, and the Claude plugin links that now point at docs.redpanda.com. yaml.go reproduces the YAML formatting of the current docs so existing snippets don't reflow, and yaml_test.go pins it.

Tested with go test ./cmd/tools/docs_gen/, a full task docs run leaving no tracked changes, and full Antora builds of the docs site compared page by page against today's output.

Also in this PR (from a full review of the generated docs)

  • Platform availability comes from the binaries:
    • The docs task compares the cgo build with an untagged build to find cgo-only components (zmq4, ffi, tigerbeetle_cdc).
    • partials/availability/<type>/<name>.adoc renders the cgo-only note, which names the real release archive and build command, plus Cloud GPU notes.
    • partials/platforms/catalog.json records status, version, categories, Cloud, Cloud GPU, cgo-only, and support level per component, for the catalog and the cloud-docs page check.
  • Status and deprecation:
    • The description partial sets :status:, starts with a deprecation warning or a beta or experimental caution where the spec says so, and has a footnotes region.
  • Bloblang:
    • The reference shows parameter defaults and variadic parameters, labels beta and experimental entries, and leaves hidden ones out.
  • Valid config snippets:
    • Snippets use the singular root key (input:, not inputs:) and render lists and maps correctly.
    • A structural lint test checks them with the connect linter, and the Taskfile lint glob now matches the files.
  • Top-level config:
    • partials/fields/config/<name>.adoc and config snippets cover http, logger, redpanda, error_handling, pipeline, and tests. The redpanda and logger pages hand-kept wrong defaults.
  • Summary check:
    • A test requires every Summary to be one line of plain text. Known exceptions are listed, and the test fails when one is fixed, so the list only shrinks.

Copilot AI 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.

Copilot review overview

🟡 Changes recommended

Address the unresolved generator escaping, nested-field filtering, and deleted-file CI detection issues.

Get a fresh assessment by requesting another Copilot review.

Review effort: Lite
Findings: 3 Medium severity

Open (3)
What changed in this PR

This PR rewrites documentation generation to emit Antora partials and configuration examples directly from component specifications.

Changes:

  • Generates reference partials, metadata, Bloblang documentation, and YAML examples.
  • Updates Antora metadata and documentation ownership guidance.
  • Regenerates component documentation and examples.
File Status
docs/​modules/​components/​partials/​metadata/​scanners/​tar.adoc Reviewed
docs/​modules/​components/​partials/​metadata/​scanners/​csv.adoc Reviewed
docs/​modules/​components/​partials/​metadata/​processors/​unarchive.adoc Reviewed
docs/​modules/​components/​partials/​metadata/​processors/​schema_registry_decode.adoc Reviewed
docs/​modules/​components/​partials/​metadata/​processors/​command.adoc Reviewed
docs/​modules/​components/​partials/​metadata/​processors/​branch.adoc Reviewed
docs/​modules/​components/​partials/​metadata/​processors/​azure_cosmosdb.adoc Reviewed
docs/​modules/​components/​partials/​metadata/​outputs/​gcp_cloud_storage.adoc Reviewed
docs/​modules/​components/​partials/​metadata/​outputs/​fallback.adoc Reviewed
docs/​modules/​components/​partials/​metadata/​outputs/​aws_s3.adoc Reviewed
docs/​modules/​components/​partials/​metadata/​outputs/​amqp_1.adoc Reviewed
docs/​modules/​components/​partials/​metadata/​inputs/​sftp.adoc Reviewed
docs/​modules/​components/​partials/​metadata/​inputs/​schema_registry.adoc Reviewed
docs/​modules/​components/​partials/​metadata/​inputs/​salesforce.adoc Reviewed
docs/​modules/​components/​partials/​metadata/​inputs/​salesforce_graphql.adoc Reviewed
docs/​modules/​components/​partials/​metadata/​inputs/​redis_pubsub.adoc Reviewed
docs/​modules/​components/​partials/​metadata/​inputs/​read_until.adoc Reviewed
docs/​modules/​components/​partials/​metadata/​inputs/​nsq.adoc Reviewed
docs/​modules/​components/​partials/​metadata/​inputs/​nats.adoc Reviewed
docs/​modules/​components/​partials/​metadata/​inputs/​nats_stream.adoc Reviewed
docs/​modules/​components/​partials/​metadata/​inputs/​nats_kv.adoc Reviewed
docs/​modules/​components/​partials/​metadata/​inputs/​mqtt.adoc Reviewed
docs/​modules/​components/​partials/​metadata/​inputs/​hdfs.adoc Reviewed
docs/​modules/​components/​partials/​metadata/​inputs/​file.adoc Reviewed
docs/​modules/​components/​partials/​metadata/​inputs/​azure_table_storage.adoc Reviewed
docs/​modules/​components/​partials/​metadata/​inputs/​azure_cosmosdb.adoc Reviewed
docs/​modules/​components/​partials/​fields/​scanners/​switch.adoc Reviewed
docs/​modules/​components/​partials/​fields/​scanners/​skip_bom.adoc Reviewed
docs/​modules/​components/​partials/​fields/​scanners/​chunker.adoc Reviewed
docs/​modules/​components/​partials/​fields/​processors/​split.adoc Reviewed
docs/​modules/​components/​partials/​fields/​processors/​sleep.adoc Reviewed
docs/​modules/​components/​partials/​fields/​processors/​select_parts.adoc Reviewed
docs/​modules/​components/​partials/​fields/​processors/​rate_limit.adoc Reviewed
docs/​modules/​components/​partials/​fields/​processors/​parallel.adoc Reviewed
docs/​modules/​components/​partials/​fields/​processors/​json_schema.adoc Reviewed
docs/​modules/​components/​partials/​fields/​processors/​jmespath.adoc Reviewed
docs/​modules/​components/​partials/​fields/​processors/​google_drive_list_labels.adoc Reviewed
docs/​modules/​components/​partials/​fields/​processors/​decompress.adoc Reviewed
docs/​modules/​components/​partials/​fields/​outputs/​discord.adoc Reviewed
docs/​modules/​components/​partials/​fields/​metrics/​logger.adoc Reviewed
docs/​modules/​components/​partials/​fields/​inputs/​beanstalkd.adoc Reviewed
docs/​modules/​components/​partials/​fields/​caches/​file.adoc Reviewed
docs/​modules/​components/​partials/​examples/​inputs/​schema_registry.adoc Reviewed
docs/​modules/​components/​partials/​examples/​inputs/​file.adoc Reviewed
docs/​modules/​components/​partials/​bloblang-methods/​parse_yaml.adoc Reviewed
docs/​modules/​components/​partials/​bloblang-methods/​not.adoc Reviewed
docs/​modules/​components/​partials/​bloblang-methods/​infer_schema.adoc Reviewed
docs/​modules/​components/​partials/​bloblang-methods/​format_timestamp_unix.adoc Reviewed
docs/​modules/​components/​partials/​bloblang-methods/​format_timestamp_unix_milli.adoc Reviewed
docs/​modules/​components/​partials/​bloblang-methods/​format_timestamp_unix_micro.adoc Reviewed
docs/​modules/​components/​partials/​bloblang-methods/​filepath_join.adoc Reviewed
docs/​modules/​components/​partials/​bloblang-methods/​bytes.adoc Reviewed
docs/​modules/​components/​partials/​bloblang-methods/​array.adoc Reviewed
docs/​modules/​components/​partials/​bloblang-functions/​var.adoc Reviewed
docs/​modules/​components/​partials/​bloblang-functions/​nothing.adoc Reviewed
docs/​modules/​components/​partials/​bloblang-functions/​hostname.adoc Reviewed
docs/​modules/​components/​examples/​common/​tracers/​open_telemetry_collector.yaml Reviewed
docs/​modules/​components/​examples/​common/​tracers/​jaeger.yaml Reviewed
docs/​modules/​components/​examples/​common/​tracers/​gcp_cloudtrace.yaml Reviewed
docs/​modules/​components/​examples/​common/​scanners/​switch.yaml Reviewed
docs/​modules/​components/​examples/​common/​scanners/​skip_bom.yaml Reviewed
docs/​modules/​components/​examples/​common/​scanners/​re_match.yaml Reviewed
docs/​modules/​components/​examples/​common/​scanners/​lines.yaml Reviewed
docs/​modules/​components/​examples/​common/​scanners/​decompress.yaml Reviewed
docs/​modules/​components/​examples/​common/​scanners/​csv.yaml Reviewed
docs/​modules/​components/​examples/​common/​scanners/​chunker.yaml Reviewed
docs/​modules/​components/​examples/​common/​scanners/​avro.yaml Reviewed
docs/​modules/​components/​examples/​common/​rate-limits/​redis.yaml Reviewed
docs/​modules/​components/​examples/​common/​rate-limits/​local.yaml Reviewed
docs/​modules/​components/​examples/​common/​processors/​xml.yaml Reviewed
docs/​modules/​components/​examples/​common/​processors/​workflow.yaml Reviewed
docs/​modules/​components/​examples/​common/​processors/​while.yaml Reviewed
docs/​modules/​components/​examples/​common/​processors/​wasm.yaml Reviewed
docs/​modules/​components/​examples/​common/​processors/​unarchive.yaml Reviewed
docs/​modules/​components/​examples/​common/​processors/​try_catch.yaml Reviewed
docs/​modules/​components/​examples/​common/​processors/​text_chunker.yaml Reviewed
docs/​modules/​components/​examples/​common/​processors/​switch.yaml Reviewed
docs/​modules/​components/​examples/​common/​processors/​subprocess.yaml Reviewed
docs/​modules/​components/​examples/​common/​processors/​string_split.yaml Reviewed
docs/​modules/​components/​examples/​common/​processors/​sql.yaml Reviewed
docs/​modules/​components/​examples/​common/​processors/​sql_select.yaml Reviewed
docs/​modules/​components/​examples/​common/​processors/​sql_raw.yaml Reviewed
docs/​modules/​components/​examples/​common/​processors/​sql_insert.yaml Reviewed
docs/​modules/​components/​examples/​common/​processors/​split.yaml Reviewed
docs/​modules/​components/​examples/​common/​processors/​sleep.yaml Reviewed
docs/​modules/​components/​examples/​common/​processors/​slack_thread.yaml Reviewed
docs/​modules/​components/​examples/​common/​processors/​sentry_capture.yaml Reviewed
docs/​modules/​components/​examples/​common/​processors/​select_parts.yaml Reviewed
docs/​modules/​components/​examples/​common/​processors/​schema_registry_encode.yaml Reviewed
docs/​modules/​components/​examples/​common/​processors/​retry.yaml Reviewed
docs/​modules/​components/​examples/​common/​processors/​redpanda_data_transform.yaml Reviewed
docs/​modules/​components/​examples/​common/​processors/​redis.yaml Reviewed
docs/​modules/​components/​examples/​common/​processors/​redis_script.yaml Reviewed
docs/​modules/​components/​examples/​common/​processors/​rate_limit.yaml Reviewed
docs/​modules/​components/​examples/​common/​processors/​qdrant.yaml Reviewed
docs/​modules/​components/​examples/​common/​processors/​protobuf.yaml Reviewed
docs/​modules/​components/​examples/​common/​processors/​parse_log.yaml Reviewed
docs/​modules/​components/​examples/​common/​processors/​parquet.yaml Reviewed
docs/​modules/​components/​examples/​common/​processors/​parquet_encode.yaml Reviewed
docs/​modules/​components/​examples/​common/​processors/​parquet_decode.yaml Reviewed
docs/​modules/​components/​examples/​common/​processors/​parallel.yaml Reviewed
docs/​modules/​components/​examples/​common/​processors/​openai_translation.yaml Reviewed
docs/​modules/​components/​examples/​common/​processors/​openai_transcription.yaml Reviewed
docs/​modules/​components/​examples/​common/​processors/​openai_speech.yaml Reviewed
docs/​modules/​components/​examples/​common/​processors/​openai_image_generation.yaml Reviewed
docs/​modules/​components/​examples/​common/​processors/​openai_embeddings.yaml Reviewed
docs/​modules/​components/​examples/​common/​processors/​ollama_moderation.yaml Reviewed
docs/​modules/​components/​examples/​common/​processors/​ollama_embeddings.yaml Reviewed
docs/​modules/​components/​examples/​common/​processors/​nats_request_reply.yaml Reviewed
docs/​modules/​components/​examples/​common/​processors/​nats_kv.yaml Reviewed
docs/​modules/​components/​examples/​common/​processors/​msgpack.yaml Reviewed
docs/​modules/​components/​examples/​common/​processors/​mongodb.yaml Reviewed
docs/​modules/​components/​examples/​common/​processors/​metric.yaml Reviewed
docs/​modules/​components/​examples/​common/​processors/​log.yaml Reviewed
docs/​modules/​components/​examples/​common/​processors/​json_schema.yaml Reviewed
docs/​modules/​components/​examples/​common/​processors/​jq.yaml Reviewed
docs/​modules/​components/​examples/​common/​processors/​jmespath.yaml Reviewed
docs/​modules/​components/​examples/​common/​processors/​jira.yaml Reviewed
docs/​modules/​components/​examples/​common/​processors/​javascript.yaml Reviewed
docs/​modules/​components/​examples/​common/​processors/​insert_part.yaml Reviewed
docs/​modules/​components/​examples/​common/​processors/​http.yaml Reviewed
docs/​modules/​components/​examples/​common/​processors/​group_by.yaml Reviewed
docs/​modules/​components/​examples/​common/​processors/​group_by_value.yaml Reviewed
docs/​modules/​components/​examples/​common/​processors/​grok.yaml Reviewed
docs/​modules/​components/​examples/​common/​processors/​google_drive_search.yaml Reviewed
docs/​modules/​components/​examples/​common/​processors/​google_drive_list_labels.yaml Reviewed
docs/​modules/​components/​examples/​common/​processors/​google_drive_download.yaml Reviewed
docs/​modules/​components/​examples/​common/​processors/​gcp_vertex_ai_embeddings.yaml Reviewed
docs/​modules/​components/​examples/​common/​processors/​gcp_vertex_ai_chat.yaml Reviewed
docs/​modules/​components/​examples/​common/​processors/​gcp_bigquery_select.yaml Reviewed
docs/​modules/​components/​examples/​common/​processors/​ffi.yaml Reviewed
docs/​modules/​components/​examples/​common/​processors/​dedupe.yaml Reviewed
docs/​modules/​components/​examples/​common/​processors/​decompress.yaml Reviewed
docs/​modules/​components/​examples/​common/​processors/​couchbase.yaml Reviewed
docs/​modules/​components/​examples/​common/​processors/​compress.yaml Reviewed
docs/​modules/​components/​examples/​common/​processors/​command.yaml Reviewed
docs/​modules/​components/​examples/​common/​processors/​cohere_rerank.yaml Reviewed
docs/​modules/​components/​examples/​common/​processors/​cohere_embeddings.yaml Reviewed
docs/​modules/​components/​examples/​common/​processors/​cohere_chat.yaml Reviewed
docs/​modules/​components/​examples/​common/​processors/​cached.yaml Reviewed
docs/​modules/​components/​examples/​common/​processors/​cache.yaml Reviewed
docs/​modules/​components/​examples/​common/​processors/​branch.yaml Reviewed
docs/​modules/​components/​examples/​common/​processors/​bounds_check.yaml Reviewed
docs/​modules/​components/​examples/​common/​processors/​benchmark.yaml Reviewed
docs/​modules/​components/​examples/​common/​processors/​azure_cosmosdb.yaml Reviewed
docs/​modules/​components/​examples/​common/​processors/​aws_lambda.yaml Reviewed
docs/​modules/​components/​examples/​common/​processors/​aws_dynamodb_partiql.yaml Reviewed
docs/​modules/​components/​examples/​common/​processors/​aws_bedrock_embeddings.yaml Reviewed
docs/​modules/​components/​examples/​common/​processors/​aws_bedrock_chat.yaml Reviewed
docs/​modules/​components/​examples/​common/​processors/​awk.yaml Reviewed
docs/​modules/​components/​examples/​common/​processors/​avro.yaml Reviewed
docs/​modules/​components/​examples/​common/​processors/​archive.yaml Reviewed
docs/​modules/​components/​examples/​common/​processors/​a2a_message.yaml Reviewed
docs/​modules/​components/​examples/​common/​outputs/​zmq4.yaml Reviewed
docs/​modules/​components/​examples/​common/​outputs/​websocket.yaml Reviewed
docs/​modules/​components/​examples/​common/​outputs/​switch.yaml Reviewed
docs/​modules/​components/​examples/​common/​outputs/​subprocess.yaml Reviewed
docs/​modules/​components/​examples/​common/​outputs/​stdout.yaml Reviewed
docs/​modules/​components/​examples/​common/​outputs/​sql.yaml Reviewed
docs/​modules/​components/​examples/​common/​outputs/​sql_raw.yaml Reviewed
docs/​modules/​components/​examples/​common/​outputs/​sql_insert.yaml Reviewed
docs/​modules/​components/​examples/​common/​outputs/​socket.yaml Reviewed
docs/​modules/​components/​examples/​common/​outputs/​slack_reaction.yaml Reviewed
docs/​modules/​components/​examples/​common/​outputs/​slack_post.yaml Reviewed
docs/​modules/​components/​examples/​common/​outputs/​sftp.yaml Reviewed
docs/​modules/​components/​examples/​common/​outputs/​schema_registry.yaml Reviewed
docs/​modules/​components/​examples/​common/​outputs/​salesforce_sink.yaml Reviewed
docs/​modules/​components/​examples/​common/​outputs/​retry.yaml Reviewed
docs/​modules/​components/​examples/​common/​outputs/​redpanda.yaml Reviewed
docs/​modules/​components/​examples/​common/​outputs/​redpanda_common.yaml Reviewed
docs/​modules/​components/​examples/​common/​outputs/​redis_streams.yaml Reviewed
docs/​modules/​components/​examples/​common/​outputs/​redis_pubsub.yaml Reviewed
docs/​modules/​components/​examples/​common/​outputs/​redis_list.yaml Reviewed
docs/​modules/​components/​examples/​common/​outputs/​redis_hash.yaml Reviewed
docs/​modules/​components/​examples/​common/​outputs/​qdrant.yaml Reviewed
docs/​modules/​components/​examples/​common/​outputs/​pusher.yaml Reviewed
docs/​modules/​components/​examples/​common/​outputs/​pulsar.yaml Reviewed
docs/​modules/​components/​examples/​common/​outputs/​pinecone.yaml Reviewed
docs/​modules/​components/​examples/​common/​outputs/​otlp_http.yaml Reviewed
docs/​modules/​components/​examples/​common/​outputs/​otlp_grpc.yaml Reviewed
docs/​modules/​components/​examples/​common/​outputs/​opensearch.yaml Reviewed
docs/​modules/​components/​examples/​common/​outputs/​nsq.yaml Reviewed
docs/​modules/​components/​examples/​common/​outputs/​nats.yaml Reviewed
docs/​modules/​components/​examples/​common/​outputs/​nats_stream.yaml Reviewed
docs/​modules/​components/​examples/​common/​outputs/​nats_kv.yaml Reviewed
docs/​modules/​components/​examples/​common/​outputs/​nats_jetstream.yaml Reviewed
docs/​modules/​components/​examples/​common/​outputs/​nanomsg.yaml Reviewed
docs/​modules/​components/​examples/​common/​outputs/​mqtt.yaml Reviewed
docs/​modules/​components/​examples/​common/​outputs/​kafka_franz.yaml Reviewed
docs/​modules/​components/​examples/​common/​outputs/​http_server.yaml Reviewed
docs/​modules/​components/​examples/​common/​outputs/​http_client.yaml Reviewed
docs/​modules/​components/​examples/​common/​outputs/​hdfs.yaml Reviewed
docs/​modules/​components/​examples/​common/​outputs/​gcp_cloud_storage.yaml Reviewed
docs/​modules/​components/​examples/​common/​outputs/​file.yaml Reviewed
docs/​modules/​components/​examples/​common/​outputs/​elasticsearch_v9.yaml Reviewed
docs/​modules/​components/​examples/​common/​outputs/​elasticsearch_v8.yaml Reviewed
docs/​modules/​components/​examples/​common/​outputs/​dynamic.yaml Reviewed
docs/​modules/​components/​examples/​common/​outputs/​drop_on.yaml Reviewed
docs/​modules/​components/​examples/​common/​outputs/​discord.yaml Reviewed
docs/​modules/​components/​examples/​common/​outputs/​cypher.yaml Reviewed
docs/​modules/​components/​examples/​common/​outputs/​couchbase.yaml Reviewed
docs/​modules/​components/​examples/​common/​outputs/​cassandra.yaml Reviewed
docs/​modules/​components/​examples/​common/​outputs/​cache.yaml Reviewed
docs/​modules/​components/​examples/​common/​outputs/​broker.yaml Reviewed
docs/​modules/​components/​examples/​common/​outputs/​beanstalkd.yaml Reviewed
docs/​modules/​components/​examples/​common/​outputs/​azure_table_storage.yaml Reviewed
docs/​modules/​components/​examples/​common/​outputs/​azure_queue_storage.yaml Reviewed
docs/​modules/​components/​examples/​common/​outputs/​azure_data_lake_gen2.yaml Reviewed
docs/​modules/​components/​examples/​common/​outputs/​azure_blob_storage.yaml Reviewed
docs/​modules/​components/​examples/​common/​outputs/​aws_sqs.yaml Reviewed
docs/​modules/​components/​examples/​common/​outputs/​aws_sns.yaml Reviewed
docs/​modules/​components/​examples/​common/​outputs/​aws_s3.yaml Reviewed
docs/​modules/​components/​examples/​common/​outputs/​aws_kinesis.yaml Reviewed
docs/​modules/​components/​examples/​common/​outputs/​aws_kinesis_firehose.yaml Reviewed
docs/​modules/​components/​examples/​common/​outputs/​aws_dynamodb.yaml Reviewed
docs/​modules/​components/​examples/​common/​outputs/​arc.yaml Reviewed
docs/​modules/​components/​examples/​common/​outputs/​amqp_1.yaml Reviewed
docs/​modules/​components/​examples/​common/​outputs/​amqp_0_9.yaml Reviewed
docs/​modules/​components/​examples/​common/​metrics/​statsd.yaml Reviewed
docs/​modules/​components/​examples/​common/​metrics/​prometheus.yaml Reviewed
docs/​modules/​components/​examples/​common/​metrics/​open_telemetry_collector.yaml Reviewed
docs/​modules/​components/​examples/​common/​metrics/​logger.yaml Reviewed
docs/​modules/​components/​examples/​common/​metrics/​influxdb.yaml Reviewed
docs/​modules/​components/​examples/​common/​metrics/​aws_cloudwatch.yaml Reviewed
docs/​modules/​components/​examples/​common/​inputs/​zmq4.yaml Reviewed
docs/​modules/​components/​examples/​common/​inputs/​websocket.yaml Reviewed
docs/​modules/​components/​examples/​common/​inputs/​twitter_search.yaml Reviewed
docs/​modules/​components/​examples/​common/​inputs/​timeplus.yaml Reviewed
docs/​modules/​components/​examples/​common/​inputs/​tigerbeetle_cdc.yaml Reviewed
docs/​modules/​components/​examples/​common/​inputs/​subprocess.yaml Reviewed
docs/​modules/​components/​examples/​common/​inputs/​stdin.yaml Reviewed
docs/​modules/​components/​examples/​common/​inputs/​sql_select.yaml Reviewed
docs/​modules/​components/​examples/​common/​inputs/​sql_raw.yaml Reviewed
docs/​modules/​components/​examples/​common/​inputs/​splunk.yaml Reviewed
docs/​modules/​components/​examples/​common/​inputs/​spicedb_watch.yaml Reviewed
docs/​modules/​components/​examples/​common/​inputs/​socket.yaml Reviewed
docs/​modules/​components/​examples/​common/​inputs/​socket_server.yaml Reviewed
docs/​modules/​components/​examples/​common/​inputs/​slack.yaml Reviewed
docs/​modules/​components/​examples/​common/​inputs/​slack_users.yaml Reviewed
docs/​modules/​components/​examples/​common/​inputs/​sequence.yaml Reviewed
docs/​modules/​components/​examples/​common/​inputs/​schema_registry.yaml Reviewed
docs/​modules/​components/​examples/​common/​inputs/​salesforce.yaml Reviewed
docs/​modules/​components/​examples/​common/​inputs/​salesforce_graphql.yaml Reviewed
docs/​modules/​components/​examples/​common/​inputs/​redpanda.yaml Reviewed
docs/​modules/​components/​examples/​common/​inputs/​redpanda_common.yaml Reviewed
docs/​modules/​components/​examples/​common/​inputs/​redis_streams.yaml Reviewed
docs/​modules/​components/​examples/​common/​inputs/​redis_scan.yaml Reviewed
docs/​modules/​components/​examples/​common/​inputs/​redis_pubsub.yaml Reviewed
docs/​modules/​components/​examples/​common/​inputs/​redis_list.yaml Reviewed
docs/​modules/​components/​examples/​common/​inputs/​read_until.yaml Reviewed
docs/​modules/​components/​examples/​common/​inputs/​pulsar.yaml Reviewed
docs/​modules/​components/​examples/​common/​inputs/​parquet.yaml Reviewed
docs/​modules/​components/​examples/​common/​inputs/​otlp_http.yaml Reviewed
docs/​modules/​components/​examples/​common/​inputs/​otlp_grpc.yaml Reviewed
docs/​modules/​components/​examples/​common/​inputs/​nsq.yaml Reviewed
docs/​modules/​components/​examples/​common/​inputs/​nats.yaml Reviewed
docs/​modules/​components/​examples/​common/​inputs/​nats_stream.yaml Reviewed
docs/​modules/​components/​examples/​common/​inputs/​nats_kv.yaml Reviewed
docs/​modules/​components/​examples/​common/​inputs/​nats_jetstream.yaml Reviewed
docs/​modules/​components/​examples/​common/​inputs/​nanomsg.yaml Reviewed
docs/​modules/​components/​examples/​common/​inputs/​mqtt.yaml Reviewed
docs/​modules/​components/​examples/​common/​inputs/​mongodb.yaml Reviewed
docs/​modules/​components/​examples/​common/​inputs/​kafka.yaml Reviewed
docs/​modules/​components/​examples/​common/​inputs/​kafka_franz.yaml Reviewed
docs/​modules/​components/​examples/​common/​inputs/​http_server.yaml Reviewed
docs/​modules/​components/​examples/​common/​inputs/​http_client.yaml Reviewed
docs/​modules/​components/​examples/​common/​inputs/​hdfs.yaml Reviewed
docs/​modules/​components/​examples/​common/​inputs/​generate.yaml Reviewed
docs/​modules/​components/​examples/​common/​inputs/​gcp_pubsub.yaml Reviewed
docs/​modules/​components/​examples/​common/​inputs/​gcp_cloud_storage.yaml Reviewed
docs/​modules/​components/​examples/​common/​inputs/​gcp_bigquery_select.yaml Reviewed
docs/​modules/​components/​examples/​common/​inputs/​gateway.yaml Reviewed
docs/​modules/​components/​examples/​common/​inputs/​file.yaml Reviewed
docs/​modules/​components/​examples/​common/​inputs/​dynamic.yaml Reviewed
docs/​modules/​components/​examples/​common/​inputs/​discord.yaml Reviewed
docs/​modules/​components/​examples/​common/​inputs/​csv.yaml Reviewed
docs/​modules/​components/​examples/​common/​inputs/​cockroachdb_changefeed.yaml Reviewed
docs/​modules/​components/​examples/​common/​inputs/​cassandra.yaml Reviewed
docs/​modules/​components/​examples/​common/​inputs/​broker.yaml Reviewed
docs/​modules/​components/​examples/​common/​inputs/​beanstalkd.yaml Reviewed
docs/​modules/​components/​examples/​common/​inputs/​batched.yaml Reviewed
docs/​modules/​components/​examples/​common/​inputs/​azure_table_storage.yaml Reviewed
docs/​modules/​components/​examples/​common/​inputs/​azure_queue_storage.yaml Reviewed
docs/​modules/​components/​examples/​common/​inputs/​azure_cosmosdb.yaml Reviewed
docs/​modules/​components/​examples/​common/​inputs/​azure_blob_storage.yaml Reviewed
docs/​modules/​components/​examples/​common/​inputs/​aws_sqs.yaml Reviewed
docs/​modules/​components/​examples/​common/​inputs/​aws_s3.yaml Reviewed
docs/​modules/​components/​examples/​common/​inputs/​aws_dynamodb_cdc.yaml Reviewed
docs/​modules/​components/​examples/​common/​inputs/​aws_cloudwatch_logs.yaml Reviewed
docs/​modules/​components/​examples/​common/​inputs/​amqp_1.yaml Reviewed
docs/​modules/​components/​examples/​common/​inputs/​amqp_0_9.yaml Reviewed
docs/​modules/​components/​examples/​common/​caches/​ttlru.yaml Reviewed
docs/​modules/​components/​examples/​common/​caches/​sql.yaml Reviewed
docs/​modules/​components/​examples/​common/​caches/​ristretto.yaml Reviewed
docs/​modules/​components/​examples/​common/​caches/​redpanda.yaml Reviewed
docs/​modules/​components/​examples/​common/​caches/​redis.yaml Reviewed
docs/​modules/​components/​examples/​common/​caches/​nats_kv.yaml Reviewed
docs/​modules/​components/​examples/​common/​caches/​mongodb.yaml Reviewed
docs/​modules/​components/​examples/​common/​caches/​memory.yaml Reviewed
docs/​modules/​components/​examples/​common/​caches/​memcached.yaml Reviewed
docs/​modules/​components/​examples/​common/​caches/​lru.yaml Reviewed
docs/​modules/​components/​examples/​common/​caches/​gcp_cloud_storage.yaml Reviewed
docs/​modules/​components/​examples/​common/​caches/​file.yaml Reviewed
docs/​modules/​components/​examples/​common/​caches/​couchbase.yaml Reviewed
docs/​modules/​components/​examples/​common/​caches/​aws_s3.yaml Reviewed
docs/​modules/​components/​examples/​common/​caches/​aws_dynamodb.yaml Reviewed
docs/​modules/​components/​examples/​common/​buffers/​system_window.yaml Reviewed
docs/​modules/​components/​examples/​common/​buffers/​sqlite.yaml Reviewed
docs/​modules/​components/​examples/​common/​buffers/​memory.yaml Reviewed
docs/​modules/​components/​examples/​advanced/​tracers/​open_telemetry_collector.yaml Reviewed
docs/​modules/​components/​examples/​advanced/​tracers/​jaeger.yaml Reviewed
docs/​modules/​components/​examples/​advanced/​tracers/​gcp_cloudtrace.yaml Reviewed
docs/​modules/​components/​examples/​advanced/​scanners/​switch.yaml Reviewed
docs/​modules/​components/​examples/​advanced/​scanners/​skip_bom.yaml Reviewed
docs/​modules/​components/​examples/​advanced/​scanners/​re_match.yaml Reviewed
docs/​modules/​components/​examples/​advanced/​scanners/​lines.yaml Reviewed
docs/​modules/​components/​examples/​advanced/​scanners/​decompress.yaml Reviewed
docs/​modules/​components/​examples/​advanced/​scanners/​csv.yaml Reviewed
docs/​modules/​components/​examples/​advanced/​scanners/​chunker.yaml Reviewed
docs/​modules/​components/​examples/​advanced/​scanners/​avro.yaml Reviewed
docs/​modules/​components/​examples/​advanced/​rate-limits/​redis.yaml Reviewed
docs/​modules/​components/​examples/​advanced/​rate-limits/​local.yaml Reviewed
docs/​modules/​components/​examples/​advanced/​processors/​xml.yaml Reviewed
docs/​modules/​components/​examples/​advanced/​processors/​workflow.yaml Reviewed
docs/​modules/​components/​examples/​advanced/​processors/​while.yaml Reviewed
docs/​modules/​components/​examples/​advanced/​processors/​wasm.yaml Reviewed
docs/​modules/​components/​examples/​advanced/​processors/​unarchive.yaml Reviewed
docs/​modules/​components/​examples/​advanced/​processors/​try_catch.yaml Reviewed
docs/​modules/​components/​examples/​advanced/​processors/​text_chunker.yaml Reviewed
docs/​modules/​components/​examples/​advanced/​processors/​switch.yaml Reviewed
docs/​modules/​components/​examples/​advanced/​processors/​subprocess.yaml Reviewed
docs/​modules/​components/​examples/​advanced/​processors/​string_split.yaml Reviewed
docs/​modules/​components/​examples/​advanced/​processors/​sql.yaml Reviewed
docs/​modules/​components/​examples/​advanced/​processors/​split.yaml Reviewed
docs/​modules/​components/​examples/​advanced/​processors/​sleep.yaml Reviewed
docs/​modules/​components/​examples/​advanced/​processors/​slack_thread.yaml Reviewed
docs/​modules/​components/​examples/​advanced/​processors/​sentry_capture.yaml Reviewed
docs/​modules/​components/​examples/​advanced/​processors/​select_parts.yaml Reviewed
docs/​modules/​components/​examples/​advanced/​processors/​retry.yaml Reviewed
docs/​modules/​components/​examples/​advanced/​processors/​redpanda_data_transform.yaml Reviewed
docs/​modules/​components/​examples/​advanced/​processors/​redis.yaml Reviewed
docs/​modules/​components/​examples/​advanced/​processors/​rate_limit.yaml Reviewed
docs/​modules/​components/​examples/​advanced/​processors/​protobuf.yaml Reviewed
docs/​modules/​components/​examples/​advanced/​processors/​parse_log.yaml Reviewed
docs/​modules/​components/​examples/​advanced/​processors/​parquet.yaml Reviewed
docs/​modules/​components/​examples/​advanced/​processors/​parquet_encode.yaml Reviewed
docs/​modules/​components/​examples/​advanced/​processors/​parquet_decode.yaml Reviewed
docs/​modules/​components/​examples/​advanced/​processors/​parallel.yaml Reviewed
docs/​modules/​components/​examples/​advanced/​processors/​openai_translation.yaml Reviewed
docs/​modules/​components/​examples/​advanced/​processors/​openai_transcription.yaml Reviewed
docs/​modules/​components/​examples/​advanced/​processors/​openai_speech.yaml Reviewed
docs/​modules/​components/​examples/​advanced/​processors/​openai_image_generation.yaml Reviewed
docs/​modules/​components/​examples/​advanced/​processors/​openai_embeddings.yaml Reviewed
docs/​modules/​components/​examples/​advanced/​processors/​ollama_embeddings.yaml Reviewed
docs/​modules/​components/​examples/​advanced/​processors/​msgpack.yaml Reviewed
docs/​modules/​components/​examples/​advanced/​processors/​metric.yaml Reviewed
docs/​modules/​components/​examples/​advanced/​processors/​log.yaml Reviewed
docs/​modules/​components/​examples/​advanced/​processors/​json_schema.yaml Reviewed
docs/​modules/​components/​examples/​advanced/​processors/​jq.yaml Reviewed
docs/​modules/​components/​examples/​advanced/​processors/​jmespath.yaml Reviewed
docs/​modules/​components/​examples/​advanced/​processors/​javascript.yaml Reviewed
docs/​modules/​components/​examples/​advanced/​processors/​insert_part.yaml Reviewed
docs/​modules/​components/​examples/​advanced/​processors/​group_by.yaml Reviewed
docs/​modules/​components/​examples/​advanced/​processors/​group_by_value.yaml Reviewed
docs/​modules/​components/​examples/​advanced/​processors/​grok.yaml Reviewed
docs/​modules/​components/​examples/​advanced/​processors/​google_drive_search.yaml Reviewed
docs/​modules/​components/​examples/​advanced/​processors/​google_drive_list_labels.yaml Reviewed
docs/​modules/​components/​examples/​advanced/​processors/​google_drive_download.yaml Reviewed
docs/​modules/​components/​examples/​advanced/​processors/​gcp_vertex_ai_embeddings.yaml Reviewed
docs/​modules/​components/​examples/​advanced/​processors/​gcp_bigquery_select.yaml Reviewed
docs/​modules/​components/​examples/​advanced/​processors/​ffi.yaml Reviewed
docs/​modules/​components/​examples/​advanced/​processors/​dedupe.yaml Reviewed
docs/​modules/​components/​examples/​advanced/​processors/​decompress.yaml Reviewed
docs/​modules/​components/​examples/​advanced/​processors/​couchbase.yaml Reviewed
docs/​modules/​components/​examples/​advanced/​processors/​compress.yaml Reviewed
docs/​modules/​components/​examples/​advanced/​processors/​command.yaml Reviewed
docs/​modules/​components/​examples/​advanced/​processors/​cohere_rerank.yaml Reviewed
docs/​modules/​components/​examples/​advanced/​processors/​cohere_embeddings.yaml Reviewed
docs/​modules/​components/​examples/​advanced/​processors/​cached.yaml Reviewed
docs/​modules/​components/​examples/​advanced/​processors/​cache.yaml Reviewed
docs/​modules/​components/​examples/​advanced/​processors/​branch.yaml Reviewed
docs/​modules/​components/​examples/​advanced/​processors/​bounds_check.yaml Reviewed
docs/​modules/​components/​examples/​advanced/​processors/​benchmark.yaml Reviewed
docs/​modules/​components/​examples/​advanced/​processors/​awk.yaml Reviewed
docs/​modules/​components/​examples/​advanced/​processors/​avro.yaml Reviewed
docs/​modules/​components/​examples/​advanced/​processors/​archive.yaml Reviewed
docs/​modules/​components/​examples/​advanced/​processors/​a2a_message.yaml Reviewed
docs/​modules/​components/​examples/​advanced/​outputs/​zmq4.yaml Reviewed
docs/​modules/​components/​examples/​advanced/​outputs/​switch.yaml Reviewed
docs/​modules/​components/​examples/​advanced/​outputs/​subprocess.yaml Reviewed
docs/​modules/​components/​examples/​advanced/​outputs/​stdout.yaml Reviewed
docs/​modules/​components/​examples/​advanced/​outputs/​sql.yaml Reviewed
docs/​modules/​components/​examples/​advanced/​outputs/​socket.yaml Reviewed
docs/​modules/​components/​examples/​advanced/​outputs/​slack_reaction.yaml Reviewed
docs/​modules/​components/​examples/​advanced/​outputs/​slack_post.yaml Reviewed
docs/​modules/​components/​examples/​advanced/​outputs/​sftp.yaml Reviewed
docs/​modules/​components/​examples/​advanced/​outputs/​retry.yaml Reviewed
docs/​modules/​components/​examples/​advanced/​outputs/​redpanda_common.yaml Reviewed
docs/​modules/​components/​examples/​advanced/​outputs/​pusher.yaml Reviewed
docs/​modules/​components/​examples/​advanced/​outputs/​pulsar.yaml Reviewed
docs/​modules/​components/​examples/​advanced/​outputs/​nsq.yaml Reviewed
docs/​modules/​components/​examples/​advanced/​outputs/​nanomsg.yaml Reviewed
docs/​modules/​components/​examples/​advanced/​outputs/​http_server.yaml Reviewed
docs/​modules/​components/​examples/​advanced/​outputs/​hdfs.yaml Reviewed
docs/​modules/​components/​examples/​advanced/​outputs/​file.yaml Reviewed
docs/​modules/​components/​examples/​advanced/​outputs/​dynamic.yaml Reviewed
docs/​modules/​components/​examples/​advanced/​outputs/​drop_on.yaml Reviewed
docs/​modules/​components/​examples/​advanced/​outputs/​discord.yaml Reviewed
docs/​modules/​components/​examples/​advanced/​outputs/​cache.yaml Reviewed
docs/​modules/​components/​examples/​advanced/​outputs/​broker.yaml Reviewed
docs/​modules/​components/​examples/​advanced/​outputs/​beanstalkd.yaml Reviewed
docs/​modules/​components/​examples/​advanced/​outputs/​azure_queue_storage.yaml Reviewed
docs/​modules/​components/​examples/​advanced/​outputs/​azure_data_lake_gen2.yaml Reviewed
docs/​modules/​components/​examples/​advanced/​outputs/​azure_blob_storage.yaml Reviewed
docs/​modules/​components/​examples/​advanced/​metrics/​statsd.yaml Reviewed
docs/​modules/​components/​examples/​advanced/​metrics/​open_telemetry_collector.yaml Reviewed
docs/​modules/​components/​examples/​advanced/​metrics/​logger.yaml Reviewed
docs/​modules/​components/​examples/​advanced/​inputs/​zmq4.yaml Reviewed
docs/​modules/​components/​examples/​advanced/​inputs/​twitter_search.yaml Reviewed
docs/​modules/​components/​examples/​advanced/​inputs/​timeplus.yaml Reviewed
docs/​modules/​components/​examples/​advanced/​inputs/​tigerbeetle_cdc.yaml Reviewed
docs/​modules/​components/​examples/​advanced/​inputs/​subprocess.yaml Reviewed
docs/​modules/​components/​examples/​advanced/​inputs/​stdin.yaml Reviewed
docs/​modules/​components/​examples/​advanced/​inputs/​sql_raw.yaml Reviewed
docs/​modules/​components/​examples/​advanced/​inputs/​splunk.yaml Reviewed
docs/​modules/​components/​examples/​advanced/​inputs/​spicedb_watch.yaml Reviewed
docs/​modules/​components/​examples/​advanced/​inputs/​socket.yaml Reviewed
docs/​modules/​components/​examples/​advanced/​inputs/​socket_server.yaml Reviewed
docs/​modules/​components/​examples/​advanced/​inputs/​slack.yaml Reviewed
docs/​modules/​components/​examples/​advanced/​inputs/​slack_users.yaml Reviewed
docs/​modules/​components/​examples/​advanced/​inputs/​sequence.yaml Reviewed
docs/​modules/​components/​examples/​advanced/​inputs/​redis_scan.yaml Reviewed
docs/​modules/​components/​examples/​advanced/​inputs/​redis_pubsub.yaml Reviewed
docs/​modules/​components/​examples/​advanced/​inputs/​read_until.yaml Reviewed
docs/​modules/​components/​examples/​advanced/​inputs/​parquet.yaml Reviewed
docs/​modules/​components/​examples/​advanced/​inputs/​nanomsg.yaml Reviewed
docs/​modules/​components/​examples/​advanced/​inputs/​hdfs.yaml Reviewed
docs/​modules/​components/​examples/​advanced/​inputs/​generate.yaml Reviewed
docs/​modules/​components/​examples/​advanced/​inputs/​gcp_pubsub.yaml Reviewed
docs/​modules/​components/​examples/​advanced/​inputs/​gcp_cloud_storage.yaml Reviewed
docs/​modules/​components/​examples/​advanced/​inputs/​gcp_bigquery_select.yaml Reviewed
docs/​modules/​components/​examples/​advanced/​inputs/​gateway.yaml Reviewed
docs/​modules/​components/​examples/​advanced/​inputs/​file.yaml Reviewed
docs/​modules/​components/​examples/​advanced/​inputs/​dynamic.yaml Reviewed
docs/​modules/​components/​examples/​advanced/​inputs/​discord.yaml Reviewed
docs/​modules/​components/​examples/​advanced/​inputs/​csv.yaml Reviewed
docs/​modules/​components/​examples/​advanced/​inputs/​cockroachdb_changefeed.yaml Reviewed
docs/​modules/​components/​examples/​advanced/​inputs/​broker.yaml Reviewed
docs/​modules/​components/​examples/​advanced/​inputs/​beanstalkd.yaml Reviewed
docs/​modules/​components/​examples/​advanced/​inputs/​batched.yaml Reviewed
docs/​modules/​components/​examples/​advanced/​inputs/​azure_table_storage.yaml Reviewed
docs/​modules/​components/​examples/​advanced/​inputs/​azure_queue_storage.yaml Reviewed
docs/​modules/​components/​examples/​advanced/​inputs/​azure_cosmosdb.yaml Reviewed
docs/​modules/​components/​examples/​advanced/​inputs/​azure_blob_storage.yaml Reviewed
docs/​modules/​components/​examples/​advanced/​caches/​ttlru.yaml Reviewed
docs/​modules/​components/​examples/​advanced/​caches/​ristretto.yaml Reviewed
docs/​modules/​components/​examples/​advanced/​caches/​memory.yaml Reviewed
docs/​modules/​components/​examples/​advanced/​caches/​memcached.yaml Reviewed
docs/​modules/​components/​examples/​advanced/​caches/​lru.yaml Reviewed
docs/​modules/​components/​examples/​advanced/​caches/​gcp_cloud_storage.yaml Reviewed
docs/​modules/​components/​examples/​advanced/​caches/​file.yaml Reviewed
docs/​modules/​components/​examples/​advanced/​caches/​couchbase.yaml Reviewed
docs/​modules/​components/​examples/​advanced/​buffers/​system_window.yaml Reviewed
docs/​modules/​components/​examples/​advanced/​buffers/​sqlite.yaml Reviewed
docs/​modules/​components/​examples/​advanced/​buffers/​memory.yaml Reviewed
docs/​antora.yml Reviewed
CLAUDE.md Reviewed

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

Comment thread cmd/tools/docs_gen/fields.go Resolved
Comment thread cmd/tools/docs_gen/fields.go Resolved
Comment thread cmd/tools/docs_gen/main.go Resolved
@JakeSCahill

Copy link
Copy Markdown
Contributor Author

@Jeffail @josephwoodward this stack is ready for review, starting here. 4863 is the generator (Antora partials, availability, the component catalog, cgo detection). 4866 to 4870 move the doc text into the specs, area by area. 4875 shares copied descriptions and fails CI on new copies. 4876 requires introduced-in versions. 4877 waits on a benthos release with redpanda-data/benthos#517. Each PR is based on the one before it, so they merge in order. Two failing checks are not from these changes: integration-test-filter times out on main too, and claude-review cannot load PRs with more than 300 files.

Replace the page templates in docs_gen with a generator that writes the
field, example, metadata, and description partials, the Common and
Advanced config snippets, and the Bloblang reference that the
rp-connect-docs pages include. The docs site reads docs/ at each release
tag, so the text in the specs is what gets published.

The generator clears the directories it owns on every run, so pages for
removed or deprecated components no longer linger, and the existing CI
stale check catches deletions as well as edits.
Components whose config is a single value, a list, or an object with no
fields (resource, inproc, fallback, multilevel, drop, noop, json_api,
and others) got no Common or Advanced snippet, so their pages relied on
hand-written copies. One of those copies (json_api) listed fields the
component doesn't have. Generate these snippets too.
- Always write the metadata and description partials for components
  with pages, as empty stubs when there is no content, so an include
  keeps resolving after upstream removes a Metadata section or a
  description.
- Clear the generated directories only in a build with
  x_benthos_extra. Without it the cgo-only components are missing, so
  clearing deleted their committed docs. CI runs the tagged build.
- Render component-typed configs such as reject_errored as `{}`.
- Quote top-level YAML keys that start with a document marker, as the
  npm yaml package does.
- Point Claude plugin links at docs.redpanda.com, since the docs/modules
  pages they linked to are gone.
- Document the exact regeneration command CI runs.
Match docs-extensions-and-macros PR 344 so both generators render the
same way:

- Wrap code spans that contain __, **, or ## in a +...+ passthrough.
  Asciidoctor treats those as formatting markers even inside backticks,
  so `__c` and `__b` on the salesforce input rendered as emphasis.
- Inline-code metadata field names whose parenthetical description
  nests parentheses.
- Add the blank line a metadata list needs when it follows a paragraph.
…ippets

- Render string field examples and string defaults through the YAML
  emitter, so values such as `*`, `@every 1s`, or `true` are quoted and
  the snippets parse. The old text concatenated them raw.
- Pass the advanced filter down into nested objects, so the Common
  snippet no longer lists advanced children such as
  snowflake_streaming's schema_evolution.ignore_nulls.
- Add a test that builds every Common and Advanced snippet and every
  field example from the schema and parses each one as YAML, and checks
  that no advanced field appears in a Common snippet.
…docs

The Redpanda Cloud build only allows pure Bloblang, so env, file,
file_rel, hostname, and count aren't available there, but Cloud docs
single-source the full functions reference. The generator now builds
the Cloud schema and wraps any function or method missing from it in
ifndef::env-cloud[], so the Cloud reference follows the Cloud build.
… catalog

Emit :status: and :page-cgo-only: in the description meta tag, a status
notice at the top of the body tag, and spec footnotes in a new footnotes
tag. Unlink components that Cloud doesn't include in the Cloud variant of
Cloud component descriptions, and keep code blocks out of :description:.

Find cgo-only components by running componentlist, which imports the same
components, with CGO_ENABLED=0 and no build tags, and diffing its schema
with the docs_gen schema. Write partials/availability/<type>/<name>.adoc,
a cgo-only list for the install pages, and partials/platforms/catalog.json
with status, version, categories, summary, Cloud, Cloud GPU, cgo-only,
support, and commercial names.

For Bloblang, show parameter defaults and mark defaulted parameters
optional, describe variadic parameters, label beta and experimental
specs, and leave hidden specs out.

Add a test that every component Summary is one line with no block
content.
Snippets nest under the singular component type, as benthos
genExampleConfigs does, render list configs as a list item and maps of
objects with a placeholder key, pick placeholders by type, and never leave
a bare key. Top-level config objects with fields (http, logger, redpanda,
error_handling, pipeline, tests) get partials/fields/config/<name>.adoc and
Common and Advanced snippets.

Fix field rendering: list examples that start with a quote keep it, multi-line
examples keep trailing newlines and leading spaces, control-character and
null defaults render quoted, map fields show their value type, and
interpolated fields always link the interpolation page.

Replace the YAML parse check with a structural lint of every snippet, a
round-trip test of every rendered default and example, and a field-count
test, and run them from task docs in place of a lint glob that matched no
files.
… them

The generated partials and examples made up nearly all of a docs PR's
diff. docs/modules is now gitignored. The release workflow generates it
and attaches it to the GitHub release as redpanda-connect-docs.tar.gz,
which the docs site reads for the latest release. CI still runs
task docs on every PR, so a spec that breaks the generated docs fails.
@JakeSCahill
JakeSCahill force-pushed the docs/generate-antora-partials branch from f9de549 to 3ce370f Compare October 6, 2026 15:25
Comment thread docs/README.md Resolved
Comment thread cmd/tools/docs_gen/main.go Resolved
Comment thread cmd/tools/docs_gen/fields.go Outdated

// typesWithLabel are the component types that take a `label` field, as in
// benthos docs.ReservedFieldsByType.
var typesWithLabel = map[string]bool{

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.

Benthos already generates these snippets. ConfigView.TemplateData() returns CommonConfigYAML and AdvancedConfigYAML through genExampleConfigs (benthos v4.81.0, public/service/config_docs.go:211). The old docs_gen used it.

This code builds them again by hand, together with yaml.go, in about 700 lines. These lines copy benthos rules:

  • typesWithLabel copies docs.ReservedFieldsByType.
  • Line 360 has a special case for resource.
  • quoteListScalar and doubleQuote add a second set of quoting rules next to yaml.go, and the two sets don't agree. For example, doubleQuote doesn't escape control characters.

I understand why: byte-for-byte parity with the current pipeline makes this PR easy to check. Is the emulator only for the migration? If yes, can you say that in a comment here, and add a follow-up to go back to the benthos API after the switch? We would accept a one-time reformat diff then. If no, let's talk about it, because every benthos change to snippet rules must then be copied here by hand.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, it's only for the migration: matching the current pipeline byte for byte is what makes the output checkable now. e19019e says so in a comment above the snippet code and links the follow-up, #4924. The issue also lists the two things these snippets fix that benthos doesn't yet (Common snippets dropping advanced nested fields, and snippets for value-shaped configs such as resource), so they move to benthos first or get dropped on purpose. doubleQuote now uses jsonStringify, so it escapes control characters, and quoteSpecialScalar uses it too. The generated output is unchanged.

Comment thread cmd/tools/docs_gen/spec.go Outdated
BloblangMethods []bloblangSpec
}

var componentKeys = []string{

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.

The 9 component types are listed in about 7 places:

  • componentKeys (here)
  • pageTypeDirs (main.go:68)
  • pluginTypes (platforms.go:184)
  • the componentXref regex (description.go:412)
  • typesWithLabel and componentTypes (fields.go:309, fields.go:348)

The rate-limits/rate_limits mapping is also written twice, in opposite directions (pageTypeDir here and cloudExcluded at platforms.go:151). If someone misses one place, nothing fails. For example, the xref regex would stop adding Cloud guards without an error.

Can one table drive all of them? For example:

var componentKinds = []struct {
	key, typeDir string
	plugin       plugins.TypeName
}{
	{"buffers", "buffers", plugins.TypeBuffer},
	// ...
	{"rate-limits", "rate_limits", plugins.TypeRateLimit},
}

Then build the maps and the regex alternation from it.

Also, the if !pageTypeDirs[typeDir] check at main.go:187 can never be true. Every key in componentKeys maps to an entry in pageTypeDirs. You can delete the map and the check.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done in e19019e. componentKinds now builds componentKeys, the page directory maps in both directions, pluginTypes, typesWithLabel, componentTypes, and the componentXref alternation, so cloudExcluded uses the same mapping as pageTypeDir. I deleted pageTypeDirs and its check. The generated docs are byte-identical before and after.

Comment thread Taskfile.yml Outdated
- '{{.TARGET_DIR}}/redpanda-connect lint --deprecated "./config/examples/*.yaml" "{{.WEBSITE_DIR}}/**/*.md"'
# Lints every generated Common and Advanced snippet against the schema.
# With TAGS=x_benthos_extra this covers the cgo components too.
- go test -tags "{{.TAGS}}" -run 'TestSnippetsLint|TestSnippetLintCatchesBadShapes|TestRenderedValuesRoundTrip|TestTopLevelConfigObjects' ./cmd/tools/docs_gen

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.

With this PR, the Docs step in CI takes about 6 minutes longer. It runs before the Test step in the same test job, so on every PR the unit tests wait for it.

From the job logs (this PR: run 37487355992; main: run 34174825054):

Phase main this PR
go run docs_gen 11 s 264 s
go test -run ... (new) none 82 s
Docs step about 5–6 min about 12 min

I think most of the docs_gen time is componentlist. It builds every component again with CGO_ENABLED=0, and the CI build cache has nothing for that configuration.

Options:

  • Move the Docs step into its own job, so it runs in parallel with Test. This is the smallest change.
  • Build componentlist as a Taskfile dep that runs in parallel with build:redpanda-connect, and pass its output to docs_gen.
  • Lint the snippets inside docs_gen while they are in memory, and remove the go test step (82 s).

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Moved the Docs step into its own docs job in 7e0354a, so it runs alongside Test instead of before it. I kept the snippet lint as a go test run for now. It carries negative-control tests (TestSnippetLintCatchesBadShapes), and in its own job it no longer delays the unit tests.

@Leward Leward Oct 7, 2026 •

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.

Looks like my recommendation had unintended consequences for the test job. Looking into it 👀

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.

Suggestion: find the cgo-only components with go list instead of the CGO_ENABLED=0 compile in standardBuildSchema.

  1. Run go list -deps on the standard build and on the docs_gen build. It takes under 1 s for each.
  2. Keep the Go files that only the docs_gen build includes. Today these are the zeromq, tigerbeetle and ffi files.
  3. Parse those files with go/ast and read the names from the service.MustRegister*("name", ...) calls.

My local prototype finds the same 4 components in 2 s.
With this change, the Docs step can go back into the test job.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks, done in 7c32613 the way you suggested. cgoOnlyComponents runs go list -deps on the standard and docs_gen builds of allcomponents, parses the Go files only the docs_gen build compiles, and reads the names from their service.MustRegister... calls (string literals, or a constant in the same package). componentlist is gone. TestPlatformsFromBuilds takes about 1.4s instead of timing out, and a full x_benthos_extra run finds the same 4 components and writes byte-identical docs (2,480 files, no diff). I left Docs as its own job for now, since it runs alongside Test either way.

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.

The CI is overall slower than before, but we will address it separately. This part is good with me.

@Jeffail

Jeffail commented Oct 7, 2026

Copy link
Copy Markdown
Contributor

Nice, gitignoring the generated output is much cleaner. Two things before this goes in:

  1. No fallback when the latest release has no asset. With feat(rpcn-docs): source connect reference docs from the release asset docs-extensions-and-macros#358 as it stands, a 404 on the latest release adds nothing, and then the guard fails the docs build. That looks like it'd hit every docs-site build in the gap between goreleaser publishing and docs-asset uploading, which is roughly 15–20 min going by recent tag runs. It'd stay broken if the job fails. The github.event_name == 'push' guard also means the asset can't be regenerated for an existing tag through workflow_dispatch; a job re-run is the only way. Two suggestions:

  2. Some reference content isn't generated from the specs yet:

    • bloblangCategory only reads Category. Benthos MethodCatSpec also carries Description and Examples, so methods with per-category text render a shorter description, and a few lose examples.
    • The templating config reference isn't generated. partials/fields/config/ covers http, logger, redpanda, error_handling, pipeline and tests, but not templates. So rp-connect-docs' templating.adoc stays a hand copy that can drift.

FYI on ordering: redpanda-data/rp-connect-docs#531 still lists #345 as its dependency, but I think it's #358 now that tags don't contain docs/modules. And the first release after this merges would carry the pre-overrides text, so the switch has to wait for a release that includes the follow-up stack too.

componentKinds now drives the schema keys, page directories, info.csv
types, label and component-config types, and the component xref regex,
so a new type is a one-line change. The full-build decisions in main
share one block, the always-true pageTypeDirs check is gone, and snippet
strings escape control characters. The snippet code says why it exists
and links the follow-up to switch to the benthos snippets.
The Docs step takes about 6 minutes, so it runs alongside the unit tests
instead of before them.
A method now uses its first category description, as the benthos docs did,
which gives 67 methods their full description, and keeps every example
from its categories and its own spec. The template file fields are
generated to partials/fields/config/templates.adoc, so the templating page
no longer needs a hand copy.
A workflow_dispatch with docs_tag checks out that tag, generates the
reference docs, and attaches them to its release, without running the
snapshot build. Use it when the docs-asset job failed for a release.
@JakeSCahill

Copy link
Copy Markdown
Contributor Author

@Jeffail thanks, all done.

  1. Missing asset. feat(rpcn-docs): source connect reference docs from the release asset docs-extensions-and-macros#358 now falls back: when the latest release has no redpanda-connect-docs.tar.gz yet, it uses the newest of the last 10 stable releases that has one and warns, for example "v4.114.0 has no redpanda-connect-docs.tar.gz asset yet; using v4.113.0". An explicit tag never falls back. Here, d000b37 adds a docs_tag input to the release workflow: a dispatch with it checks out that tag, regenerates the docs, and attaches them to that release, without the snapshot build.
  2. Specs coverage. 353de2a:
    • Methods now use their first category description, as the old benthos docs did, which gives 67 methods their full text. Every example from the categories and the method spec is kept. In the current specs the method examples already include the category ones, so no example changes, but a method whose category adds examples would now get them.
    • The template file fields are generated to partials/fields/config/templates.adoc, and redpanda-data/rp-connect-docs#531 now includes that on the templating page instead of the hand copy.

Ordering: agreed, and 531's description now says so. It depends on #358, not #345, and on a Connect release that includes the whole stack, not just 4863.

…very partial

- A method whose categories describe it differently gets one partial per
  category, and the methods list includes the matching one, so length and
  contains read correctly under each category.
- Fields and examples partials are written empty when a component has none,
  like the metadata and description partials, so page includes keep
  resolving.
- A field's Requires version line is shown only when it is later than the
  component's or its parent field's version.
- An empty enum option renders as `""` instead of two literal backticks.
…eport failures

docs-asset refuses to upload when the tag's generator wrote full pages or
left a required directory empty, so an old tag can't get an asset the docs
build would fall back to. notify-slack reports a docs-asset failure, and the
docs job reports a generator failure separately from stale tracked files.
Comment thread cmd/tools/docs_gen/bloblang.go Outdated
Comment on lines +70 to +77
// renderBloblangSpec renders the reference partial for one function or
// method. kind is "function" or "method".
// withCategoryText returns a method spec that uses the text its categories
// give it, as the benthos docs did: the first category description replaces
// the method description. The examples are those of every category, followed
// by any method example that no category repeats, so none are lost when a
// method is in several categories.
func withCategoryText(spec bloblangSpec) bloblangSpec {

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.

Looks like the godoc does not match the function name anymore.

Move it back to renderBloblangSpec

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fixed in e9bdb41: the comment is back on renderBloblangSpec.

}
childSince := since
if f.Version != "" && versionLater(f.Version, since) {
b.WriteString("ifndef::env-cloud[]\nRequires version " + f.Version + " or later.\nendif::[]\n\n")

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.

Makes sense to add this, but the output is not longer "byte for byte" identical.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Right, it is a deliberate change. I added it to the list of deliberate differences in the PR description, along with the other output changes from review: every partial is written as an empty stub when there is no content, Requires version lines only appear when newer than the parent, and the per-category Bloblang text.

…uild

Compiling every component again with CGO_ENABLED=0 took minutes on a cold
cache and timed out the unit tests once the docs job moved out of the test
job. go list -deps lists the Go files of the standard and docs_gen builds in
about a second each, and the component names come from the
service.MustRegister calls in the files only the docs_gen build compiles.
The generated docs are unchanged. componentlist is no longer needed.
Comment thread cmd/tools/docs_gen/platforms_test.go Outdated
assert.Contains(t, out, `"categories": []`, "empty lists stay arrays, not null")
}

// TestPlatformsFromBuilds runs the real standard build and checks the

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.

nit: The test does not compile Redpanda Connect anymore.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fixed in e9bdb41: the comment now says it lists the builds with go list.

Comment thread cmd/tools/docs_gen/platforms.go Outdated
Comment on lines +159 to +163
kind := strings.TrimPrefix(strings.TrimPrefix(sel.Sel.Name, "Must"), "Register")
group, ok := registerGroups[kind]
if !ok || !strings.Contains(sel.Sel.Name, "Register") {
return true
}

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.

Example: twitter_search is a template component. It registers with service.MustRegisterTemplateYAML.
If a component like it goes behind a build tag, this code skips the call, because TemplateYAML is not in registerGroups.
The docs then show the component as available in the standard build, and the cgo-only list leaves it out.
The same happens when an init() in a gated file calls a register helper in a shared file.

There is no error.
The only guard is the zero-found check, so finding 3 of 4 passes.
The old compile-and-compare approach did not have this gap.

Suggestions:

  • Return an error when a package that only the docs_gen build compiles registers nothing.
  • Add TestPlatformsFromBuilds to the -run list of task docs. Then the exact-list assertion runs in CI with x_benthos_extra. The test takes about 1.4 s now.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good catch, thanks. e9bdb41 makes both cases errors instead of gaps. In a file only the docs_gen build compiles, a service.(Must)Register... call of a kind docs_gen can't map (such as TemplateYAML) stops the generator with the file and line, and so does an init function where no registration can be read (the shared-helper case). This only looks at connect and benthos files, since dependencies have cgo-only files too (a macOS keychain backend tripped it). TestFileRegistrations covers the template, helper, constant-name, and imports-only cases. I also added TestPlatformsFromBuilds to the docs task, so the exact 4-component list is checked with x_benthos_extra.

Reading names from register calls missed two cases silently: a register kind
docs_gen doesn't map, such as a template, and an init function that calls a
register helper in a shared file. Both now stop the generator with the file
and line. The docs task runs TestPlatformsFromBuilds with x_benthos_extra, so
the exact cgo-only list is checked in CI. Also put the renderBloblangSpec doc
comment back on its function.
@JakeSCahill
JakeSCahill merged commit c430d72 into main Oct 8, 2026
9 of 11 checks passed
@JakeSCahill
JakeSCahill deleted the docs/generate-antora-partials branch October 8, 2026 14:19
abhilashmandaliya added a commit to aerospike/redpanda-connect that referenced this pull request Oct 19, 2026
- Prefix the field name constants with `aoField`, for example `aoFieldBins`. This follows the component abbreviation pattern and keeps clear of the `as` client import. Only Go identifiers change, so YAML field names and docs are unaffected.
- Name the second value of a map lookup `exists` instead of `ok` in three places. Type assertions and other comma-ok calls keep `ok`.
- Build zero-value structs with `new(X)` instead of `&X{}` in four places.
- Move the version of the output and its `credentials.password_file`, `protocols` and `revoke_certificates` fields from `4.114.0` to `4.115.0`. Upstream released v4.114.0 without the Aerospike output, so `TestNewSpecsHaveVersions` rejects the old value.
- Stop tracking the generated `docs/modules/components/pages/outputs/aerospike.adoc`. It was committed before upstream started ignoring `docs/modules` in redpanda-data#4863, so the ignore rule never applied to it.

---------

Co-authored-by: Cursor <[email protected]>
JakeSCahill added a commit to redpanda-data/docs-extensions-and-macros that referenced this pull request Oct 30, 2026
…erated docs (#467)

The connect section of the doc-strings review prompt ends every
suggestion with "run `CGO_ENABLED=1 TAGS=x_benthos_extra task docs` and
commit the regenerated docs, or the docs check fails" (example:
redpanda-data/connect#4860 (comment r4418614230)). Since
redpanda-data/connect#4863, connect ignores `/docs/modules/` and
releases attach the generated docs as `redpanda-connect-docs.tar.gz`, so
there is nothing to commit and the docs check generates the pages
itself.

This removes that instruction from the prompt. The test that required
the command now asserts the prompt no longer mentions `task docs` or
committing regenerated docs, so the instruction can't come back. With
the old prompt, that test fails.

Reported by PJ Vauthier.
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.

4 participants