From 2954493d466e7abb2be45f1814bc22e56a979138 Mon Sep 17 00:00:00 2001 From: "claude[bot]" <209825114+claude[bot]@users.noreply.github.com> Date: Tue, 27 Oct 2026 17:47:53 -0700 Subject: [PATCH] docs: fix incorrect heading levels (#55407) Several API entries were one heading level too deep relative to their sibling events and methods, or skipped a level under their section. Claude-Session: https://claude.ai/code/session_01KX1hkKfxeSmmXK7rv1wNCE Co-authored-by: Claude --- docs/api/command-line-switches.md | 2 +- docs/api/crash-reporter.md | 6 +++--- docs/api/local-ai-handler.md | 2 +- docs/api/push-notifications.md | 2 +- docs/api/webview-tag.md | 10 +++++----- docs/development/multi-monitor-testing.md | 6 +++--- 6 files changed, 14 insertions(+), 14 deletions(-) diff --git a/docs/api/command-line-switches.md b/docs/api/command-line-switches.md index e4fd85cc3d..196c9c627e 100644 --- a/docs/api/command-line-switches.md +++ b/docs/api/command-line-switches.md @@ -355,7 +355,7 @@ Activate inspector on host:port and break at start of user script. Default host: Aliased to `--debug-brk=[host:]port`. -#### `--inspect-brk-node[=[host:]port]` +### `--inspect-brk-node[=[host:]port]` Activate inspector on `host:port` and break at start of the first internal JavaScript script executed when the inspector is available. diff --git a/docs/api/crash-reporter.md b/docs/api/crash-reporter.md index 884a8ae4f3..5493fc476b 100644 --- a/docs/api/crash-reporter.md +++ b/docs/api/crash-reporter.md @@ -277,15 +277,15 @@ If the crash reporter is started in the main process, Node child processes are monitored automatically. There is no way to start the crash reporter from a Node child process. -#### `process.crashReporter.getParameters()` +### `process.crashReporter.getParameters()` See [`crashReporter.getParameters()`](#crashreportergetparameters). -#### `process.crashReporter.addExtraParameter(key, value)` +### `process.crashReporter.addExtraParameter(key, value)` See [`crashReporter.addExtraParameter(key, value)`](#crashreporteraddextraparameterkey-value). -#### `process.crashReporter.removeExtraParameter(key)` +### `process.crashReporter.removeExtraParameter(key)` See [`crashReporter.removeExtraParameter(key)`](#crashreporterremoveextraparameterkey). diff --git a/docs/api/local-ai-handler.md b/docs/api/local-ai-handler.md index 89ab2ef4d0..8d8d647c85 100644 --- a/docs/api/local-ai-handler.md +++ b/docs/api/local-ai-handler.md @@ -11,7 +11,7 @@ This module is intended to be used by a script registered to a session via The `localAIHandler` module has the following methods: -#### `localAIHandler.setPromptAPIHandler(promptAPIHandler)` _Experimental_ +### `localAIHandler.setPromptAPIHandler(promptAPIHandler)` _Experimental_ * `promptAPIHandler` Function\ * `details` Object diff --git a/docs/api/push-notifications.md b/docs/api/push-notifications.md index 099689d927..bec41e227f 100644 --- a/docs/api/push-notifications.md +++ b/docs/api/push-notifications.md @@ -22,7 +22,7 @@ pushNotifications.on('received-apns-notification', (event, userInfo) => { The `pushNotification` module emits the following events: -#### Event: 'received-apns-notification' _macOS_ +### Event: 'received-apns-notification' _macOS_ Returns: diff --git a/docs/api/webview-tag.md b/docs/api/webview-tag.md index 547748ecb2..c604258af5 100644 --- a/docs/api/webview-tag.md +++ b/docs/api/webview-tag.md @@ -479,7 +479,7 @@ Executes editing command `cut` in page. Executes editing command `copy` in page. -#### `.centerSelection()` +### `.centerSelection()` Centers the current text selection in page. @@ -503,15 +503,15 @@ Executes editing command `selectAll` in page. Executes editing command `unselect` in page. -#### `.scrollToTop()` +### `.scrollToTop()` Scrolls to the top of the current ``. -#### `.scrollToBottom()` +### `.scrollToBottom()` Scrolls to the bottom of the current ``. -#### `.adjustSelection(options)` +### `.adjustSelection(options)` * `options` Object * `start` Number (optional) - Amount to shift the start index of the current selection. @@ -1048,7 +1048,7 @@ Returns: Emitted when a link is clicked in DevTools or 'Open in new tab' is selected for a link in its context menu. -#### Event: 'devtools-search-query' +### Event: 'devtools-search-query' Returns: diff --git a/docs/development/multi-monitor-testing.md b/docs/development/multi-monitor-testing.md index 3bdcc62625..9ba65e1227 100644 --- a/docs/development/multi-monitor-testing.md +++ b/docs/development/multi-monitor-testing.md @@ -4,7 +4,7 @@ The `virtualDisplay` addon leverages macOS CoreGraphics APIs to create virtual d ## Methods -#### `virtualDisplay.create([options])` +### `virtualDisplay.create([options])` Creates a virtual display and returns a display ID. @@ -30,7 +30,7 @@ const displayId = virtualDisplay.create({ > [!NOTE] > It is recommended to call [`virtualDisplay.forceCleanup()`](#virtualdisplayforcecleanup) before every test to prevent display creation from failing in that test. macOS CoreGraphics maintains an internal display ID allocation pool that can become corrupted when virtual displays are created and destroyed rapidly during testing. Without proper cleanup, subsequent display creation may fail with inconsistent display IDs, resulting in test flakiness. -#### `virtualDisplay.forceCleanup()` +### `virtualDisplay.forceCleanup()` Performs a complete cleanup of all virtual displays and resets the macOS CoreGraphics display system. @@ -40,7 +40,7 @@ beforeEach(() => { }) ``` -#### `virtualDisplay.destroy(displayId)` +### `virtualDisplay.destroy(displayId)` Removes the virtual display.