docs: update external links (#39421)

This commit is contained in:
Milan Burda 2023-08-10 11:55:52 +02:00 committed by GitHub
parent 11600c5f96
commit 255064659f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
30 changed files with 51 additions and 51 deletions

View file

@ -21,7 +21,7 @@
<p>
Open the
<a href="https://electronjs.org/docs/api/menu"
<a href="https://www.electronjs.org/docs/latest/api/menu"
>full API documentation<span
>(opens in new window)</span
></a
@ -62,7 +62,7 @@
<ul>
<li>
<a
href="https://developer.apple.com/macos/human-interface-guidelines/menus/menu-anatomy/"
href="https://developer.apple.com/design/human-interface-guidelines/the-menu-bar"
>macOS<span
>(opens in new window)</span
></a
@ -70,7 +70,7 @@
</li>
<li>
<a
href="https://learn.microsoft.com/en-us/previous-versions/windows/desktop/bb226797"
href="https://learn.microsoft.com/en-us/windows/apps/design/controls/menus-and-context-menus"
>Windows<span
>(opens in new window)</span
></a
@ -78,7 +78,7 @@
</li>
<li>
<a
href="https://developer.gnome.org/hig/stable/menu-bars.html.en"
href="https://developer.gnome.org/hig/patterns/controls/menus.html"
>Linux<span
>(opens in new window)</span
></a
@ -111,7 +111,7 @@
<p>
See the full
<a
href="https://electronjs.org/docs/api/web-contents/#event-context-menu"
href="https://www.electronjs.org/docs/latest/api/web-contents/#event-context-menu"
>context-menu event documentation</a
>
for all the available properties.

View file

@ -21,10 +21,10 @@
<p>
Open the full documentation for the
<a href="https://electronjs.org/docs/api/menu">Menu</a>,
<a href="https://electronjs.org/docs/api/accelerator">Accelerator</a>,
<a href="https://www.electronjs.org/docs/latest/api/menu">Menu</a>,
<a href="https://www.electronjs.org/docs/latest/api/accelerator">Accelerator</a>,
and
<a href="https://electronjs.org/docs/api/global-shortcut">globalShortcut</a>
<a href="https://www.electronjs.org/docs/latest/api/global-shortcut">globalShortcut</a>
APIs in your browser.
</p>
@ -56,12 +56,12 @@
<ul>
<li><a
href="https://developer.apple.com/library/mac/documentation/UserExperience/Conceptual/OSXHIGuidelines/Keyboard.html">macOS</a>
href="https://developer.apple.com/design/human-interface-guidelines/keyboards">macOS</a>
</li>
<li><a
href="http://windows.microsoft.com/en-us/windows-10/keyboard-shortcuts">Windows</a></li>
href="https://support.microsoft.com/en-us/windows/keyboard-shortcuts-in-windows-dcc61a57-8ff0-cffe-9796-cb9706c75eec">Windows</a></li>
<li><a
href="https://developer.gnome.org/hig/stable/keyboard-input.html.en">Linux</a></li>
href="https://developer.gnome.org/hig/guidelines/keyboard.html">Linux</a></li>
</ul>
</div>

View file

@ -23,7 +23,7 @@
<p>
Open the
<a href="https://electronjs.org/docs/api/dialog/">
<a href="https://www.electronjs.org/docs/latest/api/dialog/">
full API documentation (opens in new window)
</a>
in your browser.

View file

@ -23,7 +23,7 @@
<p>
Open the
<a href="https://electronjs.org/docs/api/dialog/">
<a href="https://www.electronjs.org/docs/latest/api/dialog/">
full API documentation (opens in new window)
</a>
in your browser.

View file

@ -23,7 +23,7 @@
<p>
Open the
<a href="https://electronjs.org/docs/api/dialog/">
<a href="https://www.electronjs.org/docs/latest/api/dialog/">
full API documentation (opens in new window)
</a>
in your browser.

View file

@ -23,7 +23,7 @@
<p>
Open the
<a href="https://electronjs.org/docs/api/dialog/">
<a href="https://www.electronjs.org/docs/latest/api/dialog/">
full API documentation (opens in new window)
</a>
in your browser.

View file

@ -16,7 +16,7 @@
<p>
Open the
<a href="https://electronjs.org/docs/tutorial/native-file-drag-drop">
<a href="https://www.electronjs.org/docs/latest/tutorial/native-file-drag-drop">
full API documentation (opens in new window)
</a>
in your browser.

View file

@ -17,7 +17,7 @@
<p>This module works in both the main and renderer process.</p>
<p>
Open the
<a href="https://electronjs.org/docs/api/shell">
<a href="https://www.electronjs.org/docs/latest/api/shell">
full API documentation (opens in new window)
</a>
in your browser.

View file

@ -26,7 +26,7 @@
<p>
Open the
<a href="https://electronjs.org/docs/latest/tutorial/notifications">
<a href="https://www.electronjs.org/docs/latest/tutorial/notifications">
full API documentation<span>(opens in new window)</span>
</a>
in your browser.

View file

@ -15,7 +15,7 @@
<p>
Open the
<a href="https://electronjs.org/docs/api/tray">
<a href="https://www.electronjs.org/docs/latest/api/tray">
full API documentation
</a>
in your browser.
@ -29,7 +29,7 @@
On Linux distributions that only have app indicator support, users
will need to install <code>libappindicator1</code> to make the
tray icon work. See the
<a href="https://electronjs.org/docs/api/tray">
<a href="https://www.electronjs.org/docs/latest/api/tray">
full API documentation
</a>
for more details about using Tray on Linux.

View file

@ -1,7 +1,7 @@
// Retrieve information about screen size, displays, cursor position, etc.
//
// For more info, see:
// https://electronjs.org/docs/api/screen
// https://www.electronjs.org/docs/latest/api/screen
const { app, BrowserWindow } = require('electron')

View file

@ -16,7 +16,7 @@
<p>These methods allow you to set and unset the protocols your app should be the default app for. Similar to when a
browser asks to be your default for viewing web pages.</p>
<p>Open the <a href="https://www.electronjs.org/docs/api/protocol">full protocol API documentation</a> in your
<p>Open the <a href="https://www.electronjs.org/docs/latest/api/protocol">full protocol API documentation</a> in your
browser.</p>
-----

View file

@ -14,7 +14,7 @@
</div>
<p>The main process <code>app</code> module can be used to get the path at which your app is located on the user's computer.</p>
<p>In this example, to get that information from the renderer process, we use the <code>ipc</code> module to send a message to the main process requesting the app's path.</p>
<p>See the <a id="electron-docs" href="https://electronjs.org/docs/api/app">app module documentation<span class="u-visible-to-screen-reader">(opens in new window)</span></a> for more.</p>
<p>See the <a id="electron-docs" href="https://www.electronjs.org/docs/latest/api/app">app module documentation<span class="u-visible-to-screen-reader">(opens in new window)</span></a> for more.</p>
</div>
</div>
</div>

View file

@ -15,7 +15,7 @@
</div>
<p>The <code>process</code> module is built into Node.js (therefore you can use this in both the main and renderer processes) and in Electron apps this object has a few more useful properties on it.</p>
<p>The example below gets the version of Electron in use by the app.</p>
<p>See the <a href="https://electronjs.org/docs/api/process">process documentation <span>(opens in new window)</span></a> for more.</p>
<p>See the <a href="https://www.electronjs.org/docs/latest/api/process">process documentation <span>(opens in new window)</span></a> for more.</p>
</div>
</div>
</div>

View file

@ -22,7 +22,7 @@
<p>
Open the
<a href="https://electronjs.org/docs/api/browser-window">
<a href="https://www.electronjs.org/docs/latest/api/browser-window">
full API documentation (opens in new window)
</a>
in your browser.
@ -59,7 +59,7 @@
<p>
For more details, see the
<a href="https://electronjs.org/docs/tutorial/window-customization/">
<a href="https://www.electronjs.org/docs/latest/tutorial/window-customization">
Window Customization
</a>

View file

@ -22,7 +22,7 @@
<p>
Open the
<a href="https://electronjs.org/docs/api/browser-window">
<a href="https://www.electronjs.org/docs/latest/api/browser-window">
full API documentation (opens in new window)
</a>
in your browser.
@ -47,7 +47,7 @@
There are a lot of methods for controlling the state of the window
such as the size, location, and focus status as well as events to
listen to for window changes. Visit the
<a href="https://electronjs.org/docs/api/browser-window">
<a href="https://www.electronjs.org/docs/latest/api/browser-window">
documentation (opens in new window)
</a>
for the full list.

View file

@ -10,5 +10,5 @@ newWindowBtn.addEventListener('click', (event) => {
link.addEventListener('click', (e) => {
e.preventDefault()
shell.openExternal('https://electronjs.org/docs/api/browser-window')
shell.openExternal('https://www.electronjs.org/docs/latest/api/browser-window')
})

View file

@ -22,7 +22,7 @@
<p>
Open the
<a href="https://electronjs.org/docs/api/browser-window">
<a href="https://www.electronjs.org/docs/latest/api/browser-window">
full API documentation (opens in new window)
</a>
in your browser.