From a550a1c55cba809268db975d310dea522c65222f Mon Sep 17 00:00:00 2001 From: Badlop Date: Wed, 13 Mar 2024 17:50:08 +0100 Subject: [PATCH] Fix documentation links to new URLs generated by MkDocs --- src/mod_conversejs.erl | 4 ++-- src/mod_host_meta.erl | 2 +- src/mod_http_api.erl | 2 +- src/mod_http_upload.erl | 2 +- src/mod_register_web.erl | 2 +- src/mod_sip.erl | 2 +- 6 files changed, 7 insertions(+), 7 deletions(-) diff --git a/src/mod_conversejs.erl b/src/mod_conversejs.erl index a5682e50a..3ae7d9747 100644 --- a/src/mod_conversejs.erl +++ b/src/mod_conversejs.erl @@ -256,9 +256,9 @@ mod_doc() -> ?T("Several options were improved in ejabberd 22.05."), "", ?T("To use this module, in addition to adding it to the 'modules' " "section, you must also enable it in 'listen' -> 'ejabberd_http' -> " - "http://../listen-options/#request-handlers[request_handlers]."), "", + "http://../listen-options/#request_handlers[request_handlers]."), "", ?T("Make sure either 'mod_bosh' or 'ejabberd_http_ws' " - "http://../listen-options/#request-handlers[request_handlers] " + "http://../listen-options/#request_handlers[request_handlers] " "are enabled."), "", ?T("When 'conversejs_css' and 'conversejs_script' are 'auto', " "by default they point to the public Converse client.") diff --git a/src/mod_host_meta.erl b/src/mod_host_meta.erl index e1f7f141b..43efdcf9e 100644 --- a/src/mod_host_meta.erl +++ b/src/mod_host_meta.erl @@ -214,7 +214,7 @@ mod_doc() -> ?T("This module is available since ejabberd 22.05."), "", ?T("To use this module, in addition to adding it to the 'modules' " "section, you must also enable it in 'listen' -> 'ejabberd_http' -> " - "http://../listen-options/#request-handlers[request_handlers]."), "", + "http://../listen-options/#request_handlers[request_handlers]."), "", ?T("Notice it only works if ejabberd_http has tls enabled.")], example => ["listen:", diff --git a/src/mod_http_api.erl b/src/mod_http_api.erl index 50efb2859..77055eafa 100644 --- a/src/mod_http_api.erl +++ b/src/mod_http_api.erl @@ -538,7 +538,7 @@ mod_doc() -> "commands using JSON data."), "", ?T("To use this module, in addition to adding it to the 'modules' " "section, you must also enable it in 'listen' -> 'ejabberd_http' -> " - "http://../listen-options/#request-handlers[request_handlers]."), "", + "http://../listen-options/#request_handlers[request_handlers]."), "", ?T("To use a specific API version N, when defining the URL path " "in the request_handlers, add a 'vN'. " "For example: '/api/v2: mod_http_api'"), "", diff --git a/src/mod_http_upload.erl b/src/mod_http_upload.erl index 036be03f0..fba6cf7cd 100644 --- a/src/mod_http_upload.erl +++ b/src/mod_http_upload.erl @@ -234,7 +234,7 @@ mod_doc() -> "another URL from which that file can later be downloaded."), "", ?T("In order to use this module, it must be enabled " "in 'listen' -> 'ejabberd_http' -> " - "http://../listen-options/#request-handlers[request_handlers].")], + "http://../listen-options/#request_handlers[request_handlers].")], opts => [{host, #{desc => ?T("Deprecated. Use 'hosts' instead.")}}, diff --git a/src/mod_register_web.erl b/src/mod_register_web.erl index 0a84e170c..f50b6f2f3 100644 --- a/src/mod_register_web.erl +++ b/src/mod_register_web.erl @@ -625,7 +625,7 @@ mod_doc() -> "important to include the last / character in the URL, " "otherwise the subpages URL will be incorrect."), "", ?T("This module is enabled in 'listen' -> 'ejabberd_http' -> " - "http://../listen-options/#request-handlers[request_handlers], " + "http://../listen-options/#request_handlers[request_handlers], " "no need to enable in 'modules'."), ?T("The module depends on _`mod_register`_ where all the " "configuration is performed.")], diff --git a/src/mod_sip.erl b/src/mod_sip.erl index cc9e62744..16390ff72 100644 --- a/src/mod_sip.erl +++ b/src/mod_sip.erl @@ -383,7 +383,7 @@ mod_doc() -> ?T("NOTE: It is not enough to just load this module. " "You should also configure listeners and DNS records " "properly. For details see the section about the " - "http://../listen/#ejabberd-sip[ejabberd_sip] listen module " + "http://../listen/#ejabberd_sip[ejabberd_sip] listen module " "in the ejabberd Documentation.")], opts => [{always_record_route,