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

fanng pushed a commit to branch branch-0.8
in repository https://gitbox.apache.org/repos/asf/gravitino.git


The following commit(s) were added to refs/heads/branch-0.8 by this push:
     new 199505499e [#6335] fix(python-client): Fix pypi document link error  
(#6344)
199505499e is described below

commit 199505499e8f996be0c5cd228550da843497c924
Author: github-actions[bot] 
<41898282+github-actions[bot]@users.noreply.github.com>
AuthorDate: Wed Jan 22 12:59:28 2025 +0800

    [#6335] fix(python-client): Fix pypi document link error  (#6344)
    
    ### 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`
    
    Co-authored-by: FANNG <[email protected]>
---
 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