Skip to content

Commit 68e31e2

Browse files
authoredJan 22, 2025
[#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`
1 parent e56536b commit 68e31e2

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed
 

‎clients/client-python/build.gradle.kts

+2-2
Original file line numberDiff line numberDiff line change
@@ -122,10 +122,10 @@ fun generatePypiProjectHomePage() {
122122
// relative path of the images in the how-to-use-python-client.md file is incorrect. We need
123123
// to fix the relative path of the images/markdown to the absolute path.
124124
val content = outputFile.readText()
125-
val docsUrl = "https://datastrato.ai/docs/latest"
125+
val docsUrl = "https://gravitino.apache.org/docs/latest"
126126

127127
// Use regular expression to match the `[](./a/b/c.md?language=python)` or `[](./a/b/c.md#arg1)` link in the content
128-
// Convert `[](./a/b/c.md?language=python)` to `[](https://datastrato.ai/docs/latest/a/b/c/language=python)`
128+
// Convert `[](./a/b/c.md?language=python)` to `[](https://gravitino.apache.org/docs/latest/a/b/c/language=python)`
129129
val patternDocs = Regex("""(?<!!)\[([^\]]+)]\(\.\/([^)]+)\.md([?#][^)]+)?\)""")
130130
val contentUpdateDocs = patternDocs.replace(content) { matchResult ->
131131
val text = matchResult.groupValues[1]

0 commit comments

Comments
 (0)
Failed to load comments.