docs: use relative links within docs (#37042)
This commit is contained in:
parent
9b2b3aa287
commit
d17507e3f6
3 changed files with 7 additions and 7 deletions
|
@ -33,4 +33,4 @@ template and submit a new issue.
|
||||||
[(publish)]: https://www.electronforge.io/cli#publish
|
[(publish)]: https://www.electronforge.io/cli#publish
|
||||||
[GitHub issue tracker]: https://github.com/electron/forge/issues
|
[GitHub issue tracker]: https://github.com/electron/forge/issues
|
||||||
[discord]: https://discord.gg/APGC3k5yaH
|
[discord]: https://discord.gg/APGC3k5yaH
|
||||||
[tutorial]: https://www.electronjs.org/docs/latest/tutorial/tutorial-prerequisites
|
[tutorial]: ./tutorial-1-prerequisites.md
|
||||||
|
|
|
@ -12,7 +12,7 @@ hide_title: true
|
||||||
<!-- ✍ Update this section if you want to provide more details -->
|
<!-- ✍ Update this section if you want to provide more details -->
|
||||||
|
|
||||||
This guide will take you through the process of setting your Electron app as the default
|
This guide will take you through the process of setting your Electron app as the default
|
||||||
handler for a specific [protocol](https://www.electronjs.org/docs/api/protocol).
|
handler for a specific [protocol](../api/protocol.md).
|
||||||
|
|
||||||
By the end of this tutorial, we will have set our app to intercept and handle
|
By the end of this tutorial, we will have set our app to intercept and handle
|
||||||
any clicked URLs that start with a specific protocol. In this guide, the protocol
|
any clicked URLs that start with a specific protocol. In this guide, the protocol
|
||||||
|
|
|
@ -13,7 +13,7 @@ hide_title: true
|
||||||
<!-- ✍ Update this section if you want to provide more details -->
|
<!-- ✍ Update this section if you want to provide more details -->
|
||||||
|
|
||||||
This guide will take you through the process of creating a
|
This guide will take you through the process of creating a
|
||||||
[Tray](https://www.electronjs.org/docs/api/tray) icon with
|
[Tray](../api/tray.md) icon with
|
||||||
its own context menu to the system's notification area.
|
its own context menu to the system's notification area.
|
||||||
|
|
||||||
On MacOS and Ubuntu, the Tray will be located on the top
|
On MacOS and Ubuntu, the Tray will be located on the top
|
||||||
|
@ -31,11 +31,11 @@ const { app, Tray, Menu, nativeImage } = require('electron')
|
||||||
```
|
```
|
||||||
|
|
||||||
Next we will create our Tray. To do this, we will use a
|
Next we will create our Tray. To do this, we will use a
|
||||||
[`NativeImage`](https://www.electronjs.org/docs/api/native-image) icon,
|
[`NativeImage`](../api/native-image.md) icon,
|
||||||
which can be created through any one of these
|
which can be created through any one of these
|
||||||
[methods](https://www.electronjs.org/docs/api/native-image#methods).
|
[methods](../api/native-image.md#methods).
|
||||||
Note that we wrap our Tray creation code within an
|
Note that we wrap our Tray creation code within an
|
||||||
[`app.whenReady`](https://www.electronjs.org/docs/api/app#appwhenready)
|
[`app.whenReady`](../api/app.md#appwhenready)
|
||||||
as we will need to wait for our electron app to finish initializing.
|
as we will need to wait for our electron app to finish initializing.
|
||||||
|
|
||||||
```js title='main.js'
|
```js title='main.js'
|
||||||
|
@ -64,7 +64,7 @@ tray.setContextMenu(contextMenu)
|
||||||
|
|
||||||
The code above will create 4 separate radio-type items in the context menu.
|
The code above will create 4 separate radio-type items in the context menu.
|
||||||
To read more about constructing native menus, click
|
To read more about constructing native menus, click
|
||||||
[here](https://www.electronjs.org/docs/api/menu#menubuildfromtemplatetemplate).
|
[here](../api/menu.md#menubuildfromtemplatetemplate).
|
||||||
|
|
||||||
Finally, let's give our tray a tooltip and a title.
|
Finally, let's give our tray a tooltip and a title.
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue