Skip to content

Commit c4f7854

Browse files
committed
docs: update document suggestion
1 parent 8e64419 commit c4f7854

File tree

4 files changed

+4
-74
lines changed

4 files changed

+4
-74
lines changed

docs-source/src/en/guide/quick-start.md

Lines changed: 1 addition & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -18,25 +18,7 @@ project with integrated Kotlin environment dependencies.
1818
The dependencies of `PanguText` are published in **Maven Central** and our public repository.
1919
You can use the following method to configure repositories.
2020

21-
We recommend using Kotlin DSL as the Gradle build script language and [SweetDependency](https://github.com/HighCapable/SweetDependency)
22-
to manage dependencies.
23-
24-
#### SweetDependency (Recommended)
25-
26-
Configure repositories in your project's `SweetDependency` configuration file.
27-
28-
```yaml
29-
repositories:
30-
google:
31-
maven-central:
32-
# (Optional) You can add this URL to use our public repository
33-
# When Sonatype-OSS fails and cannot publish dependencies, this repository is added as a backup
34-
# For details, please visit: https://github.com/HighCapable/maven-repository
35-
highcapable-maven-releases:
36-
url: https://raw.githubusercontent.com/HighCapable/maven-repository/main/repository/releases
37-
```
38-
39-
#### Traditional Method
21+
We recommend using Kotlin DSL as the Gradle build script language.
4022

4123
Configure repositories in your project's `build.gradle.kts`.
4224

docs-source/src/en/library/android.md

Lines changed: 1 addition & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -12,24 +12,7 @@ This is the core dependency for the Android platform. When using `PanguText` on
1212

1313
You can add this module to your project using the following method.
1414

15-
### SweetDependency (Recommended)
16-
17-
Add dependency in your project's `SweetDependency` configuration file.
18-
19-
```yaml
20-
libraries:
21-
com.highcapable.pangutext:
22-
pangutext-android:
23-
version: +
24-
```
25-
26-
Configure dependency in your project's `build.gradle.kts`.
27-
28-
```kotlin
29-
implementation(com.highcapable.pangutext.pangutext.android)
30-
```
31-
32-
### Version Catalog
15+
### Version Catalog (Recommended)
3316

3417
Add dependency in your project's `gradle/libs.versions.toml`.
3518

docs-source/src/zh-cn/guide/quick-start.md

Lines changed: 1 addition & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -16,25 +16,7 @@
1616

1717
`PanguText` 的依赖发布在 **Maven Central** 和我们的公共存储库中,你可以使用如下方式配置存储库。
1818

19-
我们推荐使用 Kotlin DSL 作为 Gradle 构建脚本语言并推荐使用 [SweetDependency](https://github.com/HighCapable/SweetDependency) 来管理依赖。
20-
21-
#### SweetDependency (推荐)
22-
23-
在你的项目 `SweetDependency` 配置文件中配置存储库。
24-
25-
```yaml
26-
repositories:
27-
google:
28-
maven-central:
29-
# (可选) 你可以添加此 URL 以使用我们的公共存储库
30-
# 当 Sonatype-OSS 发生故障无法发布依赖时,此存储库作为备选进行添加
31-
# 详情请前往:https://github.com/HighCapable/maven-repository
32-
highcapable-maven-releases:
33-
# 中国大陆用户请将下方的 "raw.githubusercontent.com" 修改为 "raw.gitmirror.com"
34-
url: https://raw.githubusercontent.com/HighCapable/maven-repository/main/repository/releases
35-
```
36-
37-
#### 传统方式
19+
我们推荐使用 Kotlin DSL 作为 Gradle 构建脚本语言。
3820

3921
在你的项目 `build.gradle.kts` 中配置存储库。
4022

docs-source/src/zh-cn/library/android.md

Lines changed: 1 addition & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -12,24 +12,7 @@
1212

1313
你可以使用如下方式将此模块添加到你的项目中。
1414

15-
### SweetDependency (推荐)
16-
17-
在你的项目 `SweetDependency` 配置文件中添加依赖。
18-
19-
```yaml
20-
libraries:
21-
com.highcapable.pangutext:
22-
pangutext-android:
23-
version: +
24-
```
25-
26-
在你的项目 `build.gradle.kts` 中配置依赖。
27-
28-
```kotlin
29-
implementation(com.highcapable.pangutext.pangutext.android)
30-
```
31-
32-
### Version Catalog
15+
### Version Catalog (推荐)
3316

3417
在你的项目 `gradle/libs.versions.toml` 中添加依赖。
3518

0 commit comments

Comments
 (0)