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

roryqi pushed a commit to branch ISSUE-6353
in repository https://gitbox.apache.org/repos/asf/gravitino.git

commit 2e7d3506d8d5f54ca0c01f9eeaca49a82ba5ba18
Author: FANNG <xiaoj...@datastrato.com>
AuthorDate: Wed Jan 22 11:53:55 2025 +0800

    [#6335] fix(python-client): Fix pypi document link error  (#6342)
    
    ### What changes were proposed in this pull request?
    
    Correct the Gravitino document link from
    `https://datastrato.ai/docs/latest` to
    `https://gravitino.apache.org/docs/$gravitinoVersion`, suppose the
    publish version is `0.8.0-incubating`, the link will start with
    `https://gravitino.apache.org/docs/0.8.0-incubating`
    
    ### Why are the changes needed?
    
    Fix: #6335
    
    ### Does this PR introduce _any_ user-facing change?
    no
    
    ### How was this patch tested?
    
    run `./gradlew :clients:client-python:distribution -x test` and check
    `README`
---
 clients/client-python/build.gradle.kts | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/clients/client-python/build.gradle.kts 
b/clients/client-python/build.gradle.kts
index af6cfcd2d9..29ec663e7d 100644
--- a/clients/client-python/build.gradle.kts
+++ b/clients/client-python/build.gradle.kts
@@ -122,10 +122,10 @@ fun generatePypiProjectHomePage() {
     // relative path of the images in the how-to-use-python-client.md file is 
incorrect. We need
     // to fix the relative path of the images/markdown to the absolute path.
     val content = outputFile.readText()
-    val docsUrl = "https://datastrato.ai/docs/latest";
+    val docsUrl = "https://gravitino.apache.org/docs/latest";
 
     // Use regular expression to match the `[](./a/b/c.md?language=python)` or 
`[](./a/b/c.md#arg1)` link in the content
-    // Convert `[](./a/b/c.md?language=python)` to 
`[](https://datastrato.ai/docs/latest/a/b/c/language=python)`
+    // Convert `[](./a/b/c.md?language=python)` to 
`[](https://gravitino.apache.org/docs/latest/a/b/c/language=python)`
     val patternDocs = 
Regex("""(?<!!)\[([^\]]+)]\(\.\/([^)]+)\.md([?#][^)]+)?\)""")
     val contentUpdateDocs = patternDocs.replace(content) { matchResult ->
       val text = matchResult.groupValues[1]

Reply via email to