Skip to content

Commit 1d6d141

Browse files
committed
delete repeat lines
1 parent b33569d commit 1d6d141

File tree

1 file changed

+9
-13
lines changed

1 file changed

+9
-13
lines changed

readme-zh.md

+9-13
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,6 @@ npm start
2929

3030
> 首先了解 [MDX Deck](https://github.com/jxnblk/mdx-deck) 的工作方式可能会有所帮助
3131
32-
To use Code Surfer you need to import it and wrap the code you want to show inside `<CodeSurfer>` tags (the **empty lines before and after the codeblock are required**):
3332

3433
要使用 Code Surfer,你需要先将其导入,并使用 `<CodeSurfer>` 标签包裹要显示的代码(**需要在代码块之前和之后保留空行**):
3534

@@ -58,19 +57,18 @@ console.log(3);
5857
- [标题和副标题](#title-and-subtitle)
5958
- [主题](#themes)
6059
- [自定义样式](#custom-styles)
61-
- [多语言支持]](#languages)
60+
- [多语言支持](#languages)
6261
- [](#columns)
6362
- [导入代码](#import-code)
6463
- [行号](#line-numbers)
6564
- [差异](#diffs)
6665

67-
> Here is a live [deck using all the features](https://codesurfer.pomb.us/full/) (and its [mdx source](https://raw.githubusercontent.com/pomber/code-surfer/code-surfer-v2/sites/docs/decks/full.mdx)) just in case you prefer to read code instead of docs.
6866

69-
> 这是一个 [使用所有功能](https://codesurfer.pomb.us/full/) (及 [mdx 源码](https://raw.githubusercontent.com/pomber/code-surfer/code-surfer-v2/sites/docs/decks/full.mdx))的演示文稿,万一您更喜欢阅读代码而不是文档😀
67+
> 这是一个 [使用所有功能](https://codesurfer.pomb.us/full/) (及 [mdx 源码](https://raw.githubusercontent.com/pomber/code-surfer/code-surfer-v2/sites/docs/decks/full.mdx))的演示文稿,万一你更喜欢阅读代码而不是文档😀
7068
71-
## 聚焦
69+
## 高亮
7270

73-
在代码块第一行中的(设置)语言之后添加 _高亮字符串位置_,以告诉Code Surfer你要聚焦的行和列
71+
在代码块第一行中的(设置)语言之后添加 _高亮字符串位置_,以告诉Code Surfer你要高亮的行和列
7472

7573
Code Surfer将淡出所有未高亮的代码,并在必要时将其缩小以适合幻灯片。
7674

@@ -86,8 +84,6 @@ console.log(3);
8684
</CodeSurfer>
8785
````
8886

89-
In the example above `1:2,3[8:10]` means: "focus from the line 1 to line 2 and the columns 8 to 10 from line 3". More examples:
90-
9187
在上面的示例中,`1:2,3[8:10]` 意思是:“行1行2高亮,行3到列8到10高亮”。更多示例:
9288

9389
- `5:10` 第 5,6,7,8,9 行 和第 10 行高亮
@@ -128,7 +124,7 @@ console.log(5);
128124
</CodeSurfer>
129125
````
130126

131-
您可以为不同的步骤更改焦点和/或代码,然后 Code Surfer 会在以下步骤之间进行变换:缩放,滚动,淡入,淡出,添加和删除行。
127+
你可以为不同的步骤更改焦点和/或代码,然后 Code Surfer 会在以下步骤之间进行变换:缩放,滚动,淡入,淡出,添加和删除行。
132128

133129
## 标题和副标题
134130

@@ -196,7 +192,7 @@ console.log(3);
196192
197193
## 自定义样式
198194

199-
您可以编写自己的Code Surfer主题,更改代码,标题和副标题的样式:
195+
你可以编写自己的Code Surfer主题,更改代码,标题和副标题的样式:
200196

201197
> 在主题中使用 [Theme UI](https://theme-ui.com/)
202198
@@ -326,7 +322,7 @@ console.log("b");
326322

327323
每个 `<Step>` 有自己的 `title` and `subtitle`.
328324

329-
您可以为各列使用不同的主题: `<CodeSurferColumns themes={[nightOwl, ultramin]}>`. 并更改列的相对大小 `<CodeSurferColumns sizes={[1,3]}>`.
325+
你可以为各列使用不同的主题: `<CodeSurferColumns themes={[nightOwl, ultramin]}>`. 并更改列的相对大小 `<CodeSurferColumns sizes={[1,3]}>`.
330326

331327
列不仅用于代码,还可以将它们用于任何类型的内容:
332328

@@ -445,11 +441,11 @@ console.log(3);
445441

446442
## 支持 Code Surfer
447443

448-
您可以帮助保持该项目的生命
444+
你可以帮助保持该项目的生命
449445

450446
### 赞助商
451447

452-
通过成为赞助者来支持该项目。您的徽标将显示在此处,并带有指向您网站的链接[[成为赞助商](https://opencollective.com/code-surfer#sponsor)]
448+
通过成为赞助者来支持该项目。你的徽标将显示在此处,并带有指向你网站的链接[[成为赞助商](https://opencollective.com/code-surfer#sponsor)]
453449

454450
<a href="https://opencollective.com/code-surfer/sponsor/0/website" target="_blank"><img src="https://opencollective.com/code-surfer/sponsor/0/avatar.svg"></a>
455451

0 commit comments

Comments
 (0)