From a69b37b12af717b68909b382c73b6ff07d80b4d7 Mon Sep 17 00:00:00 2001 From: fanng Date: Tue, 21 Jan 2025 20:38:27 +0800 Subject: [PATCH 1/3] fix flink paimon document --- clients/client-python/build.gradle.kts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/clients/client-python/build.gradle.kts b/clients/client-python/build.gradle.kts index af6cfcd2d9f..c5ec7790432 100644 --- a/clients/client-python/build.gradle.kts +++ b/clients/client-python/build.gradle.kts @@ -31,6 +31,8 @@ pythonPlugin { pythonVersion.set(project.rootProject.extra["pythonVersion"].toString()) } +val gravitinoVersion: String = project.properties["version"] as String + fun deleteCacheDir(targetDir: String) { project.fileTree(project.projectDir).matching { include("**/$targetDir/**") @@ -122,7 +124,7 @@ 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/$gravitinoVersion" // 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)` From 0e06e22058544d0076893eb657fe2f5e51d4c836 Mon Sep 17 00:00:00 2001 From: fanng Date: Wed, 22 Jan 2025 10:57:14 +0800 Subject: [PATCH 2/3] fix flink paimon document --- clients/client-python/build.gradle.kts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/clients/client-python/build.gradle.kts b/clients/client-python/build.gradle.kts index c5ec7790432..794c226c08a 100644 --- a/clients/client-python/build.gradle.kts +++ b/clients/client-python/build.gradle.kts @@ -127,7 +127,7 @@ fun generatePypiProjectHomePage() { val docsUrl = "https://gravitino.apache.org/docs/$gravitinoVersion" // 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/$gravitinoVersion/a/b/c/language=python)` val patternDocs = Regex("""(? val text = matchResult.groupValues[1] From 4c64803963ddb0e69d6f4ad26941381e99ce713f Mon Sep 17 00:00:00 2001 From: fanng Date: Wed, 22 Jan 2025 11:09:53 +0800 Subject: [PATCH 3/3] fix flink paimon document --- clients/client-python/build.gradle.kts | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/clients/client-python/build.gradle.kts b/clients/client-python/build.gradle.kts index 794c226c08a..29ec663e7d8 100644 --- a/clients/client-python/build.gradle.kts +++ b/clients/client-python/build.gradle.kts @@ -31,8 +31,6 @@ pythonPlugin { pythonVersion.set(project.rootProject.extra["pythonVersion"].toString()) } -val gravitinoVersion: String = project.properties["version"] as String - fun deleteCacheDir(targetDir: String) { project.fileTree(project.projectDir).matching { include("**/$targetDir/**") @@ -124,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://gravitino.apache.org/docs/$gravitinoVersion" + 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://gravitino.apache.org/docs/$gravitinoVersion/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]