Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CLI: update guide URLs to use the website new path structure #10704

Merged
merged 1 commit into from Mar 8, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
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">>).