Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 3 additions & 7 deletions docs-data/rpk-overrides.json
Original file line number Diff line number Diff line change
Expand Up @@ -323,7 +323,8 @@
"description": "Replace rpai shorthand with rpk ai in examples (rpai is the plugin binary name)",
"pattern": "\\brpai\\b",
"replacement": "rpk ai",
"flags": "g"
"flags": "g",
"applyToCode": true
Comment thread
coderabbitai[bot] marked this conversation as resolved.
},
{
"description": "Wrap Redpanda secret scope values in inline code",
Expand Down Expand Up @@ -3152,12 +3153,7 @@
"title": "Example",
"position": "end",
"headingLevel": 2,
"content": "[,bash]\n----\nrpk container status\nNODE-ID STATUS KAFKA-ADDRESS ADMIN-ADDRESS PROXY-ADDRESS SCHEMA-REGISTRY-ADDRESS\n0 running 127.0.0.1:9092 127.0.0.1:9644 127.0.0.1:8082 127.0.0.1:8081\n\nRedpanda Console started in: http://localhost:8080\n\nYou can use rpk to interact with this cluster. E.g:\n\n rpk cluster info\n rpk cluster health\n\nYou may also set an environment variable with the comma-separated list of\nbroker addresses:\n\n export RPK_BROKERS=\"127.0.0.1:34189,127.0.0.1:45523,127.0.0.1:37223\"\n rpk cluster info\n----"
},
{
"type": "self-hosted",
"position": "after_flags",
"content": "== Example\n\nIf you're following xref:get-started:quick-start.adoc#tabs-1-three-brokers[Quick Start - Deploy Redpanda to Docker with Three Nodes], you can run `rpk container status` to see more information about your containers."
"content": "ifndef::env-cloud[]\nIf you're following xref:get-started:quick-start.adoc#tabs-1-three-brokers[Quick Start - Deploy Redpanda to Docker with Three Nodes], you can run `rpk container status` to see more information about your containers.\nendif::[]\n\n[,bash]\n----\nrpk container status\nNODE-ID STATUS KAFKA-ADDRESS ADMIN-ADDRESS PROXY-ADDRESS SCHEMA-REGISTRY-ADDRESS\n0 running 127.0.0.1:9092 127.0.0.1:9644 127.0.0.1:8082 127.0.0.1:8081\n\nRedpanda Console started in: http://localhost:8080\n\nYou can use rpk to interact with this cluster. E.g:\n\n rpk cluster info\n rpk cluster health\n\nYou may also set an environment variable with the comma-separated list of\nbroker addresses:\n\n export RPK_BROKERS=\"127.0.0.1:34189,127.0.0.1:45523,127.0.0.1:37223\"\n rpk cluster info\n----"
}
]
},
Expand Down
4 changes: 4 additions & 0 deletions docs-data/rpk-overrides.schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,10 @@
"description": "Regular expression flags. Default: 'g' (global). Common: 'gi' (global, case-insensitive)",
"default": "g",
"pattern": "^[gimsuvy]*$"
},
"applyToCode": {
"type": "boolean",
"description": "Also apply this replacement inside code contexts: code blocks captured from help text (verbatim command examples) and inline code spans. Default false: code contexts are protected from prose transformations. Use for binary-name rewrites like rpai to rpk ai."
}
},
"required": ["pattern", "replacement"],
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,14 +28,12 @@ rpk container status [flags]
|-v, --verbose |bool |Enable verbose logging.
|===

ifndef::env-cloud[]
== Example

ifndef::env-cloud[]
If you're following xref:get-started:quick-start.adoc#tabs-1-three-brokers[Quick Start - Deploy Redpanda to Docker with Three Nodes], you can run `rpk container status` to see more information about your containers.
endif::[]

== Example

[,bash]
----
rpk container status
Expand Down
Loading