Repository navigation
docs: generate antora partials from component specs - #4863
Conversation
There was a problem hiding this comment.
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
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.
5588987 to
f9de549
Compare
|
@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: |
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.
f9de549 to
3ce370f
Compare
|
|
||
| // typesWithLabel are the component types that take a `label` field, as in | ||
| // benthos docs.ReservedFieldsByType. | ||
| var typesWithLabel = map[string]bool{ |
There was a problem hiding this comment.
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:
typesWithLabelcopiesdocs.ReservedFieldsByType.- Line 360 has a special case for
resource. quoteListScalaranddoubleQuoteadd a second set of quoting rules next toyaml.go, and the two sets don't agree. For example,doubleQuotedoesn'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.
There was a problem hiding this comment.
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.
| BloblangMethods []bloblangSpec | ||
| } | ||
|
|
||
| var componentKeys = []string{ |
There was a problem hiding this comment.
The 9 component types are listed in about 7 places:
componentKeys(here)pageTypeDirs(main.go:68)pluginTypes(platforms.go:184)- the
componentXrefregex (description.go:412) typesWithLabelandcomponentTypes(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.
There was a problem hiding this comment.
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.
| - '{{.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 |
There was a problem hiding this comment.
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
componentlistas a Taskfile dep that runs in parallel withbuild:redpanda-connect, and pass its output to docs_gen. - Lint the snippets inside docs_gen while they are in memory, and remove the
go teststep (82 s).
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
Looks like my recommendation had unintended consequences for the test job. Looking into it 👀
There was a problem hiding this comment.
Suggestion: find the cgo-only components with go list instead of the CGO_ENABLED=0 compile in standardBuildSchema.
- Run
go list -depson the standard build and on the docs_gen build. It takes under 1 s for each. - Keep the Go files that only the docs_gen build includes. Today these are the zeromq, tigerbeetle and ffi files.
- Parse those files with
go/astand read the names from theservice.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.
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
The CI is overall slower than before, but we will address it separately. This part is good with me.
|
Nice, gitignoring the generated output is much cleaner. Two things before this goes in:
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 |
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.
|
@Jeffail thanks, all done.
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.
| // 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 { |
There was a problem hiding this comment.
Looks like the godoc does not match the function name anymore.
Move it back to renderBloblangSpec
There was a problem hiding this comment.
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") |
There was a problem hiding this comment.
Makes sense to add this, but the output is not longer "byte for byte" identical.
There was a problem hiding this comment.
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.
| assert.Contains(t, out, `"categories": []`, "empty lists stay arrays, not null") | ||
| } | ||
|
|
||
| // TestPlatformsFromBuilds runs the real standard build and checks the |
There was a problem hiding this comment.
nit: The test does not compile Redpanda Connect anymore.
There was a problem hiding this comment.
Fixed in e9bdb41: the comment now says it lists the builds with go list.
| kind := strings.TrimPrefix(strings.TrimPrefix(sel.Sel.Name, "Must"), "Register") | ||
| group, ok := registerGroups[kind] | ||
| if !ok || !strings.Contains(sel.Sel.Name, "Register") { | ||
| return true | ||
| } |
There was a problem hiding this comment.
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
TestPlatformsFromBuildsto the-runlist oftask docs. Then the exact-list assertion runs in CI withx_benthos_extra. The test takes about 1.4 s now.
There was a problem hiding this comment.
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.
- 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]>
…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.

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, readingrpk 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 underdocs/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,--helpand the JSON schema never see it.This PR makes the specs the only source for that content:
task docsnow 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:a2a_messageprocessor is included.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.""instead of two literal backticks.contains,length,slice) get one partial per category.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.__,**, or##render literally, matching docs-extensions-and-macros PR 344.http_clientoutput fields,extract_headersandpropagate_response, are no longer hidden on Redpanda Cloud. The docs team decided they apply there now thatsync_responseis Cloud-supported.docs/modulesis gitignored, and the release workflow runs the generator and attaches the output to each GitHub release asredpanda-connect-docs.tar.gz. CI still runsCGO_ENABLED=1 TAGS=x_benthos_extra task docson every PR, which generates everything and lints every snippet, so a spec that breaks the docs fails the PR.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_genis rewritten to emit Antora partials instead of full pages. The page templates are removed.docs/modulesare deleted, anddocs/antora.ymlgoes with them: this repo is no longer an Antora content source. The hand-written pages live inrp-connect-docs, anddocs/README.mdexplains 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.ymlgets adocs-assetjob 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, thedocs-assetjob 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.goreproduces the YAML formatting of the current docs so existing snippets don't reflow, andyaml_test.gopins it.Tested with
go test ./cmd/tools/docs_gen/, a fulltask docsrun 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)
partials/availability/<type>/<name>.adocrenders the cgo-only note, which names the real release archive and build command, plus Cloud GPU notes.partials/platforms/catalog.jsonrecords status, version, categories, Cloud, Cloud GPU, cgo-only, and support level per component, for the catalog and the cloud-docs page check.:status:, starts with a deprecation warning or a beta or experimental caution where the spec says so, and has afootnotesregion.input:, notinputs:) and render lists and maps correctly.partials/fields/config/<name>.adocand config snippets cover http, logger, redpanda, error_handling, pipeline, and tests. The redpanda and logger pages hand-kept wrong defaults.