X Tutup
Skip to content

Commit a82bbd0

Browse files
miniakMarshallOfSound
authored andcommitted
build: strip trailing whitespace in docs (electron#17488)
1 parent 1c7b302 commit a82bbd0

File tree

12 files changed

+86
-32
lines changed

12 files changed

+86
-32
lines changed

docs/api/auto-updater.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ Emitted when an update has been downloaded.
8484

8585
On Windows only `releaseName` is available.
8686

87-
**Note:** It is not strictly necessary to handle this event. A successfully
87+
**Note:** It is not strictly necessary to handle this event. A successfully
8888
downloaded update will still be applied the next time the application starts.
8989

9090
### Event: 'before-quit-for-update'
@@ -125,8 +125,8 @@ Under the hood calling `autoUpdater.quitAndInstall()` will close all application
125125
windows first, and automatically call `app.quit()` after all windows have been
126126
closed.
127127

128-
**Note:** It is not strictly necessary to call this function to apply an update,
129-
as a successfully downloaded update will always be applied the next time the
128+
**Note:** It is not strictly necessary to call this function to apply an update,
129+
as a successfully downloaded update will always be applied the next time the
130130
application starts.
131131

132132
[squirrel-mac]: https://github.com/Squirrel/Squirrel.Mac

docs/api/breaking-changes.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ Child windows opened with the `nativeWindowOpen` option will always have Node.js
102102
Renderer process APIs `webFrame.setRegisterURLSchemeAsPrivileged` and `webFrame.registerURLSchemeAsBypassingCSP` as well as browser process API `protocol.registerStandardSchemes` have been removed.
103103
A new API, `protocol.registerSchemesAsPrivileged` has been added and should be used for registering custom schemes with the required privileges. Custom schemes are required to be registered before app ready.
104104

105-
## webFrame Isolated World APIs
105+
## webFrame Isolated World APIs
106106

107107
```js
108108
// Deprecated

docs/api/dialog.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,7 @@ dialog.showOpenDialogSync(mainWindow, {
115115

116116
Returns `Promise<Object>` - Resolve wih an object containing the following:
117117

118-
* `canceled` - Boolean - whether or not the dialog was canceled.
118+
* `canceled` - Boolean - whether or not the dialog was canceled.
119119
* `filePaths` String[] (optional) - An array of file paths chosen by the user. If the dialog is cancelled this will be an empty array.
120120
* `bookmarks` String[] (optional) _macOS_ _mas_ - An array matching the `filePaths` array of base64 encoded strings which contains security scoped bookmark data. `securityScopedBookmarks` must be enabled for this to be populated.
121121

docs/api/process.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ instead of the `--no-deprecation` command line flag.
8484
### `process.enablePromiseAPIs`
8585

8686
A `Boolean` that controls whether or not deprecation warnings are printed to `stderr` when
87-
formerly callback-based APIs converted to Promises are invoked using callbacks. Setting this to `true`
87+
formerly callback-based APIs converted to Promises are invoked using callbacks. Setting this to `true`
8888
will enable deprecation warnings.
8989

9090
### `process.resourcesPath`
@@ -178,7 +178,7 @@ Returns an object giving memory usage statistics about the current process. Note
178178
that all statistics are reported in Kilobytes.
179179
This api should be called after app ready.
180180

181-
Chromium does not provide `residentSet` value for macOS. This is because macOS
181+
Chromium does not provide `residentSet` value for macOS. This is because macOS
182182
performs in-memory compression of pages that haven't been recently used. As a
183183
result the resident set size value is not what one would expect. `private` memory
184184
is more representative of the actual pre-compression memory usage of the process

docs/api/system-preferences.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ that contains the user information dictionary sent along with the notification.
9090
* `callback` Function
9191
* `event` String
9292
* `userInfo` Object
93-
93+
9494
Returns `Number` - The ID of this subscription
9595

9696
Subscribes to native notifications of macOS, `callback` will be called with
@@ -115,7 +115,7 @@ example values of `event` are:
115115
* `callback` Function
116116
* `event` String
117117
* `userInfo` Object
118-
118+
119119
Returns `Number` - The ID of this subscription
120120

121121
Same as `subscribeNotification`, but uses `NSNotificationCenter` for local defaults.
@@ -149,9 +149,9 @@ Same as `unsubscribeNotification`, but removes the subscriber from `NSNotificati
149149

150150
Same as `unsubscribeNotification`, but removes the subscriber from `NSWorkspace.sharedWorkspace.notificationCenter`.
151151

152-
### `systemPreferences.registerDefaults(defaults)` _macOS_
152+
### `systemPreferences.registerDefaults(defaults)` _macOS_
153153

154-
* `defaults` Object - a dictionary of (`key: value`) user defaults
154+
* `defaults` Object - a dictionary of (`key: value`) user defaults
155155

156156
Add the specified defaults to your application's `NSUserDefaults`.
157157

@@ -319,7 +319,7 @@ This API is only available on macOS 10.14 Mojave or newer.
319319
* `unemphasized-selected-text-background` - A background for selected text in a non-key window or view.
320320
* `unemphasized-selected-text` - Selected text in a non-key window or view.
321321
* `window-background` - The background of a window.
322-
* `window-frame-text` - The text in the window's titlebar area.
322+
* `window-frame-text` - The text in the window's titlebar area.
323323

324324
Returns `String` - The system color setting in RGB hexadecimal form (`#ABCDEF`).
325325
See the [Windows docs][windows-colors] and the [MacOS docs][macos-colors] for more details.

docs/development/build-instructions-gn.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ $ git branch --set-upstream-to=origin/master
8989
$ cd -
9090
```
9191

92-
:memo: `gclient` works by checking a file called `DEPS` inside the
92+
:memo: `gclient` works by checking a file called `DEPS` inside the
9393
`src/electron` folder for dependencies (like Chromium or Node.js).
9494
Running `gclient sync -f` ensures that all dependencies required
9595
to build Electron match that file.

docs/development/releasing.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ with the scope of `Build (read and execute)`.
2626
If you don't have these, ask a team member to help you.
2727

2828
Once you've generated these tokens, put them in a `.env` file in the root directory
29-
of the project. This file is gitignored, and will be loaded into the
29+
of the project. This file is gitignored, and will be loaded into the
3030
environment by the release scripts.
3131

3232

docs/tutorial/security.md

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -48,21 +48,21 @@ the result of the overall security of the framework foundation
4848
your code. As such, it is your responsibility to follow a few important best
4949
practices:
5050

51-
* **Keep your application up-to-date with the latest Electron framework release.**
52-
When releasing your product, you’re also shipping a bundle composed of Electron,
53-
Chromium shared library and Node.js. Vulnerabilities affecting these components
54-
may impact the security of your application. By updating Electron to the latest
55-
version, you ensure that critical vulnerabilities (such as *nodeIntegration bypasses*)
51+
* **Keep your application up-to-date with the latest Electron framework release.**
52+
When releasing your product, you’re also shipping a bundle composed of Electron,
53+
Chromium shared library and Node.js. Vulnerabilities affecting these components
54+
may impact the security of your application. By updating Electron to the latest
55+
version, you ensure that critical vulnerabilities (such as *nodeIntegration bypasses*)
5656
are already patched and cannot be exploited in your application.
5757

58-
* **Evaluate your dependencies.** While NPM provides half a million reusable packages,
59-
it is your responsibility to choose trusted 3rd-party libraries. If you use outdated
60-
libraries affected by known vulnerabilities or rely on poorly maintained code,
58+
* **Evaluate your dependencies.** While NPM provides half a million reusable packages,
59+
it is your responsibility to choose trusted 3rd-party libraries. If you use outdated
60+
libraries affected by known vulnerabilities or rely on poorly maintained code,
6161
your application security could be in jeopardy.
6262

63-
* **Adopt secure coding practices.** The first line of defense for your application
64-
is your own code. Common web vulnerabilities, such as Cross-Site Scripting (XSS),
65-
have a higher security impact on Electron applications hence it is highly recommended
63+
* **Adopt secure coding practices.** The first line of defense for your application
64+
is your own code. Common web vulnerabilities, such as Cross-Site Scripting (XSS),
65+
have a higher security impact on Electron applications hence it is highly recommended
6666
to adopt secure software development best practices and perform security testing.
6767

6868

docs/tutorial/updates.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ Electron's [autoUpdater](../api/auto-updater.md) module.
88
## Using `update.electronjs.org`
99

1010
GitHub's Electron team maintains [update.electronjs.org], a free and open-source
11-
webservice that Electron apps can use to self-update. The service is designed
11+
webservice that Electron apps can use to self-update. The service is designed
1212
for Electron apps that meet the following criteria:
1313

1414
- App runs on macOS or Windows
@@ -31,13 +31,13 @@ Invoke the updater from your app's main process file:
3131
require('update-electron-app')()
3232
```
3333

34-
By default, this module will check for updates at app startup, then every ten
35-
minutes. When an update is found, it will automatically be downloaded in the background. When the download completes, a dialog is displayed allowing the user
34+
By default, this module will check for updates at app startup, then every ten
35+
minutes. When an update is found, it will automatically be downloaded in the background. When the download completes, a dialog is displayed allowing the user
3636
to restart the app.
3737

38-
If you need to customize your configuration, you can
38+
If you need to customize your configuration, you can
3939
[pass options to `update-electron-app`][update-electron-app]
40-
or
40+
or
4141
[use the update service directly][update.electronjs.org].
4242

4343
## Using `electron-builder`
@@ -51,7 +51,7 @@ update mechanism, meaning that the rest of this documentation will not apply to
5151
## Deploying an Update Server
5252

5353
If you're developing a private Electron application, or if you're not
54-
publishing releases to GitHub Releases, it may be necessary to run your own
54+
publishing releases to GitHub Releases, it may be necessary to run your own
5555
update server.
5656

5757
Depending on your needs, you can choose from one of these:

filenames.auto.gni

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -86,6 +86,7 @@ auto_filenames = {
8686
"docs/api/structures/notification-action.md",
8787
"docs/api/structures/point.md",
8888
"docs/api/structures/printer-info.md",
89+
"docs/api/structures/process-memory-info.md",
8990
"docs/api/structures/process-metric.md",
9091
"docs/api/structures/product.md",
9192
"docs/api/structures/rectangle.md",

0 commit comments

Comments
 (0)
X Tutup