You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The following sections contain all you need to know about editing and formatting the content within this site. Make sure to do some research before starting your edits or additions. Sometimes the toughest part is finding where the content should live and determining whether or not it already exists.
-`sort`: The order of the article within its section (or) sub-section if it is present.
39
-
-`contributors`: A list of GitHub usernames who have contributed to this article.
40
-
-`related`: Any related reading or useful examples.
39
+
-`title`:文章的名称。
40
+
-`group`:小节的名称。
41
+
-`sort`:这篇文章在此类(或子类)中的顺序(如果存在同类)。
42
+
-`contributors`:文章贡献者的 GitHub 用户名列表。
43
+
-`related`:任何相关阅读或有用示例。
41
44
42
-
Note that `related`will generate a **Further Reading**section at the bottom of the page and `contributors`will yield a **Contributors**section below it. If you edit an article and would like recognition, don't hesitate to add your GitHub username to the `contributors`list.
Please do not assume things are simple. Avoid words like 'just', 'simply'.
154
+
请不要假设事情简单。避免使用词汇“只是”,“简单地”。
150
155
151
156
```diff
152
-
-Simply run command...
153
-
+Run the `command-name` command...
157
+
-简单地运行命令……
158
+
+运行 `command-name` 命令……
154
159
```
155
160
156
-
### Configuration defaults and types $#configuration-defaults-and-types$
161
+
### 配置的默认值和类型 $#configuration-defaults-and-types$
157
162
158
-
Always provide types and defaults to all of the documentation options in order to keep the documentation accessible and well-written. We are adding types and defaults after entitling the documented option:
163
+
总是为所有文档选项提供类型和默认值,以保持文档的可读性和良好书写。我们在选项后面加上类型和默认值:
159
164
160
165
**configuration.example.option**
161
166
162
167
`string = 'none'`
163
168
164
-
Where`= 'none'`means that the default value is `'none'`for the given option.
Where`: 'none' | 'development' | 'production'`enumerates the possible type values, in this case, three strings are acceptable: `'none'`, `'development'`, and`'production'`.
To mark a function, also list arguments when they are available:
187
+
标记为函数时,如果有参数,应同时把参数列出来:
183
188
184
189
`function (compilation, module, path) => boolean`
185
190
186
-
Where`(compilation, module, path)`lists the arguments that the provided function will receive and `=> boolean`means that the return value of the function must be a `boolean`.
Sometimes, we want to describe certain properties of objects and functions in lists. When applicable add typing directly to the list where properties are enlisted:
219
+
有时,我们希望描述对象的某些属性,以及列表中的函数。在属性列表直接添加即可:
215
220
216
-
-`madeUp` (`boolean = true`): short description
217
-
-`shortText` (`string = 'i am text'`): another short description
221
+
-`madeUp` (`boolean = true`): 简短描述
222
+
-`shortText` (`string = 'i am text'`): 另一个简短描述
218
223
219
-
W> `:`is not a necessity here, note the property, type and default.
224
+
W> `:`不是必须的。注意属性名,类型和默认值。
220
225
221
-
An example can be found on the [`options` section of the EvalSourceMapDevToolPlugin's page](/plugins/eval-source-map-dev-tool-plugin/#options).
Please use relative URLs (such as `/concepts/mode/`) to link our own content instead of absolute URLs (such as `https://webpack.js.org/concepts/mode/`).
0 commit comments