docs: fix formatting of JS comments for API reference (#11148)

This commit is contained in:
Olivier Lemasle 2024-09-26 15:05:56 +02:00 committed by GitHub
parent 9e46e07784
commit 58bab8b35b
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
5 changed files with 15 additions and 15 deletions

View File

@ -90,7 +90,7 @@ export class Menu extends MenuItemBase {
/**
* Add a menu item to the end of this menu.
*
* ## Platform-specific:
* #### Platform-specific:
*
* - **macOS:** Only {@linkcode Submenu}s can be added to a {@linkcode Menu}.
*/
@ -119,7 +119,7 @@ export class Menu extends MenuItemBase {
/**
* Add a menu item to the beginning of this menu.
*
* ## Platform-specific:
* #### Platform-specific:
*
* - **macOS:** Only {@linkcode Submenu}s can be added to a {@linkcode Menu}.
*/
@ -148,7 +148,7 @@ export class Menu extends MenuItemBase {
/**
* Add a menu item to the specified position in this menu.
*
* ## Platform-specific:
* #### Platform-specific:
*
* - **macOS:** Only {@linkcode Submenu}s can be added to a {@linkcode Menu}.
*/

View File

@ -90,7 +90,7 @@ export class Submenu extends MenuItemBase {
/**
* Add a menu item to the end of this submenu.
*
* ## Platform-specific:
* #### Platform-specific:
*
* - **macOS:** Only {@linkcode Submenu}s can be added to a {@linkcode Menu}.
*/
@ -119,7 +119,7 @@ export class Submenu extends MenuItemBase {
/**
* Add a menu item to the beginning of this submenu.
*
* ## Platform-specific:
* #### Platform-specific:
*
* - **macOS:** Only {@linkcode Submenu}s can be added to a {@linkcode Menu}.
*/
@ -148,7 +148,7 @@ export class Submenu extends MenuItemBase {
/**
* Add a menu item to the specified position in this submenu.
*
* ## Platform-specific:
* #### Platform-specific:
*
* - **macOS:** Only {@linkcode Submenu}s can be added to a {@linkcode Menu}.
*/

View File

@ -231,7 +231,7 @@ export class TrayIcon extends Resource {
/**
* Sets the tooltip for this tray icon.
*
* ## Platform-specific:
* #### Platform-specific:
*
* - **Linux:** Unsupported
*/
@ -242,7 +242,7 @@ export class TrayIcon extends Resource {
/**
* Sets the tooltip for this tray icon.
*
* ## Platform-specific:
* #### Platform-specific:
*
* - **Linux:** The title will not be shown unless there is an icon
* as well. The title is useful for numerical and other frequently

View File

@ -5,7 +5,7 @@
/**
* Provides APIs to create webviews, communicate with other webviews and manipulate the current webview.
*
* ## Webview events
* #### Webview events
*
* Events can be listened to using {@link Webview.listen}:
* ```typescript
@ -687,7 +687,7 @@ interface WebviewOptions {
/**
* Whether page zooming by hotkeys is enabled
*
* ## Platform-specific:
* #### Platform-specific:
*
* - **Windows**: Controls WebView2's [`IsZoomControlEnabled`](https://learn.microsoft.com/en-us/microsoft-edge/webview2/reference/winrt/microsoft_web_webview2_core/corewebview2settings?view=webview2-winrt-1.0.2420.47#iszoomcontrolenabled) setting.
* - **MacOS / Linux**: Injects a polyfill that zooms in and out with `ctrl/command` + `-/=`,

View File

@ -5,7 +5,7 @@
/**
* Provides APIs to create windows, communicate with other windows and manipulate the current window.
*
* ## Window events
* #### Window events
*
* Events can be listened to using {@link Window.listen}:
* ```typescript
@ -1651,7 +1651,7 @@ class Window {
/**
* Sets whether the window should be visible on all workspaces or virtual desktops.
*
* ## Platform-specific
* #### Platform-specific
*
* - **Windows / iOS / Android:** Unsupported.
*
@ -2058,7 +2058,7 @@ enum Effect {
/**
* **Windows 7/10/11(22H1) Only**
*
* ## Notes
* #### Notes
*
* This effect has bad performance when resizing/dragging the window on Windows 11 build 22621.
*/
@ -2066,7 +2066,7 @@ enum Effect {
/**
* **Windows 10/11**
*
* ## Notes
* #### Notes
*
* This effect has bad performance when resizing/dragging the window on Windows 10 v1903+ and Windows 11 build 22000.
*/
@ -2247,7 +2247,7 @@ interface WindowOptions {
parent?: Window | WebviewWindow | string
/** Whether the window should be visible on all workspaces or virtual desktops.
*
* ## Platform-specific
* #### Platform-specific
*
* - **Windows / iOS / Android:** Unsupported.
*