X Tutup
Skip to content

Commit abb1504

Browse files
authored
docs: use asterisks for unordered lists (electron#26552)
1 parent b57ae67 commit abb1504

14 files changed

+110
-109
lines changed

CODE_OF_CONDUCT.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@
22

33
As a member project of the OpenJS Foundation, Electron uses [Contributor Covenant v2.0](https://contributor-covenant.org/version/2/0/code_of_conduct) as their code of conduct. The full text is included [below](#contributor-covenant-code-of-conduct) in English, and translations are available from the Contributor Covenant organisation:
44

5-
- [contributor-covenant.org/translations](https://www.contributor-covenant.org/translations)
6-
- [github.com/ContributorCovenant](https://github.com/ContributorCovenant/contributor_covenant/tree/release/content/version/2/0)
5+
* [contributor-covenant.org/translations](https://www.contributor-covenant.org/translations)
6+
* [github.com/ContributorCovenant](https://github.com/ContributorCovenant/contributor_covenant/tree/release/content/version/2/0)
77

88
## Contributor Covenant Code of Conduct
99

docs/api/command-line-switches.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -65,12 +65,12 @@ Forces the maximum disk space to be used by the disk cache, in bytes.
6565

6666
Enables caller stack logging for the following APIs (filtering events):
6767

68-
- `desktopCapturer.getSources()` / `desktop-capturer-get-sources`
69-
- `remote.require()` / `remote-require`
70-
- `remote.getGlobal()` / `remote-get-builtin`
71-
- `remote.getBuiltin()` / `remote-get-global`
72-
- `remote.getCurrentWindow()` / `remote-get-current-window`
73-
- `remote.getCurrentWebContents()` / `remote-get-current-web-contents`
68+
* `desktopCapturer.getSources()` / `desktop-capturer-get-sources`
69+
* `remote.require()` / `remote-require`
70+
* `remote.getGlobal()` / `remote-get-builtin`
71+
* `remote.getBuiltin()` / `remote-get-global`
72+
* `remote.getCurrentWindow()` / `remote-get-current-window`
73+
* `remote.getCurrentWebContents()` / `remote-get-current-web-contents`
7474

7575
### --enable-logging
7676

docs/api/process.md

Lines changed: 22 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -12,28 +12,28 @@ It adds the following events, properties, and methods:
1212

1313
In sandboxed renderers the `process` object contains only a subset of the APIs:
1414

15-
- `crash()`
16-
- `hang()`
17-
- `getCreationTime()`
18-
- `getHeapStatistics()`
19-
- `getBlinkMemoryInfo()`
20-
- `getProcessMemoryInfo()`
21-
- `getSystemMemoryInfo()`
22-
- `getSystemVersion()`
23-
- `getCPUUsage()`
24-
- `getIOCounters()`
25-
- `argv`
26-
- `execPath`
27-
- `env`
28-
- `pid`
29-
- `arch`
30-
- `platform`
31-
- `sandboxed`
32-
- `type`
33-
- `version`
34-
- `versions`
35-
- `mas`
36-
- `windowsStore`
15+
* `crash()`
16+
* `hang()`
17+
* `getCreationTime()`
18+
* `getHeapStatistics()`
19+
* `getBlinkMemoryInfo()`
20+
* `getProcessMemoryInfo()`
21+
* `getSystemMemoryInfo()`
22+
* `getSystemVersion()`
23+
* `getCPUUsage()`
24+
* `getIOCounters()`
25+
* `argv`
26+
* `execPath`
27+
* `env`
28+
* `pid`
29+
* `arch`
30+
* `platform`
31+
* `sandboxed`
32+
* `type`
33+
* `version`
34+
* `versions`
35+
* `mas`
36+
* `windowsStore`
3737

3838
## Events
3939

docs/api/remote.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,8 +36,8 @@ you can use [webContents.executeJavaScript](web-contents.md#contentsexecutejavas
3636

3737
**Note:** The remote module can be disabled for security reasons in the following contexts:
3838

39-
- [`BrowserWindow`](browser-window.md) - by setting the `enableRemoteModule` option to `false`.
40-
- [`<webview>`](webview-tag.md) - by setting the `enableremotemodule` attribute to `false`.
39+
* [`BrowserWindow`](browser-window.md) - by setting the `enableRemoteModule` option to `false`.
40+
* [`<webview>`](webview-tag.md) - by setting the `enableremotemodule` attribute to `false`.
4141

4242
## Remote Objects
4343

docs/api/session.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -101,8 +101,8 @@ Returns:
101101
Emitted after an extension is loaded. This occurs whenever an extension is
102102
added to the "enabled" set of extensions. This includes:
103103

104-
- Extensions being loaded from `Session.loadExtension`.
105-
- Extensions being reloaded:
104+
* Extensions being loaded from `Session.loadExtension`.
105+
* Extensions being reloaded:
106106
* from a crash.
107107
* if the extension requested it ([`chrome.runtime.reload()`](https://developer.chrome.com/extensions/runtime#method-reload)).
108108

docs/api/window-open.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@
33
There are several ways to control how windows are created from trusted or
44
untrusted content within a renderer. Windows can be created from the renderer in two ways:
55

6-
- clicking on links or submitting forms adorned with `target=_blank`
7-
- JavaScript calling `window.open()`
6+
* clicking on links or submitting forms adorned with `target=_blank`
7+
* JavaScript calling `window.open()`
88

99
In non-sandboxed renderers, or when `nativeWindowOpen` is false (the default), this results in the creation of a
1010
[`BrowserWindowProxy`](browser-window-proxy.md), a light wrapper around

docs/breaking-changes.md

Lines changed: 26 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -6,11 +6,11 @@ Breaking changes will be documented here, and deprecation warnings added to JS c
66

77
This document uses the following convention to categorize breaking changes:
88

9-
- **API Changed:** An API was changed in such a way that code that has not been updated is guaranteed to throw an exception.
10-
- **Behavior Changed:** The behavior of Electron has changed, but not in such a way that an exception will necessarily be thrown.
11-
- **Default Changed:** Code depending on the old default may break, not necessarily throwing an exception. The old behavior can be restored by explicitly specifying the value.
12-
- **Deprecated:** An API was marked as deprecated. The API will continue to function, but will emit a deprecation warning, and will be removed in a future release.
13-
- **Removed:** An API or feature was removed, and is no longer supported by Electron.
9+
* **API Changed:** An API was changed in such a way that code that has not been updated is guaranteed to throw an exception.
10+
* **Behavior Changed:** The behavior of Electron has changed, but not in such a way that an exception will necessarily be thrown.
11+
* **Default Changed:** Code depending on the old default may break, not necessarily throwing an exception. The old behavior can be restored by explicitly specifying the value.
12+
* **Deprecated:** An API was marked as deprecated. The API will continue to function, but will emit a deprecation warning, and will be removed in a future release.
13+
* **Removed:** An API or feature was removed, and is no longer supported by Electron.
1414

1515
## Planned Breaking API Changes (13.0)
1616

@@ -48,12 +48,12 @@ For more details see: https://github.com/electron/electron/issues/23506
4848
The following `crashReporter` methods are no longer available in the renderer
4949
process:
5050

51-
- `crashReporter.start`
52-
- `crashReporter.getLastCrashReport`
53-
- `crashReporter.getUploadedReports`
54-
- `crashReporter.getUploadToServer`
55-
- `crashReporter.setUploadToServer`
56-
- `crashReporter.getCrashesDirectory`
51+
* `crashReporter.start`
52+
* `crashReporter.getLastCrashReport`
53+
* `crashReporter.getUploadedReports`
54+
* `crashReporter.getUploadToServer`
55+
* `crashReporter.setUploadToServer`
56+
* `crashReporter.getCrashesDirectory`
5757

5858
They should be called only from the main process.
5959

@@ -144,12 +144,12 @@ app.getPath('crashDumps')
144144
Calling the following `crashReporter` methods from the renderer process is
145145
deprecated:
146146

147-
- `crashReporter.start`
148-
- `crashReporter.getLastCrashReport`
149-
- `crashReporter.getUploadedReports`
150-
- `crashReporter.getUploadToServer`
151-
- `crashReporter.setUploadToServer`
152-
- `crashReporter.getCrashesDirectory`
147+
* `crashReporter.start`
148+
* `crashReporter.getLastCrashReport`
149+
* `crashReporter.getUploadedReports`
150+
* `crashReporter.getUploadToServer`
151+
* `crashReporter.setUploadToServer`
152+
* `crashReporter.getCrashesDirectory`
153153

154154
The only non-deprecated methods remaining in the `crashReporter` module in the
155155
renderer are `addExtraParameter`, `removeExtraParameter` and `getParameters`.
@@ -314,7 +314,7 @@ Clone Algorithm][SCA], the same algorithm used to serialize messages for
314314
`postMessage`. This brings about a 2x performance improvement for large
315315
messages, but also brings some breaking changes in behavior.
316316

317-
- Sending Functions, Promises, WeakMaps, WeakSets, or objects containing any
317+
* Sending Functions, Promises, WeakMaps, WeakSets, or objects containing any
318318
such values, over IPC will now throw an exception, instead of silently
319319
converting the functions to `undefined`.
320320

@@ -328,21 +328,21 @@ ipcRenderer.send('channel', { value: 3, someFunction: () => {} })
328328
// => throws Error("() => {} could not be cloned.")
329329
```
330330

331-
- `NaN`, `Infinity` and `-Infinity` will now be correctly serialized, instead
331+
* `NaN`, `Infinity` and `-Infinity` will now be correctly serialized, instead
332332
of being converted to `null`.
333-
- Objects containing cyclic references will now be correctly serialized,
333+
* Objects containing cyclic references will now be correctly serialized,
334334
instead of being converted to `null`.
335-
- `Set`, `Map`, `Error` and `RegExp` values will be correctly serialized,
335+
* `Set`, `Map`, `Error` and `RegExp` values will be correctly serialized,
336336
instead of being converted to `{}`.
337-
- `BigInt` values will be correctly serialized, instead of being converted to
337+
* `BigInt` values will be correctly serialized, instead of being converted to
338338
`null`.
339-
- Sparse arrays will be serialized as such, instead of being converted to dense
339+
* Sparse arrays will be serialized as such, instead of being converted to dense
340340
arrays with `null`s.
341-
- `Date` objects will be transferred as `Date` objects, instead of being
341+
* `Date` objects will be transferred as `Date` objects, instead of being
342342
converted to their ISO string representation.
343-
- Typed Arrays (such as `Uint8Array`, `Uint16Array`, `Uint32Array` and so on)
343+
* Typed Arrays (such as `Uint8Array`, `Uint16Array`, `Uint32Array` and so on)
344344
will be transferred as such, instead of being converted to Node.js `Buffer`.
345-
- Node.js `Buffer` objects will be transferred as `Uint8Array`s. You can
345+
* Node.js `Buffer` objects will be transferred as `Uint8Array`s. You can
346346
convert a `Uint8Array` back to a Node.js `Buffer` by wrapping the underlying
347347
`ArrayBuffer`:
348348

docs/development/coding-style.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -66,11 +66,11 @@ formatted correctly.
6666

6767
Electron APIs uses the same capitalization scheme as Node.js:
6868

69-
- When the module itself is a class like `BrowserWindow`, use `PascalCase`.
70-
- When the module is a set of APIs, like `globalShortcut`, use `camelCase`.
71-
- When the API is a property of object, and it is complex enough to be in a
69+
* When the module itself is a class like `BrowserWindow`, use `PascalCase`.
70+
* When the module is a set of APIs, like `globalShortcut`, use `camelCase`.
71+
* When the API is a property of object, and it is complex enough to be in a
7272
separate chapter like `win.webContents`, use `mixedCase`.
73-
- For other non-module APIs, use natural titles, like `<webview> Tag` or
73+
* For other non-module APIs, use natural titles, like `<webview> Tag` or
7474
`Process Object`.
7575

7676
When creating a new API, it is preferred to use getters and setters instead of

docs/development/pull-requests.md

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -91,29 +91,29 @@ Before a pull request can be merged, it **must** have a pull request title with
9191

9292
Examples of commit messages with semantic prefixes:
9393

94-
- `fix: don't overwrite prevent_default if default wasn't prevented`
95-
- `feat: add app.isPackaged() method`
96-
- `docs: app.isDefaultProtocolClient is now available on Linux`
94+
* `fix: don't overwrite prevent_default if default wasn't prevented`
95+
* `feat: add app.isPackaged() method`
96+
* `docs: app.isDefaultProtocolClient is now available on Linux`
9797

9898
Common prefixes:
9999

100-
- fix: A bug fix
101-
- feat: A new feature
102-
- docs: Documentation changes
103-
- test: Adding missing tests or correcting existing tests
104-
- build: Changes that affect the build system
105-
- ci: Changes to our CI configuration files and scripts
106-
- perf: A code change that improves performance
107-
- refactor: A code change that neither fixes a bug nor adds a feature
108-
- style: Changes that do not affect the meaning of the code (linting)
109-
- vendor: Bumping a dependency like libchromiumcontent or node
100+
* fix: A bug fix
101+
* feat: A new feature
102+
* docs: Documentation changes
103+
* test: Adding missing tests or correcting existing tests
104+
* build: Changes that affect the build system
105+
* ci: Changes to our CI configuration files and scripts
106+
* perf: A code change that improves performance
107+
* refactor: A code change that neither fixes a bug nor adds a feature
108+
* style: Changes that do not affect the meaning of the code (linting)
109+
* vendor: Bumping a dependency like libchromiumcontent or node
110110

111111
Other things to keep in mind when writing a commit message:
112112

113113
1. The first line should:
114-
- contain a short description of the change (preferably 50 characters or less,
114+
* contain a short description of the change (preferably 50 characters or less,
115115
and no more than 72 characters)
116-
- be entirely in lowercase with the exception of proper nouns, acronyms, and
116+
* be entirely in lowercase with the exception of proper nouns, acronyms, and
117117
the words that refer to code, like function/variable names
118118
2. Keep the second line blank.
119119
3. Wrap all other lines at 72 columns.

docs/styleguide.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,7 @@ For API references, there are exceptions to this rule.
4949
* No nesting lists more than 2 levels (due to the markdown renderer).
5050
* All `js` and `javascript` code blocks are linted with
5151
[standard-markdown](https://www.npmjs.com/package/standard-markdown).
52+
* For unordered lists, use asterisks instead of dashes
5253

5354
## Picking words
5455

0 commit comments

Comments
 (0)
X Tutup