You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@kafka.apache.org by mi...@apache.org on 2022/10/05 14:26:01 UTC

[kafka-site] branch asf-site updated: MINOR: Fix link to Connect OpenAPI spec (#456)

This is an automated email from the ASF dual-hosted git repository.

mimaison pushed a commit to branch asf-site
in repository https://gitbox.apache.org/repos/asf/kafka-site.git


The following commit(s) were added to refs/heads/asf-site by this push:
     new feeb126a MINOR: Fix link to Connect OpenAPI spec (#456)
feeb126a is described below

commit feeb126a71c17762f6bd35f0ce01d12d120e3cec
Author: Mickael Maison <mi...@users.noreply.github.com>
AuthorDate: Wed Oct 5 15:58:35 2022 +0200

    MINOR: Fix link to Connect OpenAPI spec (#456)
---
 .htaccess       | 1 +
 33/connect.html | 2 +-
 2 files changed, 2 insertions(+), 1 deletion(-)

diff --git a/.htaccess b/.htaccess
index 64e998e6..49e7cf19 100644
--- a/.htaccess
+++ b/.htaccess
@@ -4,6 +4,7 @@ AddType text/html .html
 AddHandler server-parsed .html
 Redirect 301 /design.html /documentation#design
 
+RewriteRule ^/?(\d+)/generated/ - [S=4]
 RewriteRule ^/?(\d+)/documentation(\.html)? - [S=3]
 RewriteRule ^/?(\d+)/javadoc - [S=2]
 RewriteRule ^/?(\d+)/images/ - [S=1]
diff --git a/33/connect.html b/33/connect.html
index d13d25d3..5c3a21e9 100644
--- a/33/connect.html
+++ b/33/connect.html
@@ -327,7 +327,7 @@ listeners=http://localhost:8080,https://localhost:8443</pre>
         <li><code>GET /</code>- return basic information about the Kafka Connect cluster such as the version of the Connect worker that serves the REST request (including git commit ID of the source code) and the Kafka cluster ID that is connected to.
     </ul>
 
-    <p>For the complete specification of the REST API, see the <a href="generated/connect_rest.yaml">OpenAPI documentation</a></p>
+    <p>For the complete specification of the REST API, see the <a href="/{{version}}/generated/connect_rest.yaml">OpenAPI documentation</a></p>
 
     <h4><a id="connect_errorreporting" href="#connect_errorreporting">Error Reporting in Connect</a></h4>