Skip to content

Commit

Permalink
docs: fix formatting of JS comments for API reference (#11148)
Browse files Browse the repository at this point in the history
  • Loading branch information
olivierlemasle authored Sep 26, 2024
1 parent 9e46e07 commit 58bab8b
Show file tree
Hide file tree
Showing 5 changed files with 15 additions and 15 deletions.
6 changes: 3 additions & 3 deletions packages/api/src/menu/menu.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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}.
*/
Expand Down Expand Up @@ -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}.
*/
Expand Down Expand Up @@ -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}.
*/
Expand Down
6 changes: 3 additions & 3 deletions packages/api/src/menu/submenu.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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}.
*/
Expand Down Expand Up @@ -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}.
*/
Expand Down Expand Up @@ -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}.
*/
Expand Down
4 changes: 2 additions & 2 deletions packages/api/src/tray.ts
Original file line number Diff line number Diff line change
Expand Up @@ -231,7 +231,7 @@ export class TrayIcon extends Resource {
/**
* Sets the tooltip for this tray icon.
*
* ## Platform-specific:
* #### Platform-specific:
*
* - **Linux:** Unsupported
*/
Expand All @@ -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
Expand Down
4 changes: 2 additions & 2 deletions packages/api/src/webview.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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` + `-/=`,
Expand Down
10 changes: 5 additions & 5 deletions packages/api/src/window.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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.
*
Expand Down Expand Up @@ -2058,15 +2058,15 @@ 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.
*/
Blur = 'blur',
/**
* **Windows 10/11**
*
* ## Notes
* #### Notes
*
* This effect has bad performance when resizing/dragging the window on Windows 10 v1903+ and Windows 11 build 22000.
*/
Expand Down Expand Up @@ -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.
*
Expand Down

0 comments on commit 58bab8b

Please sign in to comment.