Skip to content

Commit 8b600c3

Browse files
kmq116KimYangOfCat
andauthored
docs(cn): integrations/gridsome translation (#35)
* docs(cn): integrations/gridsome translation * Update integrations/gridsome.md Co-authored-by: Kim Yang <[email protected]> * Update integrations/gridsome.md Co-authored-by: Kim Yang <[email protected]> * Update integrations/gridsome.md Co-authored-by: Kim Yang <[email protected]> * Update integrations/gridsome.md Co-authored-by: Kim Yang <[email protected]> * update translation Co-authored-by: kmq <kmq> Co-authored-by: Kim Yang <[email protected]>
1 parent ccd80bf commit 8b600c3

File tree

1 file changed

+20
-20
lines changed

1 file changed

+20
-20
lines changed

integrations/gridsome.md

Lines changed: 20 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,21 @@
11
<Logo name="gridsome" class="logo-float-xl"/>
22

3-
# Integration for [Gridsome](https://gridsome.org/)
3+
# 集成 [Gridsome](https://gridsome.org/) {#integration-for-gridsome}
44

55
<PackageInfo name="gridsome-plugin-windicss" author="harlan-zw" />
66

7-
## Install
7+
## 安装 {#install}
88

99
```bash
1010
yarn add gridsome-plugin-windicss -D
1111
# npm i gridsome-plugin-windicss -D
1212
```
1313

14-
:warning: This module is a pre-release, please report any [issues](https://github.com/windicss/gridsome-plugin-windicss/issues) you find.
14+
:warning: 该模块是预发行版本,请反馈你发现的任何[问题](https://github.com/windicss/gridsome-plugin-windicss/issues)
1515

16-
## Usage
16+
## 使用 {#usage}
1717

18-
Within your `gridsome.config.js` add the following.
18+
`gridsome.config.js` 中添加以下内容。
1919

2020
```js
2121
// gridsome.config.js
@@ -25,14 +25,14 @@ export default {
2525
{
2626
use: 'gridsome-plugin-windicss',
2727
options: {
28-
// see https://github.com/windicss/vite-plugin-windicss/blob/main/packages/plugin-utils/src/options.ts
28+
// 详见 https://github.com/windicss/vite-plugin-windicss/blob/main/packages/plugin-utils/src/options.ts
2929
},
3030
},
3131
],
3232
}
3333
```
3434

35-
This module won't work with `gridsome-plugin-tailwindcss`, you will need to remove it.
35+
此模块不适用于 `gridsome-plugin-tailwindcss`, 你需要将其删除。
3636

3737
```diff
3838
plugins: [
@@ -45,18 +45,18 @@ This module won't work with `gridsome-plugin-tailwindcss`, you will need to remo
4545
],
4646
```
4747

48-
If you have a `tailwind.config.js`, please rename it to `windi.config.js` or `windi.config.ts`.
48+
如果你有 `tailwind.config.js` 文件,请将其重命名为`windi.config.js` `windi.config.ts`
4949

50-
See [here](https://windicss.netlify.app/guide/configuration.html) for configuration details.
50+
有关配置详细信息,请在[此处](https://windicss.netlify.app/guide/configuration.html)查看。
5151

5252

53-
## Migrating
53+
## 迁移 {#migrating}
5454

55-
If you were previously using `gridsome-plugin-tailwindcss`, please consult the [documentation](https://windicss.netlify.app/guide/migration.html) on migrating.
55+
如果你以前使用过 `gridsome-plugin-tailwindcss`,请参考有关迁移的[文档](https://windicss.netlify.app/guide/migration.html)
5656

57-
## Configuration
57+
## 配置 {#configuration}
5858

59-
- Default:
59+
- 默认:
6060
```js
6161
export default {
6262
scan: {
@@ -74,19 +74,19 @@ export default {
7474
transformCSS: 'pre',
7575
preflight: {
7676
alias: {
77-
// add gridsome aliases
77+
// 添加 gridsome 别名
7878
'g-link': 'a',
7979
'g-image': 'img',
8080
},
8181
},
8282
}
8383
```
8484

85-
- See [options.ts](https://github.com/windicss/vite-plugin-windicss/blob/main/packages/plugin-utils/src/options.ts) for configuration reference.
85+
- 有关配置参考,请查看[options.ts](https://github.com/windicss/vite-plugin-windicss/blob/main/packages/plugin-utils/src/options.ts)
8686

87-
### Examples
87+
### 示例 {#examples}
8888

89-
#### Disable Preflight
89+
#### 禁用预检样式{#disable-preflight}
9090

9191
_gridsome.config.js_
9292
```js
@@ -103,8 +103,8 @@ export default {
103103
}
104104
```
105105

106-
## Caveats
106+
## 注意事项 {#caveats}
107107

108-
### Scoped Style
108+
### 样式作用域 {#scoped-style}
109109

110-
`@media` directive with scoped style can **only work** with `css` `postcss` `scss` but not `sass`, `less` nor `stylus`
110+
限定样式作用域的 `@media` 指令只能与 `css` `postcss` `scss` 一起使用,不能和 `sass`, `less` `stylus` 一起使用。

0 commit comments

Comments
 (0)