From 68e31e2495c2dc805229011d9a29eb7bee038fc3 Mon Sep 17 00:00:00 2001 From: FANNG Date: Wed, 22 Jan 2025 11:53:55 +0800 Subject: [PATCH] [#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 af6cfcd2d9f..29ec663e7d8 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("""(? val text = matchResult.groupValues[1]