Skip to content

Commit 6761ed2

Browse files
chore: update ref to docs (🤖) (#1076)
Co-authored-by: electron-website-docs-updater[bot] <166660481+electron-website-docs-updater[bot]@users.noreply.github.com>
1 parent e10e939 commit 6761ed2

5 files changed

Lines changed: 12 additions & 10 deletions

File tree

‎docs/latest/.sha‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
78896775d929b685fc1af2cba9962f9e4112a494
1+
73945911380613ad15d71147132c0153aef9b02a

‎docs/latest/api/menu-item.md‎

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -51,8 +51,8 @@ See [`Menu`](menu.md) for examples.
5151
menu items.
5252
* `registerAccelerator` boolean (optional) _Linux_ _Windows_ - If false, the accelerator won't be registered
5353
with the system, but it will still be displayed. Defaults to true.
54-
* `sharingItem` SharingItem (optional) _macOS_ - The item to share when the `role` is `shareMenu`.
55-
* `submenu` (MenuItemConstructorOptions[] | [Menu](menu.md)) (optional) - Should be specified
54+
* `sharingItem` [SharingItem](structures/sharing-item.md) (optional) _macOS_ - The item to share when the `role` is `shareMenu`.
55+
* `submenu` ([MenuItemConstructorOptions](#new-menuitemoptions)[] | [Menu](menu.md)) (optional) - Should be specified
5656
for `submenu` type menu items. If `submenu` is specified, the `type: 'submenu'` can be omitted.
5757
If the value is not a [`Menu`](menu.md) then it will be automatically converted to one using
5858
`Menu.buildFromTemplate`.
@@ -96,7 +96,7 @@ A `Function` that is fired when the MenuItem receives a click event.
9696
It can be called with `menuItem.click(event, focusedWindow, focusedWebContents)`.
9797

9898
* `event` [KeyboardEvent](structures/keyboard-event.md)
99-
* `focusedWindow` [BaseWindow](browser-window.md)
99+
* `focusedWindow` [BaseWindow](base-window.md)
100100
* `focusedWebContents` [WebContents](web-contents.md)
101101

102102
#### `menuItem.submenu`
@@ -117,11 +117,11 @@ A `string` (optional) indicating the item's role, if set. Can be `undo`, `redo`,
117117

118118
#### `menuItem.accelerator`
119119

120-
An `Accelerator | null` indicating the item's accelerator, if set.
120+
An [`Accelerator | null`](../tutorial/keyboard-shortcuts.md#accelerators) indicating the item's accelerator, if set.
121121

122122
#### `menuItem.userAccelerator` _Readonly_ _macOS_
123123

124-
An `Accelerator | null` indicating the item's [user-assigned accelerator](https://developer.apple.com/documentation/appkit/nsmenuitem/1514850-userkeyequivalent?language=objc) for the menu item.
124+
An [`Accelerator | null`](../tutorial/keyboard-shortcuts.md#accelerators) indicating the item's [user-assigned accelerator](https://developer.apple.com/documentation/appkit/nsmenuitem/1514850-userkeyequivalent?language=objc) for the menu item.
125125

126126
> [!NOTE]
127127
> This property is only initialized after the `MenuItem` has been added to a `Menu`. Either via `Menu.buildFromTemplate` or via `Menu.append()/insert()`. Accessing before initialization will just return `null`.
@@ -177,7 +177,7 @@ This property can be dynamically changed.
177177

178178
#### `menuItem.sharingItem` _macOS_
179179

180-
A `SharingItem` indicating the item to share when the `role` is `shareMenu`.
180+
A [`SharingItem`](structures/sharing-item.md) indicating the item to share when the `role` is `shareMenu`.
181181

182182
This property can be dynamically changed.
183183

‎docs/latest/api/menu.md‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ for more information on macOS' native actions.
7777

7878
#### `Menu.buildFromTemplate(template)`
7979

80-
- `template` (MenuItemConstructorOptions | [MenuItem](menu-item.md))[]
80+
- `template` ([MenuItemConstructorOptions](menu-item.md#new-menuitemoptions) | [MenuItem](menu-item.md))[]
8181

8282
Returns [`Menu`](menu.md)
8383

@@ -169,7 +169,7 @@ Emitted when a popup is closed either manually or with `menu.closePopup()`.
169169

170170
#### `menu.items`
171171

172-
A `MenuItem[]` array containing the menu's items.
172+
A [`MenuItem[]`](menu-item.md) array containing the menu's items.
173173

174174
Each `Menu` consists of multiple [`MenuItem`](menu-item.md) instances and each `MenuItem`
175175
can nest a `Menu` into its `submenu` property.

‎docs/latest/api/structures/custom-scheme.md‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,3 +18,5 @@ hide_title: false
1818
* `stream` boolean (optional) - Default false.
1919
* `codeCache` boolean (optional) - Enable V8 code cache for the scheme, only
2020
works when `standard` is also set to true. Default false.
21+
* `allowExtensions` boolean (optional) - Allow Chrome extensions to be used
22+
on pages served over this protocol. Default false.

‎docs/latest/development/patches.md‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ $ ../../electron/script/git-import-patches ../../electron/patches/node
8686
$ ../../electron/script/git-export-patches -o ../../electron/patches/node
8787
```
8888

89-
Note that `git-import-patches` will mark the commit that was `HEAD` when it was run as `refs/patches/upstream-head`. This lets you keep track of which commits are from Electron patches (those that come after `refs/patches/upstream-head`) and which commits are in upstream (those before `refs/patches/upstream-head`).
89+
Note that `git-import-patches` will mark the commit that was `HEAD` when it was run as `refs/patches/upstream-head` (and a checkout-specific `refs/patches/upstream-head-<hash>` so that gclient worktrees sharing a `.git/refs` directory don't clobber each other). This lets you keep track of which commits are from Electron patches (those that come after `refs/patches/upstream-head`) and which commits are in upstream (those before `refs/patches/upstream-head`).
9090

9191
#### Resolving conflicts
9292

0 commit comments

Comments
 (0)