Skip to content

Commit 935365a

Browse files
Update index.md
1 parent b708b60 commit 935365a

File tree

1 file changed

+15
-18
lines changed

1 file changed

+15
-18
lines changed

docs/lab/smt/index.md

Lines changed: 15 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -3,20 +3,21 @@ toc: content
33
nav:
44
path: /lab/smt
55
---
6+
67
# smt
78

8-
| Project Stage | CI | Codecov |
9-
|---------------|-----------------|-------------------------------------------|
10-
| ![Stage] | ![CI][Badge-CI] | [![codecov][Badge-Codecov]][Link-Codecov] |
9+
| CI | Codecov |
10+
|-----------------|-------------------------------------------|
11+
| ![CI][Badge-CI] | [![codecov][Badge-Codecov]][Link-Codecov] |
1112

12-
| Scaladex | Jetbrains Plugin | Nexus Snapshots |
13-
|---------------------------------------------------------------|-----------------------------------------------|------------------------------------------------------------------|
14-
| [![smt Scala version support][Badge-Scaladex]][Link-Scaladex] | [![Version][Badge-Jetbrains]][Link-Jetbrains] | [![Sonatype Nexus (Snapshots)][Badge-Snapshots]][Link-Snapshots] |
13+
| Scaladex | Jetbrains Plugin |
14+
|---------------------------------------------------------------|-----------------------------------------------|
15+
| [![smt Scala version support][Badge-Scaladex]][Link-Scaladex] | [![Version][Badge-Jetbrains]][Link-Jetbrains] |
1516

1617
# 环境
1718

1819
- Java 8+
19-
- Scala 2.11.12、2.12.16、2.13.8
20+
- Scala 2.11.12、2.12.16、2.13.8 => Scala3版本 [bitlap/rolls](https://github.com/bitlap/rolls)
2021

2122
# 文档
2223

@@ -39,7 +40,7 @@ nav:
3940

4041
- 通用的宏操作API的封装。
4142
- 对象转换器(零依赖,类型安全)。
42-
- JDBC `ResultSet`转换器。
43+
- JDBC `ResultSet` 转换器。
4344

4445
```scala
4546
"org.bitlap" %% "smt-common" % "<VERSION>"
@@ -78,21 +79,19 @@ nav:
7879
"org.bitlap" %% "smt-annotations" % "<VERSION>"
7980
```
8081

81-
该库已发布到maven中央仓库,请使用最新版本。仅将本库导入构建系统(例如gradle、sbt)是不够的。你需要多走一步。
82+
该库已发布到maven中央仓库,请使用最新版本。仅将本库导入构建系统(例如gradle、sbt)是不够的。还需要配置:
8283

8384
| Scala 2.11 | Scala 2.12 | Scala 2.13 |
8485
|----------------------|----------------------|--------------------------------|
8586
| 导入 macro paradise 插件 | 导入 macro paradise 插件 | 开启 编译器标记 `-Ymacro-annotations` |
8687

8788
```scala
89+
// 导入 macro paradise 插件
90+
// <your-scala-version> 必须是Scala版本号的完整编号,如2.12.13,而不是2.12。
8891
addCompilerPlugin("org.scalamacros" % "paradise_<your-scala-version>" % "<plugin-version>")
8992
```
9093

91-
`<your-scala-version>`必须是Scala版本号的完整编号,如`2.12.13`,而不是`2.12`
92-
93-
如果这不起作用,可以谷歌寻找替代品。
94-
95-
`scala 2.13.x`版本中,macro paradise的功能直接包含在scala编译器中。然而,仍然必须启用编译器标志`-Ymacro annotations`
94+
`scala 2.13.x`版本中,需增加scalac参数`-Ymacro annotations`
9695

9796
# 特别感谢
9897

@@ -101,14 +100,12 @@ addCompilerPlugin("org.scalamacros" % "paradise_<your-scala-version>" % "<plugin
101100
This project is developed using JetBrains IDEA.
102101
Thanks to JetBrains for providing me with a free license, which is a strong support for me.
103102

104-
[Stage]: https://img.shields.io/badge/Project%20Stage-Development-yellowgreen.svg
105-
[Badge-CI]: https://github.com/bitlap/smt/actions/workflows/ScalaCI.yml/badge.svg
103+
[Badge-CI]: https://github.com/bitlap/smt/actions/workflows/ci.yml/badge.svg
106104
[Badge-Scaladex]: https://index.scala-lang.org/bitlap/smt/smt-annotations/latest.svg?platform=jvm
107105
[Badge-Jetbrains]: https://img.shields.io/jetbrains/plugin/v/17202-scala-macro-tools
108106
[Badge-Codecov]: https://codecov.io/gh/bitlap/smt/branch/master/graph/badge.svg?token=IA596YRTOT
109-
[Badge-Snapshots]: https://img.shields.io/nexus/s/org.bitlap/smt-annotations_2.13?server=https%3A%2F%2Fs01.oss.sonatype.org
110107

111108
[Link-Jetbrains]: https://plugins.jetbrains.com/plugin/17202-scala-macro-tools
112109
[Link-Codecov]: https://codecov.io/gh/bitlap/smt
113110
[Link-Scaladex]: https://index.scala-lang.org/bitlap/smt/smt-annotations
114-
[Link-Snapshots]: https://s01.oss.sonatype.org/content/repositories/snapshots/org/bitlap/
111+

0 commit comments

Comments
 (0)