You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@pulsar.apache.org by li...@apache.org on 2021/04/01 12:03:46 UTC

[pulsar] branch master updated: [Doc] Add workflow for "checking dead links" and update instructions for "generating license headers" (#10110)

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

liuyu pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/pulsar.git


The following commit(s) were added to refs/heads/master by this push:
     new efea8b2  [Doc] Add workflow for "checking dead links" and update instructions for "generating license headers"  (#10110)
efea8b2 is described below

commit efea8b20ae8c71d725745addb81ad68340874d2f
Author: Yu Liu <50...@users.noreply.github.com>
AuthorDate: Thu Apr 1 20:02:58 2021 +0800

    [Doc] Add workflow for "checking dead links" and update instructions for "generating license headers"  (#10110)
    
    * [Doc] Update instructions for generating license headers and fix broken links
    
    * update
    
    * update
    
    Co-authored-by: Anonymitaet <anonymitaet_hotmail.com>
---
 site2/README.md                                                  | 2 ++
 site2/docs/concepts-messaging.md                                 | 2 +-
 site2/docs/functions-develop.md                                  | 4 ++--
 site2/docs/sql-rest-api.md                                       | 2 +-
 site2/website/contributing.md                                    | 2 +-
 site2/website/versioned_docs/version-2.4.1/functions-develop.md  | 4 ++--
 site2/website/versioned_docs/version-2.4.2/functions-develop.md  | 4 ++--
 site2/website/versioned_docs/version-2.5.0/functions-develop.md  | 4 ++--
 site2/website/versioned_docs/version-2.5.0/sql-rest-api.md       | 2 +-
 site2/website/versioned_docs/version-2.5.1/functions-develop.md  | 4 ++--
 site2/website/versioned_docs/version-2.5.2/functions-develop.md  | 4 ++--
 site2/website/versioned_docs/version-2.6.0/concepts-messaging.md | 2 +-
 site2/website/versioned_docs/version-2.6.0/functions-develop.md  | 4 ++--
 site2/website/versioned_docs/version-2.6.0/sql-rest-api.md       | 2 +-
 site2/website/versioned_docs/version-2.6.1/concepts-messaging.md | 2 +-
 site2/website/versioned_docs/version-2.6.1/functions-develop.md  | 4 ++--
 site2/website/versioned_docs/version-2.6.1/sql-rest-api.md       | 2 +-
 site2/website/versioned_docs/version-2.6.2/concepts-messaging.md | 2 +-
 site2/website/versioned_docs/version-2.6.2/functions-develop.md  | 4 ++--
 site2/website/versioned_docs/version-2.6.2/sql-rest-api.md       | 2 +-
 site2/website/versioned_docs/version-2.6.3/concepts-messaging.md | 2 +-
 site2/website/versioned_docs/version-2.6.3/functions-develop.md  | 4 ++--
 site2/website/versioned_docs/version-2.6.3/sql-rest-api.md       | 2 +-
 site2/website/versioned_docs/version-2.7.0/concepts-messaging.md | 2 +-
 site2/website/versioned_docs/version-2.7.0/functions-develop.md  | 4 ++--
 site2/website/versioned_docs/version-2.7.0/sql-rest-api.md       | 2 +-
 site2/website/versioned_docs/version-2.7.1/concepts-messaging.md | 2 +-
 site2/website/versioned_docs/version-2.7.1/functions-develop.md  | 4 ++--
 site2/website/versioned_docs/version-2.7.1/sql-rest-api.md       | 2 +-
 29 files changed, 42 insertions(+), 40 deletions(-)

diff --git a/site2/README.md b/site2/README.md
index ced6e04..d887e41 100644
--- a/site2/README.md
+++ b/site2/README.md
@@ -54,6 +54,8 @@ If warning messages are shown as below, it means broken links exist.
 
 Fix the broken links manually and then send a pull request.
 
+Besides, you can use an automatic checker tool to crawl through the Pulsar website and identify dead links, for example, [Dr. Link Checker](https://www.drlinkcheck.com/).
+
 ## Documentation
 Pulsar documents are written in English. Documentation related pages are placed in the `/site2/docs` directory. All documentation pages are versioned. For more details, refer to [versioning](#versioning).
 
diff --git a/site2/docs/concepts-messaging.md b/site2/docs/concepts-messaging.md
index 964407a..67c507e 100644
--- a/site2/docs/concepts-messaging.md
+++ b/site2/docs/concepts-messaging.md
@@ -442,7 +442,7 @@ In non-persistent topics, brokers immediately deliver messages to all connected
 
 > With non-persistent topics, message data lives only in memory. If a message broker fails or message data can otherwise not be retrieved from memory, your message data may be lost. Use non-persistent topics only if you're *certain* that your use case requires it and can sustain it.
 
-By default, non-persistent topics are enabled on Pulsar brokers. You can disable them in the broker's [configuration](reference-configuration.md#broker-enableNonPersistentTopics). You can manage non-persistent topics using the [`pulsar-admin topics`](referencereference--pulsar-admin/#topics-1) interface.
+By default, non-persistent topics are enabled on Pulsar brokers. You can disable them in the broker's [configuration](reference-configuration.md#broker-enableNonPersistentTopics). You can manage non-persistent topics using the `pulsar-admin topics` command. For more information, see [`pulsar-admin`](http://pulsar.apache.org/tools/pulsar-admin/).
 
 ### Performance
 
diff --git a/site2/docs/functions-develop.md b/site2/docs/functions-develop.md
index a2f99af..d153c7f 100644
--- a/site2/docs/functions-develop.md
+++ b/site2/docs/functions-develop.md
@@ -99,7 +99,7 @@ func main() {
 	pf.Start(HandleRequest)
 }
 ```
-For complete code, see [here](https://github.com/apache/pulsar/blob/master/pulsar-function-go/examples/inputFunc.go#L20-L36).
+For complete code, see [here](https://github.com/apache/pulsar/blob/77cf09eafa4f1626a53a1fe2e65dd25f377c1127/pulsar-function-go/examples/inputFunc/inputFunc.go#L20-L36).
 
 <!--END_DOCUSAURUS_CODE_TABS-->
 
@@ -482,7 +482,7 @@ func contextFunc(ctx context.Context) {
 }
 ```
 
-For complete code, see [here](https://github.com/apache/pulsar/blob/master/pulsar-function-go/examples/contextFunc.go#L29-L34).
+For complete code, see [here](https://github.com/apache/pulsar/blob/77cf09eafa4f1626a53a1fe2e65dd25f377c1127/pulsar-function-go/examples/contextFunc/contextFunc.go#L29-L34).
 
 <!--END_DOCUSAURUS_CODE_TABS-->
 
diff --git a/site2/docs/sql-rest-api.md b/site2/docs/sql-rest-api.md
index ddf669e..e3db359 100644
--- a/site2/docs/sql-rest-api.md
+++ b/site2/docs/sql-rest-api.md
@@ -18,7 +18,7 @@ To request services, use explicit URL `http://presto.service:8081/v1`. You need
 X-Presto-User: username
 ```
 
-For more information about headers, refer to [PrestoHeaders](https://github.com/prestosql/presto/blob/master/presto-client/src/main/java/io/prestosql/client/PrestoHeaders.java).
+For more information about headers, refer to [PrestoHeaders](https://github.com/trinodb/trino).
 
 ## Schema
 
diff --git a/site2/website/contributing.md b/site2/website/contributing.md
index 3acd1db..5adcd61 100644
--- a/site2/website/contributing.md
+++ b/site2/website/contributing.md
@@ -187,7 +187,7 @@ All code contributed to Pulsar will be licensed under [Apache License V2](https:
 license header. You can add license header to your files by running following command:
 
 ```shell
-$ mvn license:format
+$ mvn initialize license:format
 ```
 
 ### Develop C++/Python Client
diff --git a/site2/website/versioned_docs/version-2.4.1/functions-develop.md b/site2/website/versioned_docs/version-2.4.1/functions-develop.md
index 4e63468..cc8d439 100644
--- a/site2/website/versioned_docs/version-2.4.1/functions-develop.md
+++ b/site2/website/versioned_docs/version-2.4.1/functions-develop.md
@@ -93,7 +93,7 @@ func main() {
 	pf.Start(HandleRequest)
 }
 ```
-For complete code, see [here](https://github.com/apache/pulsar/blob/master/pulsar-function-go/examples/inputFunc.go#L20-L36).
+For complete code, see [here](https://github.com/apache/pulsar/blob/77cf09eafa4f1626a53a1fe2e65dd25f377c1127/pulsar-function-go/examples/inputFunc/inputFunc.go#L20-L36).
 
 <!--END_DOCUSAURUS_CODE_TABS-->
 
@@ -459,7 +459,7 @@ func contextFunc(ctx context.Context) {
 }
 ```
 
-For complete code, see [here](https://github.com/apache/pulsar/blob/master/pulsar-function-go/examples/contextFunc.go#L29-L34).
+For complete code, see [here](https://github.com/apache/pulsar/blob/77cf09eafa4f1626a53a1fe2e65dd25f377c1127/pulsar-function-go/examples/contextFunc/contextFunc.go#L29-L34).
 
 <!--END_DOCUSAURUS_CODE_TABS-->
 
diff --git a/site2/website/versioned_docs/version-2.4.2/functions-develop.md b/site2/website/versioned_docs/version-2.4.2/functions-develop.md
index c378e20..bb8dbac 100644
--- a/site2/website/versioned_docs/version-2.4.2/functions-develop.md
+++ b/site2/website/versioned_docs/version-2.4.2/functions-develop.md
@@ -93,7 +93,7 @@ func main() {
 	pf.Start(HandleRequest)
 }
 ```
-For complete code, see [here](https://github.com/apache/pulsar/blob/master/pulsar-function-go/examples/inputFunc.go#L20-L36).
+For complete code, see [here](https://github.com/apache/pulsar/blob/77cf09eafa4f1626a53a1fe2e65dd25f377c1127/pulsar-function-go/examples/inputFunc/inputFunc.go#L20-L36).
 
 <!--END_DOCUSAURUS_CODE_TABS-->
 
@@ -459,7 +459,7 @@ func contextFunc(ctx context.Context) {
 }
 ```
 
-For complete code, see [here](https://github.com/apache/pulsar/blob/master/pulsar-function-go/examples/contextFunc.go#L29-L34).
+For complete code, see [here](https://github.com/apache/pulsar/blob/77cf09eafa4f1626a53a1fe2e65dd25f377c1127/pulsar-function-go/examples/contextFunc/contextFunc.go#L29-L34).
 
 <!--END_DOCUSAURUS_CODE_TABS-->
 
diff --git a/site2/website/versioned_docs/version-2.5.0/functions-develop.md b/site2/website/versioned_docs/version-2.5.0/functions-develop.md
index 9589c63..a239697 100644
--- a/site2/website/versioned_docs/version-2.5.0/functions-develop.md
+++ b/site2/website/versioned_docs/version-2.5.0/functions-develop.md
@@ -100,7 +100,7 @@ func main() {
 	pf.Start(HandleRequest)
 }
 ```
-For complete code, see [here](https://github.com/apache/pulsar/blob/master/pulsar-function-go/examples/inputFunc.go#L20-L36).
+For complete code, see [here](https://github.com/apache/pulsar/blob/77cf09eafa4f1626a53a1fe2e65dd25f377c1127/pulsar-function-go/examples/inputFunc/inputFunc.go#L20-L36).
 
 <!--END_DOCUSAURUS_CODE_TABS-->
 
@@ -469,7 +469,7 @@ func contextFunc(ctx context.Context) {
 }
 ```
 
-For complete code, see [here](https://github.com/apache/pulsar/blob/master/pulsar-function-go/examples/contextFunc.go#L29-L34).
+For complete code, see [here](https://github.com/apache/pulsar/blob/77cf09eafa4f1626a53a1fe2e65dd25f377c1127/pulsar-function-go/examples/contextFunc/contextFunc.go#L29-L34).
 
 <!--END_DOCUSAURUS_CODE_TABS-->
 
diff --git a/site2/website/versioned_docs/version-2.5.0/sql-rest-api.md b/site2/website/versioned_docs/version-2.5.0/sql-rest-api.md
index aa345f0..2cece5c 100644
--- a/site2/website/versioned_docs/version-2.5.0/sql-rest-api.md
+++ b/site2/website/versioned_docs/version-2.5.0/sql-rest-api.md
@@ -19,7 +19,7 @@ To request services, use explicit URL `http://presto.service:8081/v1`. You need
 X-Presto-User: username
 ```
 
-For more information about headers, refer to [PrestoHeaders](https://github.com/prestosql/presto/blob/master/presto-client/src/main/java/io/prestosql/client/PrestoHeaders.java).
+For more information about headers, refer to [PrestoHeaders](https://github.com/trinodb/trino).
 
 ## Schema
 
diff --git a/site2/website/versioned_docs/version-2.5.1/functions-develop.md b/site2/website/versioned_docs/version-2.5.1/functions-develop.md
index 4e5cd7a..9e7cd3c 100644
--- a/site2/website/versioned_docs/version-2.5.1/functions-develop.md
+++ b/site2/website/versioned_docs/version-2.5.1/functions-develop.md
@@ -100,7 +100,7 @@ func main() {
 	pf.Start(HandleRequest)
 }
 ```
-For complete code, see [here](https://github.com/apache/pulsar/blob/master/pulsar-function-go/examples/inputFunc.go#L20-L36).
+For complete code, see [here](https://github.com/apache/pulsar/blob/77cf09eafa4f1626a53a1fe2e65dd25f377c1127/pulsar-function-go/examples/inputFunc/inputFunc.go#L20-L36).
 
 <!--END_DOCUSAURUS_CODE_TABS-->
 
@@ -469,7 +469,7 @@ func contextFunc(ctx context.Context) {
 }
 ```
 
-For complete code, see [here](https://github.com/apache/pulsar/blob/master/pulsar-function-go/examples/contextFunc.go#L29-L34).
+For complete code, see [here](https://github.com/apache/pulsar/blob/77cf09eafa4f1626a53a1fe2e65dd25f377c1127/pulsar-function-go/examples/contextFunc/contextFunc.go#L29-L34).
 
 <!--END_DOCUSAURUS_CODE_TABS-->
 
diff --git a/site2/website/versioned_docs/version-2.5.2/functions-develop.md b/site2/website/versioned_docs/version-2.5.2/functions-develop.md
index af4b27e..43caf79 100644
--- a/site2/website/versioned_docs/version-2.5.2/functions-develop.md
+++ b/site2/website/versioned_docs/version-2.5.2/functions-develop.md
@@ -100,7 +100,7 @@ func main() {
 	pf.Start(HandleRequest)
 }
 ```
-For complete code, see [here](https://github.com/apache/pulsar/blob/master/pulsar-function-go/examples/inputFunc.go#L20-L36).
+For complete code, see [here](https://github.com/apache/pulsar/blob/77cf09eafa4f1626a53a1fe2e65dd25f377c1127/pulsar-function-go/examples/inputFunc/inputFunc.go#L20-L36).
 
 <!--END_DOCUSAURUS_CODE_TABS-->
 
@@ -469,7 +469,7 @@ func contextFunc(ctx context.Context) {
 }
 ```
 
-For complete code, see [here](https://github.com/apache/pulsar/blob/master/pulsar-function-go/examples/contextFunc.go#L29-L34).
+For complete code, see [here](https://github.com/apache/pulsar/blob/77cf09eafa4f1626a53a1fe2e65dd25f377c1127/pulsar-function-go/examples/contextFunc/contextFunc.go#L29-L34).
 
 <!--END_DOCUSAURUS_CODE_TABS-->
 
diff --git a/site2/website/versioned_docs/version-2.6.0/concepts-messaging.md b/site2/website/versioned_docs/version-2.6.0/concepts-messaging.md
index 862dc9a..e7aa3c5 100644
--- a/site2/website/versioned_docs/version-2.6.0/concepts-messaging.md
+++ b/site2/website/versioned_docs/version-2.6.0/concepts-messaging.md
@@ -385,7 +385,7 @@ In non-persistent topics, brokers immediately deliver messages to all connected
 
 > With non-persistent topics, message data lives only in memory. If a message broker fails or message data can otherwise not be retrieved from memory, your message data may be lost. Use non-persistent topics only if you're *certain* that your use case requires it and can sustain it.
 
-By default, non-persistent topics are enabled on Pulsar brokers. You can disable them in the broker's [configuration](reference-configuration.md#broker-enableNonPersistentTopics). You can manage non-persistent topics using the [`pulsar-admin topics`](referencereference--pulsar-admin/#topics-1) interface.
+By default, non-persistent topics are enabled on Pulsar brokers. You can disable them in the broker's [configuration](reference-configuration.md#broker-enableNonPersistentTopics). You can manage non-persistent topics using the `pulsar-admin topics` command. For more information, see [`pulsar-admin`](http://pulsar.apache.org/tools/pulsar-admin/).
 
 ### Performance
 
diff --git a/site2/website/versioned_docs/version-2.6.0/functions-develop.md b/site2/website/versioned_docs/version-2.6.0/functions-develop.md
index ccc45c2..b0432e8 100644
--- a/site2/website/versioned_docs/version-2.6.0/functions-develop.md
+++ b/site2/website/versioned_docs/version-2.6.0/functions-develop.md
@@ -100,7 +100,7 @@ func main() {
 	pf.Start(HandleRequest)
 }
 ```
-For complete code, see [here](https://github.com/apache/pulsar/blob/master/pulsar-function-go/examples/inputFunc.go#L20-L36).
+For complete code, see [here](https://github.com/apache/pulsar/blob/77cf09eafa4f1626a53a1fe2e65dd25f377c1127/pulsar-function-go/examples/inputFunc/inputFunc.go#L20-L36).
 
 <!--END_DOCUSAURUS_CODE_TABS-->
 
@@ -470,7 +470,7 @@ func contextFunc(ctx context.Context) {
 }
 ```
 
-For complete code, see [here](https://github.com/apache/pulsar/blob/master/pulsar-function-go/examples/contextFunc.go#L29-L34).
+For complete code, see [here](https://github.com/apache/pulsar/blob/77cf09eafa4f1626a53a1fe2e65dd25f377c1127/pulsar-function-go/examples/contextFunc/contextFunc.go#L29-L34).
 
 <!--END_DOCUSAURUS_CODE_TABS-->
 
diff --git a/site2/website/versioned_docs/version-2.6.0/sql-rest-api.md b/site2/website/versioned_docs/version-2.6.0/sql-rest-api.md
index 9a9e80b..67a0bd5 100644
--- a/site2/website/versioned_docs/version-2.6.0/sql-rest-api.md
+++ b/site2/website/versioned_docs/version-2.6.0/sql-rest-api.md
@@ -19,7 +19,7 @@ To request services, use explicit URL `http://presto.service:8081/v1`. You need
 X-Presto-User: username
 ```
 
-For more information about headers, refer to [PrestoHeaders](https://github.com/prestosql/presto/blob/master/presto-client/src/main/java/io/prestosql/client/PrestoHeaders.java).
+For more information about headers, refer to [PrestoHeaders](https://github.com/trinodb/trino).
 
 ## Schema
 
diff --git a/site2/website/versioned_docs/version-2.6.1/concepts-messaging.md b/site2/website/versioned_docs/version-2.6.1/concepts-messaging.md
index 635e51d..41e91e2 100644
--- a/site2/website/versioned_docs/version-2.6.1/concepts-messaging.md
+++ b/site2/website/versioned_docs/version-2.6.1/concepts-messaging.md
@@ -406,7 +406,7 @@ In non-persistent topics, brokers immediately deliver messages to all connected
 
 > With non-persistent topics, message data lives only in memory. If a message broker fails or message data can otherwise not be retrieved from memory, your message data may be lost. Use non-persistent topics only if you're *certain* that your use case requires it and can sustain it.
 
-By default, non-persistent topics are enabled on Pulsar brokers. You can disable them in the broker's [configuration](reference-configuration.md#broker-enableNonPersistentTopics). You can manage non-persistent topics using the [`pulsar-admin topics`](referencereference--pulsar-admin/#topics-1) interface.
+By default, non-persistent topics are enabled on Pulsar brokers. You can disable them in the broker's [configuration](reference-configuration.md#broker-enableNonPersistentTopics). You can manage non-persistent topics using the `pulsar-admin topics` command. For more information, see [`pulsar-admin`](http://pulsar.apache.org/tools/pulsar-admin/).
 
 ### Performance
 
diff --git a/site2/website/versioned_docs/version-2.6.1/functions-develop.md b/site2/website/versioned_docs/version-2.6.1/functions-develop.md
index f04ae38..7a9a8e5 100644
--- a/site2/website/versioned_docs/version-2.6.1/functions-develop.md
+++ b/site2/website/versioned_docs/version-2.6.1/functions-develop.md
@@ -100,7 +100,7 @@ func main() {
 	pf.Start(HandleRequest)
 }
 ```
-For complete code, see [here](https://github.com/apache/pulsar/blob/master/pulsar-function-go/examples/inputFunc.go#L20-L36).
+For complete code, see [here](https://github.com/apache/pulsar/blob/77cf09eafa4f1626a53a1fe2e65dd25f377c1127/pulsar-function-go/examples/inputFunc/inputFunc.go#L20-L36).
 
 <!--END_DOCUSAURUS_CODE_TABS-->
 
@@ -466,7 +466,7 @@ func contextFunc(ctx context.Context) {
 }
 ```
 
-For complete code, see [here](https://github.com/apache/pulsar/blob/master/pulsar-function-go/examples/contextFunc.go#L29-L34).
+For complete code, see [here](https://github.com/apache/pulsar/blob/77cf09eafa4f1626a53a1fe2e65dd25f377c1127/pulsar-function-go/examples/contextFunc/contextFunc.go#L29-L34).
 
 <!--END_DOCUSAURUS_CODE_TABS-->
 
diff --git a/site2/website/versioned_docs/version-2.6.1/sql-rest-api.md b/site2/website/versioned_docs/version-2.6.1/sql-rest-api.md
index e695a97..1cc3af9 100644
--- a/site2/website/versioned_docs/version-2.6.1/sql-rest-api.md
+++ b/site2/website/versioned_docs/version-2.6.1/sql-rest-api.md
@@ -19,7 +19,7 @@ To request services, use explicit URL `http://presto.service:8081/v1`. You need
 X-Presto-User: username
 ```
 
-For more information about headers, refer to [PrestoHeaders](https://github.com/prestosql/presto/blob/master/presto-client/src/main/java/io/prestosql/client/PrestoHeaders.java).
+For more information about headers, refer to [PrestoHeaders](https://github.com/trinodb/trino).
 
 ## Schema
 
diff --git a/site2/website/versioned_docs/version-2.6.2/concepts-messaging.md b/site2/website/versioned_docs/version-2.6.2/concepts-messaging.md
index 90b0774..03b0757 100644
--- a/site2/website/versioned_docs/version-2.6.2/concepts-messaging.md
+++ b/site2/website/versioned_docs/version-2.6.2/concepts-messaging.md
@@ -406,7 +406,7 @@ In non-persistent topics, brokers immediately deliver messages to all connected
 
 > With non-persistent topics, message data lives only in memory. If a message broker fails or message data can otherwise not be retrieved from memory, your message data may be lost. Use non-persistent topics only if you're *certain* that your use case requires it and can sustain it.
 
-By default, non-persistent topics are enabled on Pulsar brokers. You can disable them in the broker's [configuration](reference-configuration.md#broker-enableNonPersistentTopics). You can manage non-persistent topics using the [`pulsar-admin topics`](referencereference--pulsar-admin/#topics-1) interface.
+By default, non-persistent topics are enabled on Pulsar brokers. You can disable them in the broker's [configuration](reference-configuration.md#broker-enableNonPersistentTopics). You can manage non-persistent topics using the `pulsar-admin topics` command. For more information, see [`pulsar-admin`](http://pulsar.apache.org/tools/pulsar-admin/).
 
 ### Performance
 
diff --git a/site2/website/versioned_docs/version-2.6.2/functions-develop.md b/site2/website/versioned_docs/version-2.6.2/functions-develop.md
index 7b2e2cb..126bad7 100644
--- a/site2/website/versioned_docs/version-2.6.2/functions-develop.md
+++ b/site2/website/versioned_docs/version-2.6.2/functions-develop.md
@@ -100,7 +100,7 @@ func main() {
 	pf.Start(HandleRequest)
 }
 ```
-For complete code, see [here](https://github.com/apache/pulsar/blob/master/pulsar-function-go/examples/inputFunc.go#L20-L36).
+For complete code, see [here](https://github.com/apache/pulsar/blob/77cf09eafa4f1626a53a1fe2e65dd25f377c1127/pulsar-function-go/examples/inputFunc/inputFunc.go#L20-L36).
 
 <!--END_DOCUSAURUS_CODE_TABS-->
 
@@ -466,7 +466,7 @@ func contextFunc(ctx context.Context) {
 }
 ```
 
-For complete code, see [here](https://github.com/apache/pulsar/blob/master/pulsar-function-go/examples/contextFunc.go#L29-L34).
+For complete code, see [here](https://github.com/apache/pulsar/blob/77cf09eafa4f1626a53a1fe2e65dd25f377c1127/pulsar-function-go/examples/contextFunc/contextFunc.go#L29-L34).
 
 <!--END_DOCUSAURUS_CODE_TABS-->
 
diff --git a/site2/website/versioned_docs/version-2.6.2/sql-rest-api.md b/site2/website/versioned_docs/version-2.6.2/sql-rest-api.md
index 33faf2a..2388215 100644
--- a/site2/website/versioned_docs/version-2.6.2/sql-rest-api.md
+++ b/site2/website/versioned_docs/version-2.6.2/sql-rest-api.md
@@ -19,7 +19,7 @@ To request services, use explicit URL `http://presto.service:8081/v1`. You need
 X-Presto-User: username
 ```
 
-For more information about headers, refer to [PrestoHeaders](https://github.com/prestosql/presto/blob/master/presto-client/src/main/java/io/prestosql/client/PrestoHeaders.java).
+For more information about headers, refer to [PrestoHeaders](https://github.com/trinodb/trino).
 
 ## Schema
 
diff --git a/site2/website/versioned_docs/version-2.6.3/concepts-messaging.md b/site2/website/versioned_docs/version-2.6.3/concepts-messaging.md
index 9d44449..212b638 100644
--- a/site2/website/versioned_docs/version-2.6.3/concepts-messaging.md
+++ b/site2/website/versioned_docs/version-2.6.3/concepts-messaging.md
@@ -406,7 +406,7 @@ In non-persistent topics, brokers immediately deliver messages to all connected
 
 > With non-persistent topics, message data lives only in memory. If a message broker fails or message data can otherwise not be retrieved from memory, your message data may be lost. Use non-persistent topics only if you're *certain* that your use case requires it and can sustain it.
 
-By default, non-persistent topics are enabled on Pulsar brokers. You can disable them in the broker's [configuration](reference-configuration.md#broker-enableNonPersistentTopics). You can manage non-persistent topics using the [`pulsar-admin topics`](referencereference--pulsar-admin/#topics-1) interface.
+By default, non-persistent topics are enabled on Pulsar brokers. You can disable them in the broker's [configuration](reference-configuration.md#broker-enableNonPersistentTopics). You can manage non-persistent topics using the `pulsar-admin topics` command. For more information, see [`pulsar-admin`](http://pulsar.apache.org/tools/pulsar-admin/).
 
 ### Performance
 
diff --git a/site2/website/versioned_docs/version-2.6.3/functions-develop.md b/site2/website/versioned_docs/version-2.6.3/functions-develop.md
index 917c6e6..2e913fc 100644
--- a/site2/website/versioned_docs/version-2.6.3/functions-develop.md
+++ b/site2/website/versioned_docs/version-2.6.3/functions-develop.md
@@ -100,7 +100,7 @@ func main() {
 	pf.Start(HandleRequest)
 }
 ```
-For complete code, see [here](https://github.com/apache/pulsar/blob/master/pulsar-function-go/examples/inputFunc.go#L20-L36).
+For complete code, see [here](https://github.com/apache/pulsar/blob/77cf09eafa4f1626a53a1fe2e65dd25f377c1127/pulsar-function-go/examples/inputFunc/inputFunc.go#L20-L36).
 
 <!--END_DOCUSAURUS_CODE_TABS-->
 
@@ -466,7 +466,7 @@ func contextFunc(ctx context.Context) {
 }
 ```
 
-For complete code, see [here](https://github.com/apache/pulsar/blob/master/pulsar-function-go/examples/contextFunc.go#L29-L34).
+For complete code, see [here](https://github.com/apache/pulsar/blob/77cf09eafa4f1626a53a1fe2e65dd25f377c1127/pulsar-function-go/examples/contextFunc/contextFunc.go#L29-L34).
 
 <!--END_DOCUSAURUS_CODE_TABS-->
 
diff --git a/site2/website/versioned_docs/version-2.6.3/sql-rest-api.md b/site2/website/versioned_docs/version-2.6.3/sql-rest-api.md
index 3f68e29..ea946b1 100644
--- a/site2/website/versioned_docs/version-2.6.3/sql-rest-api.md
+++ b/site2/website/versioned_docs/version-2.6.3/sql-rest-api.md
@@ -19,7 +19,7 @@ To request services, use explicit URL `http://presto.service:8081/v1`. You need
 X-Presto-User: username
 ```
 
-For more information about headers, refer to [PrestoHeaders](https://github.com/prestosql/presto/blob/master/presto-client/src/main/java/io/prestosql/client/PrestoHeaders.java).
+For more information about headers, refer to [PrestoHeaders](https://github.com/trinodb/trino).
 
 ## Schema
 
diff --git a/site2/website/versioned_docs/version-2.7.0/concepts-messaging.md b/site2/website/versioned_docs/version-2.7.0/concepts-messaging.md
index cec4149..d4158c45 100644
--- a/site2/website/versioned_docs/version-2.7.0/concepts-messaging.md
+++ b/site2/website/versioned_docs/version-2.7.0/concepts-messaging.md
@@ -409,7 +409,7 @@ In non-persistent topics, brokers immediately deliver messages to all connected
 
 > With non-persistent topics, message data lives only in memory. If a message broker fails or message data can otherwise not be retrieved from memory, your message data may be lost. Use non-persistent topics only if you're *certain* that your use case requires it and can sustain it.
 
-By default, non-persistent topics are enabled on Pulsar brokers. You can disable them in the broker's [configuration](reference-configuration.md#broker-enableNonPersistentTopics). You can manage non-persistent topics using the [`pulsar-admin topics`](referencereference--pulsar-admin/#topics-1) interface.
+By default, non-persistent topics are enabled on Pulsar brokers. You can disable them in the broker's [configuration](reference-configuration.md#broker-enableNonPersistentTopics). You can manage non-persistent topics using the `pulsar-admin topics` command. For more information, see [`pulsar-admin`](http://pulsar.apache.org/tools/pulsar-admin/).
 
 ### Performance
 
diff --git a/site2/website/versioned_docs/version-2.7.0/functions-develop.md b/site2/website/versioned_docs/version-2.7.0/functions-develop.md
index 21b0712..97cb4ff 100644
--- a/site2/website/versioned_docs/version-2.7.0/functions-develop.md
+++ b/site2/website/versioned_docs/version-2.7.0/functions-develop.md
@@ -100,7 +100,7 @@ func main() {
 	pf.Start(HandleRequest)
 }
 ```
-For complete code, see [here](https://github.com/apache/pulsar/blob/master/pulsar-function-go/examples/inputFunc.go#L20-L36).
+For complete code, see [here](https://github.com/apache/pulsar/blob/77cf09eafa4f1626a53a1fe2e65dd25f377c1127/pulsar-function-go/examples/inputFunc/inputFunc.go#L20-L36).
 
 <!--END_DOCUSAURUS_CODE_TABS-->
 
@@ -480,7 +480,7 @@ func contextFunc(ctx context.Context) {
 }
 ```
 
-For complete code, see [here](https://github.com/apache/pulsar/blob/master/pulsar-function-go/examples/contextFunc.go#L29-L34).
+For complete code, see [here](https://github.com/apache/pulsar/blob/77cf09eafa4f1626a53a1fe2e65dd25f377c1127/pulsar-function-go/examples/contextFunc/contextFunc.go#L29-L34).
 
 <!--END_DOCUSAURUS_CODE_TABS-->
 
diff --git a/site2/website/versioned_docs/version-2.7.0/sql-rest-api.md b/site2/website/versioned_docs/version-2.7.0/sql-rest-api.md
index c91ec2e..12116eb 100644
--- a/site2/website/versioned_docs/version-2.7.0/sql-rest-api.md
+++ b/site2/website/versioned_docs/version-2.7.0/sql-rest-api.md
@@ -19,7 +19,7 @@ To request services, use explicit URL `http://presto.service:8081/v1`. You need
 X-Presto-User: username
 ```
 
-For more information about headers, refer to [PrestoHeaders](https://github.com/prestosql/presto/blob/master/presto-client/src/main/java/io/prestosql/client/PrestoHeaders.java).
+For more information about headers, refer to [PrestoHeaders](https://github.com/trinodb/trino).
 
 ## Schema
 
diff --git a/site2/website/versioned_docs/version-2.7.1/concepts-messaging.md b/site2/website/versioned_docs/version-2.7.1/concepts-messaging.md
index 2a0519d..b504cbc 100644
--- a/site2/website/versioned_docs/version-2.7.1/concepts-messaging.md
+++ b/site2/website/versioned_docs/version-2.7.1/concepts-messaging.md
@@ -409,7 +409,7 @@ In non-persistent topics, brokers immediately deliver messages to all connected
 
 > With non-persistent topics, message data lives only in memory. If a message broker fails or message data can otherwise not be retrieved from memory, your message data may be lost. Use non-persistent topics only if you're *certain* that your use case requires it and can sustain it.
 
-By default, non-persistent topics are enabled on Pulsar brokers. You can disable them in the broker's [configuration](reference-configuration.md#broker-enableNonPersistentTopics). You can manage non-persistent topics using the [`pulsar-admin topics`](referencereference--pulsar-admin/#topics-1) interface.
+By default, non-persistent topics are enabled on Pulsar brokers. You can disable them in the broker's [configuration](reference-configuration.md#broker-enableNonPersistentTopics). You can manage non-persistent topics using the `pulsar-admin topics` command. For more information, see [`pulsar-admin`](http://pulsar.apache.org/tools/pulsar-admin/).
 
 ### Performance
 
diff --git a/site2/website/versioned_docs/version-2.7.1/functions-develop.md b/site2/website/versioned_docs/version-2.7.1/functions-develop.md
index 36e0758..a03cdde 100644
--- a/site2/website/versioned_docs/version-2.7.1/functions-develop.md
+++ b/site2/website/versioned_docs/version-2.7.1/functions-develop.md
@@ -100,7 +100,7 @@ func main() {
 	pf.Start(HandleRequest)
 }
 ```
-For complete code, see [here](https://github.com/apache/pulsar/blob/master/pulsar-function-go/examples/inputFunc.go#L20-L36).
+For complete code, see [here](https://github.com/apache/pulsar/blob/77cf09eafa4f1626a53a1fe2e65dd25f377c1127/pulsar-function-go/examples/inputFunc/inputFunc.go#L20-L36).
 
 <!--END_DOCUSAURUS_CODE_TABS-->
 
@@ -483,7 +483,7 @@ func contextFunc(ctx context.Context) {
 }
 ```
 
-For complete code, see [here](https://github.com/apache/pulsar/blob/master/pulsar-function-go/examples/contextFunc.go#L29-L34).
+For complete code, see [here](https://github.com/apache/pulsar/blob/77cf09eafa4f1626a53a1fe2e65dd25f377c1127/pulsar-function-go/examples/contextFunc/contextFunc.go#L29-L34).
 
 <!--END_DOCUSAURUS_CODE_TABS-->
 
diff --git a/site2/website/versioned_docs/version-2.7.1/sql-rest-api.md b/site2/website/versioned_docs/version-2.7.1/sql-rest-api.md
index f954b32..6fee6dc 100644
--- a/site2/website/versioned_docs/version-2.7.1/sql-rest-api.md
+++ b/site2/website/versioned_docs/version-2.7.1/sql-rest-api.md
@@ -19,7 +19,7 @@ To request services, use explicit URL `http://presto.service:8081/v1`. You need
 X-Presto-User: username
 ```
 
-For more information about headers, refer to [PrestoHeaders](https://github.com/prestosql/presto/blob/master/presto-client/src/main/java/io/prestosql/client/PrestoHeaders.java).
+For more information about headers, refer to [PrestoHeaders](https://github.com/trinodb/trino).
 
 ## Schema