Skip to content

Commit 7385e6a

Browse files
committed
fix(docs): use bracket syntax for admonition titles
Convert legacy space-separated admonition titles (`:::warning Deprecated`) to the MDX directive bracket form (`:::warning[Deprecated]`). Docusaurus 3 / MDX 3 (with the v4 future flag) no longer parse the space-title form, so the `:::` fences rendered as literal text on pages such as Building For TV. The bracket form is already used elsewhere in the docs; this fixes the remaining stragglers. 54 occurrences across 48 files (docs/ and versioned_docs/version-0.86).
1 parent f71b3c7 commit 7385e6a

48 files changed

Lines changed: 54 additions & 54 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

docs/accessibilityinfo.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -256,7 +256,7 @@ Query whether reduce motion and prefer cross-fade transitions settings are curre
256256

257257
### 🗑️ `setAccessibilityFocus()`
258258

259-
:::warning Deprecated
259+
:::warning[Deprecated]
260260
Prefer using `sendAccessibilityEvent` with eventType `focus` instead.
261261
:::
262262

docs/backhandler.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ The event subscriptions are called in reverse order (i.e. the last registered su
1010
- **If one subscription returns true,** then subscriptions registered earlier will not be called.
1111
- **If no subscription returns true or none are registered,** it programmatically invokes the default back button functionality to exit the app.
1212

13-
:::warning Warning for modal users
13+
:::warning[Warning for modal users]
1414
If your app shows an opened `Modal`, `BackHandler` will not publish any events ([see `Modal` docs](modal#onrequestclose)).
1515
:::
1616

docs/building-for-tv.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,6 @@ hide_table_of_contents: true
66

77
TV devices support has been implemented with the intention of making existing React Native applications work on Apple TV and Android TV, with few or no changes needed in the JavaScript code for the applications.
88

9-
:::warning Deprecated
9+
:::warning[Deprecated]
1010
TV support has moved to the [React Native for TV](https://github.com/react-native-tvos/react-native-tvos#readme) repository. Please see the **README** there for information on projects for Apple TV or Android TV.
1111
:::

docs/global-PerformanceEventTiming.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,6 @@ title: PerformanceEventTiming
55

66
The global [`PerformanceEventTiming`](https://developer.mozilla.org/en-US/docs/Web/API/PerformanceEventTiming) class, as defined in Web specifications.
77

8-
:::warning Partial support
8+
:::warning[Partial support]
99
The `cancelable` and `target` properties are not supported yet.
1010
:::

docs/global-PerformanceLongTaskTiming.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,6 @@ title: PerformanceLongTaskTiming
55

66
The global [`PerformanceLongTaskTiming`](https://developer.mozilla.org/en-US/docs/Web/API/PerformanceLongTaskTiming) class, as defined in Web specifications.
77

8-
:::warning Partial support
8+
:::warning[Partial support]
99
The value for the `attribution` property is always an empty array.
1010
:::

docs/global-PerformanceResourceTiming.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ title: PerformanceResourceTiming
55

66
The global [`PerformanceResourceTiming`](https://developer.mozilla.org/en-US/docs/Web/API/PerformanceResourceTiming) class, as defined in Web specifications.
77

8-
:::warning Partial support
8+
:::warning[Partial support]
99

1010
React Native implements the following `PerformanceResourceTiming` properties only:
1111

docs/global-intersectionobserver.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ An offset rectangle applied to the root's bounding box when calculating intersec
6161
6262
### `rnRootThresholds` ⚠️
6363
64-
:::warning Non-standard
64+
:::warning[Non-standard]
6565
This is a React Native specific extension.
6666
:::
6767

docs/global-intersectionobserverentry.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ A Boolean value which is `true` if the target element intersects with the inters
4343

4444
### `rnRootIntersectionRatio` ⚠️
4545

46-
:::warning Non-standard
46+
:::warning[Non-standard]
4747
This is a React Native specific extension.
4848
:::
4949

docs/global-performance.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ See [documentation in MDN](https://developer.mozilla.org/en-US/docs/Web/API/Perf
2121

2222
### `rnStartupTiming` ⚠️
2323

24-
:::warning Non-standard
24+
:::warning[Non-standard]
2525
This is a React Native specific extension.
2626
:::
2727

@@ -41,7 +41,7 @@ The `ReactNativeStartupTiming` interface provides the following fields:
4141

4242
### `timeOrigin`
4343

44-
:::warning Partial support
44+
:::warning[Partial support]
4545
Provides the number of milliseconds from the UNIX epoch until system boot, instead of the number of milliseconds from the UNIX epoch until app startup.
4646
:::
4747

@@ -79,7 +79,7 @@ See [documentation in MDN](https://developer.mozilla.org/en-US/docs/Web/API/Perf
7979

8080
### `now()`
8181

82-
:::warning Partial support
82+
:::warning[Partial support]
8383
Provides the number of milliseconds from system boot, instead of the number of milliseconds from app startup.
8484
:::
8585

docs/integration-with-android-fragment.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ This is required by React Native to handle the back button press event.
3333

3434
Go into your host activity and make sure it implements the `DefaultHardwareBackBtnHandler` interface:
3535

36-
:::warning Deprecated
36+
:::warning[Deprecated]
3737
`Activity.onBackPressed()` has been [deprecated](<https://developer.android.com/reference/android/app/Activity#onBackPressed()>) since API level 33. Android 16 devices with apps targeting API level 36 this will [no longer be called](https://developer.android.com/about/versions/16/behavior-changes-16#predictive-back) and [OnBackPressedDispatcher](https://developer.android.com/reference/androidx/activity/OnBackPressedDispatcher) should be used instead.
3838
:::
3939

0 commit comments

Comments
 (0)