From 255064659fb22d144c72fe79eb31c0a13c846bd6 Mon Sep 17 00:00:00 2001 From: Milan Burda Date: Thu, 10 Aug 2023 11:55:52 +0200 Subject: [PATCH] docs: update external links (#39421) --- docs/api/cookies.md | 4 ++-- docs/api/session.md | 2 +- docs/api/web-contents.md | 8 ++++---- docs/api/webview-tag.md | 6 +++--- docs/development/build-instructions-windows.md | 4 ++-- docs/development/debugging-on-windows.md | 2 +- docs/development/issues.md | 2 +- docs/fiddles/menus/customize-menus/index.html | 10 +++++----- docs/fiddles/menus/shortcuts/index.html | 12 ++++++------ .../native-ui/dialogs/error-dialog/index.html | 2 +- .../native-ui/dialogs/information-dialog/index.html | 2 +- .../dialogs/open-file-or-directory/index.html | 2 +- .../fiddles/native-ui/dialogs/save-dialog/index.html | 2 +- docs/fiddles/native-ui/drag-and-drop/index.html | 2 +- .../native-ui/external-links-file-manager/index.html | 2 +- docs/fiddles/native-ui/notifications/index.html | 2 +- docs/fiddles/native-ui/tray/index.html | 4 ++-- docs/fiddles/screen/fit-screen/main.js | 2 +- .../launch-app-from-URL-in-another-app/index.html | 2 +- .../app-information/index.html | 2 +- .../get-version-information/index.html | 2 +- .../manage-windows/frameless-window/index.html | 4 ++-- .../manage-windows/manage-window-state/index.html | 4 ++-- .../windows/manage-windows/new-window/renderer.js | 2 +- .../windows/manage-windows/window-events/index.html | 2 +- docs/tutorial/automated-testing.md | 2 +- docs/tutorial/electron-timelines.md | 2 +- docs/tutorial/introduction.md | 2 +- docs/tutorial/tutorial-6-publishing-updating.md | 2 +- docs/tutorial/windows-store-guide.md | 6 +++--- 30 files changed, 51 insertions(+), 51 deletions(-) diff --git a/docs/api/cookies.md b/docs/api/cookies.md index 0c733266c9..41e448b713 100644 --- a/docs/api/cookies.md +++ b/docs/api/cookies.md @@ -22,7 +22,7 @@ session.defaultSession.cookies.get({}) }) // Query all cookies associated with a specific url. -session.defaultSession.cookies.get({ url: 'http://www.github.com' }) +session.defaultSession.cookies.get({ url: 'https://www.github.com' }) .then((cookies) => { console.log(cookies) }).catch((error) => { @@ -31,7 +31,7 @@ session.defaultSession.cookies.get({ url: 'http://www.github.com' }) // Set a cookie with the given cookie data; // may overwrite equivalent cookies if they exist. -const cookie = { url: 'http://www.github.com', name: 'dummy_name', value: 'dummy' } +const cookie = { url: 'https://www.github.com', name: 'dummy_name', value: 'dummy' } session.defaultSession.cookies.set(cookie) .then(() => { // success diff --git a/docs/api/session.md b/docs/api/session.md index 7be9461b10..d157e3464a 100644 --- a/docs/api/session.md +++ b/docs/api/session.md @@ -13,7 +13,7 @@ property of [`WebContents`](web-contents.md), or from the `session` module. const { BrowserWindow } = require('electron') const win = new BrowserWindow({ width: 800, height: 600 }) -win.loadURL('http://github.com') +win.loadURL('https://github.com') const ses = win.webContents.session console.log(ses.getUserAgent()) diff --git a/docs/api/web-contents.md b/docs/api/web-contents.md index 0b4cdfe4a0..3e1770d91f 100644 --- a/docs/api/web-contents.md +++ b/docs/api/web-contents.md @@ -13,7 +13,7 @@ the [`BrowserWindow`](browser-window.md) object. An example of accessing the const { BrowserWindow } = require('electron') const win = new BrowserWindow({ width: 800, height: 1500 }) -win.loadURL('http://github.com') +win.loadURL('https://github.com') const contents = win.webContents console.log(contents) @@ -895,7 +895,7 @@ const win = new BrowserWindow({ webPreferences: { offscreen: true } }) win.webContents.on('paint', (event, dirty, image) => { // updateBitmap(dirty, image.getBitmap()) }) -win.loadURL('http://github.com') +win.loadURL('https://github.com') ``` #### Event: 'devtools-reload-page' @@ -1071,7 +1071,7 @@ Returns `string` - The URL of the current web page. ```javascript const { BrowserWindow } = require('electron') const win = new BrowserWindow({ width: 800, height: 600 }) -win.loadURL('http://github.com').then(() => { +win.loadURL('https://github.com').then(() => { const currentURL = win.webContents.getURL() console.log(currentURL) }) @@ -1651,7 +1651,7 @@ const path = require('path') const os = require('os') const win = new BrowserWindow() -win.loadURL('http://github.com') +win.loadURL('https://github.com') win.webContents.on('did-finish-load', () => { // Use default printing options diff --git a/docs/api/webview-tag.md b/docs/api/webview-tag.md index 322a5b6d39..60927b5ce3 100644 --- a/docs/api/webview-tag.md +++ b/docs/api/webview-tag.md @@ -112,7 +112,7 @@ The `src` attribute can also accept data URLs, such as ### `nodeintegration` ```html - + ``` A `boolean`. When this attribute is present the guest page in `webview` will have node @@ -123,7 +123,7 @@ page. ### `nodeintegrationinsubframes` ```html - + ``` A `boolean` for the experimental option for enabling NodeJS support in sub-frames such as iframes @@ -161,7 +161,7 @@ after this script has finished executing. ### `httpreferrer` ```html - + ``` A `string` that sets the referrer URL for the guest page. diff --git a/docs/development/build-instructions-windows.md b/docs/development/build-instructions-windows.md index d47bb3a78d..8d7e794330 100644 --- a/docs/development/build-instructions-windows.md +++ b/docs/development/build-instructions-windows.md @@ -23,7 +23,7 @@ store from `.pdb` files. SDK, open Visual Studio Installer, select `Modify` → `Individual Components`, scroll down and select the appropriate Windows SDK to install. Another option would be to look at the - [Windows SDK and emulator archive](https://developer.microsoft.com/en-us/windows/downloads/sdk-archive) + [Windows SDK and emulator archive](https://developer.microsoft.com/en-us/windows/downloads/sdk-archive/) and download the standalone version of the SDK respectively. * The SDK Debugging Tools must also be installed. If the Windows 10 SDK was installed via the Visual Studio installer, then they can be installed by going to: @@ -32,7 +32,7 @@ store from `.pdb` files. Or, you can download the standalone SDK installer and use it to install the Debugging Tools. If you don't currently have a Windows installation, -[dev.microsoftedge.com](https://developer.microsoft.com/en-us/microsoft-edge/tools/vms/) +[developer.microsoft.com](https://developer.microsoft.com/en-us/windows/downloads/virtual-machines/) has timebombed versions of Windows that you can use to build Electron. Building Electron is done entirely with command-line scripts and cannot be done diff --git a/docs/development/debugging-on-windows.md b/docs/development/debugging-on-windows.md index 855fe5f951..6aecc0d381 100644 --- a/docs/development/debugging-on-windows.md +++ b/docs/development/debugging-on-windows.md @@ -88,7 +88,7 @@ is doing to the operating system, it can be a valuable resource. For an introduction to ProcMon's basic and advanced debugging features, go check out [this video tutorial][procmon-instructions] provided by Microsoft. -[sys-internals]: https://technet.microsoft.com/en-us/sysinternals/processmonitor.aspx +[sys-internals]: https://learn.microsoft.com/en-us/sysinternals/downloads/procmon [procmon-instructions]: https://learn.microsoft.com/en-us/shows/defrag-tools/4-process-monitor ## Using WinDbg diff --git a/docs/development/issues.md b/docs/development/issues.md index 88e99eb734..76b126bf07 100644 --- a/docs/development/issues.md +++ b/docs/development/issues.md @@ -24,7 +24,7 @@ contribute: ## Asking for General Help -[The Electron website](https://electronjs.org/community) has a +[The Electron website](https://www.electronjs.org/community) has a list of resources for getting programming help, reporting security issues, contributing, and more. Please use the issue tracker for bugs only! diff --git a/docs/fiddles/menus/customize-menus/index.html b/docs/fiddles/menus/customize-menus/index.html index 9d077d35d5..798745c173 100644 --- a/docs/fiddles/menus/customize-menus/index.html +++ b/docs/fiddles/menus/customize-menus/index.html @@ -21,7 +21,7 @@

Open the - full API documentation(opens in new window)

  • macOS(opens in new window)
  • Windows(opens in new window)
  • Linux(opens in new window) See the full context-menu event documentation for all the available properties. diff --git a/docs/fiddles/menus/shortcuts/index.html b/docs/fiddles/menus/shortcuts/index.html index 6ab24f828b..cabca0bf71 100644 --- a/docs/fiddles/menus/shortcuts/index.html +++ b/docs/fiddles/menus/shortcuts/index.html @@ -21,10 +21,10 @@

    Open the full documentation for the - Menu, - Accelerator, + Menu, + Accelerator, and - globalShortcut + globalShortcut APIs in your browser.

    @@ -56,12 +56,12 @@ diff --git a/docs/fiddles/native-ui/dialogs/error-dialog/index.html b/docs/fiddles/native-ui/dialogs/error-dialog/index.html index 4f5c0a675f..bce7d0db84 100644 --- a/docs/fiddles/native-ui/dialogs/error-dialog/index.html +++ b/docs/fiddles/native-ui/dialogs/error-dialog/index.html @@ -23,7 +23,7 @@

    Open the - + full API documentation (opens in new window) in your browser. diff --git a/docs/fiddles/native-ui/dialogs/information-dialog/index.html b/docs/fiddles/native-ui/dialogs/information-dialog/index.html index 005674e99b..4823946cb8 100644 --- a/docs/fiddles/native-ui/dialogs/information-dialog/index.html +++ b/docs/fiddles/native-ui/dialogs/information-dialog/index.html @@ -23,7 +23,7 @@

    Open the - + full API documentation (opens in new window) in your browser. diff --git a/docs/fiddles/native-ui/dialogs/open-file-or-directory/index.html b/docs/fiddles/native-ui/dialogs/open-file-or-directory/index.html index dcf66587a8..226888218f 100644 --- a/docs/fiddles/native-ui/dialogs/open-file-or-directory/index.html +++ b/docs/fiddles/native-ui/dialogs/open-file-or-directory/index.html @@ -23,7 +23,7 @@

    Open the - + full API documentation (opens in new window) in your browser. diff --git a/docs/fiddles/native-ui/dialogs/save-dialog/index.html b/docs/fiddles/native-ui/dialogs/save-dialog/index.html index cd6b0ad4cc..6165af46ae 100644 --- a/docs/fiddles/native-ui/dialogs/save-dialog/index.html +++ b/docs/fiddles/native-ui/dialogs/save-dialog/index.html @@ -23,7 +23,7 @@

    Open the - + full API documentation (opens in new window) in your browser. diff --git a/docs/fiddles/native-ui/drag-and-drop/index.html b/docs/fiddles/native-ui/drag-and-drop/index.html index 53aee6ddfc..5f7d4853c3 100644 --- a/docs/fiddles/native-ui/drag-and-drop/index.html +++ b/docs/fiddles/native-ui/drag-and-drop/index.html @@ -16,7 +16,7 @@

    Open the - + full API documentation (opens in new window) in your browser. diff --git a/docs/fiddles/native-ui/external-links-file-manager/index.html b/docs/fiddles/native-ui/external-links-file-manager/index.html index cd4bd02153..32e6dd1da2 100644 --- a/docs/fiddles/native-ui/external-links-file-manager/index.html +++ b/docs/fiddles/native-ui/external-links-file-manager/index.html @@ -17,7 +17,7 @@

    This module works in both the main and renderer process.

    Open the - + full API documentation (opens in new window) in your browser. diff --git a/docs/fiddles/native-ui/notifications/index.html b/docs/fiddles/native-ui/notifications/index.html index b7d86f23aa..27725a448d 100644 --- a/docs/fiddles/native-ui/notifications/index.html +++ b/docs/fiddles/native-ui/notifications/index.html @@ -26,7 +26,7 @@

    Open the - + full API documentation(opens in new window) in your browser. diff --git a/docs/fiddles/native-ui/tray/index.html b/docs/fiddles/native-ui/tray/index.html index 482abeeab8..22156f3923 100644 --- a/docs/fiddles/native-ui/tray/index.html +++ b/docs/fiddles/native-ui/tray/index.html @@ -15,7 +15,7 @@

    Open the - + full API documentation in your browser. @@ -29,7 +29,7 @@ On Linux distributions that only have app indicator support, users will need to install libappindicator1 to make the tray icon work. See the - + full API documentation for more details about using Tray on Linux. diff --git a/docs/fiddles/screen/fit-screen/main.js b/docs/fiddles/screen/fit-screen/main.js index 8fbaabcc5b..559e0f24e4 100644 --- a/docs/fiddles/screen/fit-screen/main.js +++ b/docs/fiddles/screen/fit-screen/main.js @@ -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') diff --git a/docs/fiddles/system/protocol-handler/launch-app-from-URL-in-another-app/index.html b/docs/fiddles/system/protocol-handler/launch-app-from-URL-in-another-app/index.html index a3ddd1b933..bc0e8c569c 100644 --- a/docs/fiddles/system/protocol-handler/launch-app-from-URL-in-another-app/index.html +++ b/docs/fiddles/system/protocol-handler/launch-app-from-URL-in-another-app/index.html @@ -16,7 +16,7 @@

    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.

    -

    Open the full protocol API documentation in your +

    Open the full protocol API documentation in your browser.

    ----- diff --git a/docs/fiddles/system/system-app-user-information/app-information/index.html b/docs/fiddles/system/system-app-user-information/app-information/index.html index 68e3143ea7..b08a8d0c82 100644 --- a/docs/fiddles/system/system-app-user-information/app-information/index.html +++ b/docs/fiddles/system/system-app-user-information/app-information/index.html @@ -14,7 +14,7 @@

    The main process app module can be used to get the path at which your app is located on the user's computer.

    In this example, to get that information from the renderer process, we use the ipc module to send a message to the main process requesting the app's path.

    -

    See the app module documentation(opens in new window) for more.

    +

    See the app module documentation(opens in new window) for more.

    diff --git a/docs/fiddles/system/system-information/get-version-information/index.html b/docs/fiddles/system/system-information/get-version-information/index.html index b19df1f2b5..de0a39b423 100644 --- a/docs/fiddles/system/system-information/get-version-information/index.html +++ b/docs/fiddles/system/system-information/get-version-information/index.html @@ -15,7 +15,7 @@

    The process 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.

    The example below gets the version of Electron in use by the app.

    -

    See the process documentation (opens in new window) for more.

    +

    See the process documentation (opens in new window) for more.

    diff --git a/docs/fiddles/windows/manage-windows/frameless-window/index.html b/docs/fiddles/windows/manage-windows/frameless-window/index.html index 78895119dc..5041b1939e 100644 --- a/docs/fiddles/windows/manage-windows/frameless-window/index.html +++ b/docs/fiddles/windows/manage-windows/frameless-window/index.html @@ -22,7 +22,7 @@

    Open the - + full API documentation (opens in new window) in your browser. @@ -59,7 +59,7 @@

    For more details, see the - + Window Customization diff --git a/docs/fiddles/windows/manage-windows/manage-window-state/index.html b/docs/fiddles/windows/manage-windows/manage-window-state/index.html index 3521dd66ac..eca1d0a475 100644 --- a/docs/fiddles/windows/manage-windows/manage-window-state/index.html +++ b/docs/fiddles/windows/manage-windows/manage-window-state/index.html @@ -22,7 +22,7 @@

    Open the - + full API documentation (opens in new window) 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 - + documentation (opens in new window) for the full list. diff --git a/docs/fiddles/windows/manage-windows/new-window/renderer.js b/docs/fiddles/windows/manage-windows/new-window/renderer.js index 0b5288d4f9..3ce7216148 100644 --- a/docs/fiddles/windows/manage-windows/new-window/renderer.js +++ b/docs/fiddles/windows/manage-windows/new-window/renderer.js @@ -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') }) diff --git a/docs/fiddles/windows/manage-windows/window-events/index.html b/docs/fiddles/windows/manage-windows/window-events/index.html index b89dca080c..028a70b6c1 100644 --- a/docs/fiddles/windows/manage-windows/window-events/index.html +++ b/docs/fiddles/windows/manage-windows/window-events/index.html @@ -22,7 +22,7 @@

    Open the - + full API documentation (opens in new window) in your browser. diff --git a/docs/tutorial/automated-testing.md b/docs/tutorial/automated-testing.md index 650d5ca882..61206412ba 100644 --- a/docs/tutorial/automated-testing.md +++ b/docs/tutorial/automated-testing.md @@ -103,7 +103,7 @@ const driver = new webdriver.Builder() }) .forBrowser('chrome') // note: use .forBrowser('electron') for selenium-webdriver <= 3.6.0 .build() -driver.get('http://www.google.com') +driver.get('https://www.google.com') driver.findElement(webdriver.By.name('q')).sendKeys('webdriver') driver.findElement(webdriver.By.name('btnG')).click() driver.wait(() => { diff --git a/docs/tutorial/electron-timelines.md b/docs/tutorial/electron-timelines.md index 4f671fe8c0..bc6421c917 100644 --- a/docs/tutorial/electron-timelines.md +++ b/docs/tutorial/electron-timelines.md @@ -43,7 +43,7 @@ check out our [Electron Versioning](./electron-versioning.md) doc. **Historical changes:** -* Since Electron 5, Electron has been publicizing its release dates ([see blog post](https://electronjs.org/blog/electron-5-0-timeline)). +* Since Electron 5, Electron has been publicizing its release dates ([see blog post](https://www.electronjs.org/blog/electron-5-0-timeline)). * Since Electron 6, Electron major versions have been targeting every other Chromium major version. Each Electron stable should happen on the same day as Chrome stable ([see blog post](https://www.electronjs.org/blog/12-week-cadence)). * Since Electron 16, Electron has been releasing major versions on an 8-week cadence in accordance to Chrome's change to a 4-week release cadence ([see blog post](https://www.electronjs.org/blog/8-week-cadence)). diff --git a/docs/tutorial/introduction.md b/docs/tutorial/introduction.md index b7bfba0734..ad310790b7 100644 --- a/docs/tutorial/introduction.md +++ b/docs/tutorial/introduction.md @@ -71,6 +71,6 @@ Are you getting stuck anywhere? Here are a few links to places to look: [chromium]: https://www.chromium.org/ [discord]: https://discord.gg/electronjs [examples]: examples.md -[fiddle]: https://electronjs.org/fiddle +[fiddle]: https://www.electronjs.org/fiddle [issue-tracker]: https://github.com/electron/electron/issues [node]: https://nodejs.org/ diff --git a/docs/tutorial/tutorial-6-publishing-updating.md b/docs/tutorial/tutorial-6-publishing-updating.md index bb099bef9b..81fb7deda1 100644 --- a/docs/tutorial/tutorial-6-publishing-updating.md +++ b/docs/tutorial/tutorial-6-publishing-updating.md @@ -221,7 +221,7 @@ rest of our docs and happy developing! If you have questions, please stop by our [autoupdater]: ../api/auto-updater.md [code-signed]: ./code-signing.md [discord server]: https://discord.gg/electronjs -[electron fiddle]: https://electronjs.org/fiddle +[electron fiddle]: https://www.electronjs.org/fiddle [fiddle-build]: https://github.com/electron/fiddle/blob/main/.github/workflows/build.yaml [fiddle-forge-config]: https://github.com/electron/fiddle/blob/main/forge.config.js [github actions]: https://github.com/features/actions diff --git a/docs/tutorial/windows-store-guide.md b/docs/tutorial/windows-store-guide.md index 762ab02585..d0755660fc 100644 --- a/docs/tutorial/windows-store-guide.md +++ b/docs/tutorial/windows-store-guide.md @@ -148,9 +148,9 @@ You will receive two files: `DesktopAppConverter.zip` and `BaseImage-14316.wim`. Once installation succeeded, you can move on to compiling your Electron app. -[windows-sdk]: https://developer.microsoft.com/en-us/windows/downloads/windows-10-sdk -[app-converter]: https://docs.microsoft.com/en-us/windows/uwp/porting/desktop-to-uwp-run-desktop-app-converter -[add-appxpackage]: https://technet.microsoft.com/en-us/library/hh856048.aspx +[windows-sdk]: https://developer.microsoft.com/en-us/windows/downloads/windows-sdk/ +[app-converter]: https://learn.microsoft.com/en-us/windows/msix/packaging-tool/tool-overview +[add-appxpackage]: https://learn.microsoft.com/en-us/previous-versions//hh856048(v=technet.10)?redirectedfrom=MSDN [electron-packager]: https://github.com/electron/electron-packager [electron-windows-store]: https://github.com/electron-userland/electron-windows-store [background-task]: https://github.com/felixrieseberg/electron-uwp-background