Skip to content

docs: fix code block line highlighting after docs reformats - #55097

Merged
jkleinsc merged 2 commits into
mainfrom
docs/fix-code-block-highlight-ranges
Oct 19, 2026
Merged

jkleinsc merged 2 commits into
mainfrom
docs/fix-code-block-highlight-ranges

Conversation

@claude

@claude claude Bot commented Oct 18, 2026 •

Copy link
Copy Markdown
Contributor

Requested by David Babenko-Sanders · Slack thread

This updates line-highlight ranges in the IPC and preload tutorials that drifted when the docs code blocks were automatically reformatted, so they point at the same code they highlighted originally, without touching the code blocks themselves. An audit of every highlighted block in docs/ showed the oxfmt reformat (#54140) didn't shift any ranges; the drift came from the earlier lint autofixes, mainly the import/order blank line added in #42113 (plus an if/else collapse in #38260). It also fixes ranges in the automated testing and code signing guides that drifted after later content edits (#41081, #41535), and it supersedes #55086 (#55086), which fixed the preload tutorial by changing the code instead.

Description of Change

See above. docs/tutorial/tutorial-3-preload.md: {2,8-10} -> {3,9-11} and {1,15} -> {1,16}; docs/tutorial/ipc.md: {6-13,25} -> {7-12,24} and {11-26} -> {12-27}; docs/tutorial/automated-testing.md: {5} -> {4} and {6-7} -> {5-6}; docs/tutorial/code-signing.md: {10-11} -> {10-14} and {12-13} -> {12-16}.

Checklist

  • I have filled out the PR description
  • relevant API documentation, tutorials, and examples are updated and follow the documentation style guide

Release Notes

Notes: none

🤖 Generated with Claude Code

https://claude.ai/code/session_01A9enZ3jn8BveASiB5p9G1E

Several highlighted code blocks in the IPC and preload tutorials had their
line-highlight ranges drift when the docs code blocks were auto-formatted
(the `import/order` blank line added in #42113, and the if/else collapse in
#38260), so the highlights now land one line off from the code they were
meant to call out. Update the ranges to point back at the originally
highlighted code without changing the code blocks themselves.

Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
Claude-Session: https://claude.ai/code/session_01A9enZ3jn8BveASiB5p9G1E
@electron-cation electron-cation Bot added documentation 📓 semver/patch backwards-compatible bug fixes labels Oct 18, 2026
The Playwright examples in automated-testing.md lost a line when their two
`require` statements were merged, leaving the highlights one line late, and
the code signing examples replaced a two-line certificate option with a
`windowsSign` object while keeping the old two-line ranges. Point the
highlights back at the intended code and cover the whole `windowsSign`
object.

Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
Claude-Session: https://claude.ai/code/session_01A9enZ3jn8BveASiB5p9G1E
@claude claude Bot added semver/none target/42-x-y PR should also be added to the "42-x-y" branch. target/43-x-y PR should also be added to the "43-x-y" branch. target/44-x-y PR should also be added to the "44-x-y" branch. target/45-x-y PR should also be added to the "45-x-y" branch. and removed semver/none labels Oct 18, 2026
@claude
claude Bot marked this pull request as ready for review October 18, 2026 07:19
@jkleinsc
jkleinsc merged commit 40ebdcc into main Oct 19, 2026
83 checks passed
@release-clerk

release-clerk Bot commented Oct 19, 2026

Copy link
Copy Markdown

No Release Notes

@trop

trop Bot commented Oct 19, 2026

Copy link
Copy Markdown
Contributor

I have automatically backported this PR to "44-x-y", please check out #55102

@trop

trop Bot commented Oct 19, 2026

Copy link
Copy Markdown
Contributor

I have automatically backported this PR to "43-x-y", please check out #55103

@trop trop Bot removed the target/44-x-y PR should also be added to the "44-x-y" branch. label Oct 19, 2026
@trop

trop Bot commented Oct 19, 2026

Copy link
Copy Markdown
Contributor

I have automatically backported this PR to "42-x-y", please check out #55104

@trop

trop Bot commented Oct 19, 2026

Copy link
Copy Markdown
Contributor

I have automatically backported this PR to "45-x-y", please check out #55105

@trop trop Bot removed the target/43-x-y PR should also be added to the "43-x-y" branch. label Oct 19, 2026
@trop trop Bot added in-flight/42-x-y in-flight/45-x-y merged/45-x-y PR was merged to the "45-x-y" branch. merged/42-x-y PR was merged to the "42-x-y" branch. merged/44-x-y PR was merged to the "44-x-y" branch. merged/43-x-y PR was merged to the "43-x-y" branch. and removed target/42-x-y PR should also be added to the "42-x-y" branch. target/45-x-y PR should also be added to the "45-x-y" branch. in-flight/45-x-y in-flight/42-x-y in-flight/44-x-y in-flight/43-x-y labels Oct 19, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

46-x-y documentation 📓 merged/42-x-y PR was merged to the "42-x-y" branch. merged/43-x-y PR was merged to the "43-x-y" branch. merged/44-x-y PR was merged to the "44-x-y" branch. merged/45-x-y PR was merged to the "45-x-y" branch. semver/patch backwards-compatible bug fixes

Projects

Status: No status

Development

Successfully merging this pull request may close these issues.

3 participants