Skip to content

Commit 2f27bc3

Browse files
committed
doc: break long descriptions
1 parent 4e9b657 commit 2f27bc3

29 files changed

+150
-31
lines changed

doc/api/async_context.md

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,13 @@
66
77
<!-- source_link=lib/async_hooks.js -->
88

9-
<!-- llm_description=Tracks asynchronous execution context. Enables storing and propagating state across async operations like callbacks and promises. Useful for request tracking, logging, or context management. Provides AsyncLocalStorage for scoped storage and AsyncResource for custom async context binding. -->
9+
<!-- YAML
10+
llm_description: >
11+
Tracks asynchronous execution context. Enables storing and propagating state
12+
across async operations like callbacks and promises. Useful for request
13+
tracking, logging, or context management. Provides AsyncLocalStorage for
14+
scoped storage and AsyncResource for custom async context binding.
15+
-->
1016

1117
## Introduction
1218

doc/api/async_hooks.md

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,12 @@
22

33
<!--introduced_in=v8.1.0-->
44

5-
<!-- llm_description=Low-level API to monitor asynchronous operations (timeouts, promises, callbacks). Primarily for advanced diagnostics or custom profiling tools. Avoid on production, use AsyncLocalStorage for most context-tracking needs. -->
5+
<!-- YAML
6+
llm_description: >
7+
Low-level API to monitor asynchronous operations (timeouts, promises,
8+
callbacks). Primarily for advanced diagnostics or custom profiling tools.
9+
Avoid on production, use AsyncLocalStorage for most context-tracking needs.
10+
-->
611

712
> Stability: 1 - Experimental. Please migrate away from this API, if you can.
813
> We do not recommend using the [`createHook`][], [`AsyncHook`][], and

doc/api/cluster.md

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,12 @@
22

33
<!--introduced_in=v0.10.0-->
44

5-
<!-- llm_description=Enables multi-process scaling by forking identical Node.js instances (workers) to handle loads across CPU cores. Ideal for HTTP servers needing parallelism. For lightweight concurrency, prefer worker_threads. -->
5+
<!-- YAML
6+
llm_description: >
7+
Enables multi-process scaling by forking identical Node.js instances
8+
(workers) to handle loads across CPU cores. Ideal for HTTP servers needing
9+
parallelism. For lightweight concurrency, prefer worker_threads.
10+
-->
611

712
> Stability: 2 - Stable
813

doc/api/debugger.md

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,11 @@
22

33
<!--introduced_in=v0.9.12-->
44

5-
<!-- llm_description=Provides a CLI interface for debugging Node.js applications, including basic stepping and inspection. -->
5+
<!-- YAML
6+
llm_description: >
7+
Provides a CLI interface for debugging Node.js applications, including
8+
basic stepping and inspection.
9+
-->
610

711
> Stability: 2 - Stable
812

doc/api/deprecations.md

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,10 @@
22

33
<!--introduced_in=v7.7.0-->
44

5-
<!-- llm_description=Lists APIs that are deprecated and subject to removal in future releases. -->
5+
<!-- YAML
6+
llm_description: >
7+
Lists APIs that are deprecated and subject to removal in future releases.
8+
-->
69

710
<!-- type=misc -->
811

doc/api/diagnostics_channel.md

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,12 @@ changes:
1414

1515
<!--introduced_in=v15.1.0-->
1616

17-
<!-- llm_description=Publish/subscribe API for custom diagnostic events (e.g., database query metrics, HTTP request lifecycle). Integrates with APM tools or logging systems to monitor internal operations. -->
17+
<!-- YAML
18+
llm_description: >
19+
Publish/subscribe API for custom diagnostic events (e.g., database query
20+
metrics, HTTP request lifecycle). Integrates with APM tools or logging
21+
systems to monitor internal operations.
22+
-->
1823

1924
> Stability: 2 - Stable
2025

doc/api/domain.md

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,10 @@ changes:
1717

1818
<!--introduced_in=v0.10.0-->
1919

20-
<!-- llm_description=Deprecated (avoid). Legacy API for error handling across async operations. -->
20+
<!-- YAML
21+
llm_description: >
22+
Deprecated (avoid). Legacy API for error handling across async operations.
23+
-->
2124

2225
> Stability: 0 - Deprecated
2326

doc/api/errors.md

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,10 @@
22

33
<!--introduced_in=v4.0.0-->
44

5-
<!-- llm_description=Describes the error types in Node.js and how they are handled during execution. -->
5+
<!-- YAML
6+
llm_description: >
7+
Describes the error types in Node.js and how they are handled during execution.
8+
-->
69

710
<!--type=misc-->
811

doc/api/esm.md

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,11 @@
22

33
<!--introduced_in=v8.5.0-->
44

5-
<!-- llm_description=Provides support for ECMAScript modules in Node.js, enabling standards-based module syntax (import/export) and interoperability with CommonJS. -->
5+
<!-- YAML
6+
llm_description: >
7+
Provides support for ECMAScript modules in Node.js, enabling standards-based
8+
module syntax (import/export) and interoperability with CommonJS.
9+
-->
610

711
<!-- type=misc -->
812

doc/api/globals.md

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,10 @@
22

33
<!--introduced_in=v0.10.0-->
44

5-
<!-- llm_description=Lists built-in global objects and functions available in the Node.js runtime. -->
5+
<!-- YAML
6+
llm_description: >
7+
Lists built-in global objects and functions available in the Node.js runtime.
8+
-->
69

710
<!-- type=misc -->
811

0 commit comments

Comments
 (0)