Skip to content

Commit

Permalink
Merge pull request #10705 from rabbitmq/mergify/bp/v3.13.x/pr-10704
Browse files Browse the repository at this point in the history
CLI: update guide URLs to use the website new path structure (backport #10704)
  • Loading branch information
michaelklishin committed Mar 8, 2024
2 parents 354f260 + 248c7da commit 33166f8
Show file tree
Hide file tree
Showing 14 changed files with 14 additions and 14 deletions.
2 changes: 1 addition & 1 deletion deps/rabbitmq_cli/lib/rabbitmq/cli/core/doc_guide.ex
Expand Up @@ -18,7 +18,7 @@ defmodule RabbitMQ.CLI.Core.DocGuide.Macros do

quote do
def unquote(fn_name)() do
unquote("https://#{domain}/#{path_segment}.html")
unquote("https://#{domain}/docs/#{path_segment}/")
end
end
end
Expand Down
2 changes: 1 addition & 1 deletion deps/rabbitmq_federation/include/rabbit_federation.hrl
Expand Up @@ -43,6 +43,6 @@
-define(DOWNSTREAM_VHOST_ARG, <<"x-downstream-vhost">>).
-define(DEF_PREFETCH, 1000).

-define(FEDERATION_GUIDE_URL, <<"https://rabbitmq.com/federation.html">>).
-define(FEDERATION_GUIDE_URL, <<"https://rabbitmq.com/docs/federation/">>).

-define(FEDERATION_PG_SCOPE, rabbitmq_federation_pg_scope).
2 changes: 1 addition & 1 deletion deps/rabbitmq_mqtt/include/rabbit_mqtt.hrl
Expand Up @@ -11,7 +11,7 @@
-define(PERSISTENT_TERM_MAILBOX_SOFT_LIMIT, mqtt_mailbox_soft_limit).
-define(PERSISTENT_TERM_EXCHANGE, mqtt_exchange).
-define(DEFAULT_MQTT_EXCHANGE, <<"amq.topic">>).
-define(MQTT_GUIDE_URL, <<"https://rabbitmq.com/mqtt.html">>).
-define(MQTT_GUIDE_URL, <<"https://rabbitmq.com/docs/mqtt/">>).

-define(MQTT_PROTO_V3, mqtt310).
-define(MQTT_PROTO_V4, mqtt311).
Expand Down
2 changes: 1 addition & 1 deletion deps/rabbitmq_shovel/include/rabbit_shovel.hrl
Expand Up @@ -28,4 +28,4 @@
-define(DEFAULT_ACK_MODE, on_confirm).
-define(DEFAULT_RECONNECT_DELAY, 5).

-define(SHOVEL_GUIDE_URL, <<"https://rabbitmq.com/shovel.html">>).
-define(SHOVEL_GUIDE_URL, <<"https://rabbitmq.com/docs/shovel">>).
2 changes: 1 addition & 1 deletion deps/rabbitmq_stomp/include/rabbit_stomp.hrl
Expand Up @@ -39,6 +39,6 @@
ssl_cipher,
ssl_hash]).

-define(STOMP_GUIDE_URL, <<"https://rabbitmq.com/stomp.html">>).
-define(STOMP_GUIDE_URL, <<"https://rabbitmq.com/docs/stomp">>).

-define(DEFAULT_MAX_FRAME_SIZE, 4 * 1024 * 1024).
Expand Up @@ -168,7 +168,7 @@ usage_additional() ->
<<"The initial cluster size of partition streams.">>]].

usage_doc_guides() ->
[?STREAM_GUIDE_URL].
[?STREAMS_GUIDE_URL].

run([SuperStream],
#{node := NodeName,
Expand Down
Expand Up @@ -58,7 +58,7 @@ usage_additional() ->
[<<"--vhost <vhost>">>, <<"The virtual host of the super stream.">>]].

usage_doc_guides() ->
[?STREAM_GUIDE_URL].
[?STREAMS_GUIDE_URL].

run([SuperStream],
#{node := NodeName,
Expand Down
Expand Up @@ -79,7 +79,7 @@ usage_additional() ->
[{<<"<column>">>, <<Prefix/binary, InfoItems/binary>>}].

usage_doc_guides() ->
[?STREAM_GUIDE_URL].
[?STREAMS_GUIDE_URL].

run(Args,
#{node := NodeName,
Expand Down
Expand Up @@ -83,7 +83,7 @@ usage_additional() ->
[{<<"<column>">>, <<Prefix/binary, InfoItems/binary>>}].

usage_doc_guides() ->
[?STREAM_GUIDE_URL].
[?STREAMS_GUIDE_URL].

run(Args,
#{node := NodeName,
Expand Down
Expand Up @@ -82,7 +82,7 @@ usage_additional() ->
[{<<"<column>">>, <<Prefix/binary, InfoItems/binary>>}].

usage_doc_guides() ->
[?STREAM_GUIDE_URL].
[?STREAMS_GUIDE_URL].

run(Args,
#{node := NodeName,
Expand Down
Expand Up @@ -86,7 +86,7 @@ usage_additional() ->
[{<<"<column>">>, <<Prefix/binary, InfoItems/binary>>}].

usage_doc_guides() ->
[?STREAM_GUIDE_URL].
[?STREAMS_GUIDE_URL].

run(Args,
#{node := NodeName,
Expand Down
Expand Up @@ -82,7 +82,7 @@ usage_additional() ->
[{<<"<column>">>, <<Prefix/binary, InfoItems/binary>>}].

usage_doc_guides() ->
[?STREAM_GUIDE_URL].
[?STREAMS_GUIDE_URL].

run(Args,
#{node := NodeName,
Expand Down
Expand Up @@ -91,7 +91,7 @@ usage_additional() ->
<<"The virtual host of the stream.">>]].

usage_doc_guides() ->
[?STREAM_GUIDE_URL].
[?STREAMS_GUIDE_URL].

run([Stream],
#{node := NodeName,
Expand Down
2 changes: 1 addition & 1 deletion deps/rabbitmq_stream_common/include/rabbit_stream.hrl
Expand Up @@ -152,4 +152,4 @@
state
]).

-define(STREAM_GUIDE_URL, <<"https://rabbitmq.com/stream.html">>).
-define(STREAMS_GUIDE_URL, <<"https://rabbitmq.com/docs/streams">>).

0 comments on commit 33166f8

Please sign in to comment.