Skip to content

Commit

Permalink
docs: use relative links within docs (electron#37042)
Browse files Browse the repository at this point in the history
  • Loading branch information
dsanders11 authored and gecko19 committed Feb 28, 2023
1 parent e9edc8c commit 50e24e8
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion docs/tutorial/forge-overview.md
Expand Up @@ -33,4 +33,4 @@ template and submit a new issue.
[(publish)]: https://www.electronforge.io/cli#publish
[GitHub issue tracker]: https://github.com/electron/forge/issues
[discord]: https://discord.gg/APGC3k5yaH
[tutorial]: https://www.electronjs.org/docs/latest/tutorial/tutorial-prerequisites
[tutorial]: ./tutorial-1-prerequisites.md
2 changes: 1 addition & 1 deletion docs/tutorial/launch-app-from-url-in-another-app.md
Expand Up @@ -12,7 +12,7 @@ hide_title: true
<!-- ✍ 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
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
any clicked URLs that start with a specific protocol. In this guide, the protocol
Expand Down
10 changes: 5 additions & 5 deletions docs/tutorial/tray.md
Expand Up @@ -13,7 +13,7 @@ hide_title: true
<!-- ✍ Update this section if you want to provide more details -->

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.

On MacOS and Ubuntu, the Tray will be located on the top
Expand All @@ -31,11 +31,11 @@ const { app, Tray, Menu, nativeImage } = require('electron')
```

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
[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
[`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.

```js title='main.js'
Expand Down Expand Up @@ -64,7 +64,7 @@ tray.setContextMenu(contextMenu)

The code above will create 4 separate radio-type items in the context menu.
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.

Expand Down

0 comments on commit 50e24e8

Please sign in to comment.