Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix MDX double <p> tags #4267

Merged
merged 1 commit into from
Oct 10, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 1 addition & 3 deletions docs/appregistry.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,7 @@ title: AppRegistry

<div className="banner-native-code-required">
<h3>Project with Native Code Required</h3>
<p>
If you are using the managed Expo workflow there is only ever one entry component registered with <code>AppRegistry</code> and it is handled automatically (or through <a href="https://docs.expo.dev/versions/latest/sdk/register-root-component/">registerRootComponent</a>). You do not need to use this API.
</p>
<p>If you are using the managed Expo workflow there is only ever one entry component registered with <code>AppRegistry</code> and it is handled automatically (or through <a href="https://docs.expo.dev/versions/latest/sdk/register-root-component/">registerRootComponent</a>). You do not need to use this API.</p>
</div>

`AppRegistry` is the JS entry point to running all React Native apps. App root components should register themselves with `AppRegistry.registerComponent`, then the native system can load the bundle for the app and then actually run the app when it's ready by invoking `AppRegistry.runApplication`.
Expand Down
4 changes: 1 addition & 3 deletions docs/debugging-native-code.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,7 @@ import Tabs from '@theme/Tabs'; import TabItem from '@theme/TabItem'; import con

<div className="banner-native-code-required">
<h3>Projects with Native Code Only</h3>
<p>
The following section only applies to projects with native code exposed. If you are using the managed Expo workflow, see the guide on <a href="https://docs.expo.dev/workflow/prebuild/" target="_blank">prebuild</a> to use this API.
</p>
<p>The following section only applies to projects with native code exposed. If you are using the managed Expo workflow, see the guide on <a href="https://docs.expo.dev/workflow/prebuild/" target="_blank">prebuild</a> to use this API.</p>
</div>

## Accessing Logs
Expand Down
4 changes: 1 addition & 3 deletions docs/linking.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,9 +30,7 @@ As mentioned in the introduction, there are some URL schemes for core functional

<div className="banner-native-code-required">
<h3>Projects with Native Code Only</h3>
<p>
The following section only applies to projects with native code exposed. If you are using the managed Expo workflow, see the guide on <a href="https://docs.expo.dev/guides/linking/">Linking</a> in the Expo documentation for the appropriate alternative.
</p>
<p>The following section only applies to projects with native code exposed. If you are using the managed Expo workflow, see the guide on <a href="https://docs.expo.dev/guides/linking/">Linking</a> in the Expo documentation for the appropriate alternative.</p>
</div>

If you want to enable deep links in your app, please read the below guide:
Expand Down
4 changes: 1 addition & 3 deletions docs/permissionsandroid.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,7 @@ title: PermissionsAndroid

<div className="banner-native-code-required">
<h3>Project with Native Code Required</h3>
<p>
The following section only applies to projects with native code exposed. If you are using the managed Expo workflow, see the guide on <a href="https://docs.expo.dev/guides/permissions/">Permissions</a> in the Expo documentation for the appropriate alternative.
</p>
<p>The following section only applies to projects with native code exposed. If you are using the managed Expo workflow, see the guide on <a href="https://docs.expo.dev/guides/permissions/">Permissions</a> in the Expo documentation for the appropriate alternative.</p>
</div>

`PermissionsAndroid` provides access to Android M's new permissions model. The so-called "normal" permissions are granted by default when the application is installed as long as they appear in `AndroidManifest.xml`. However, "dangerous" permissions require a dialog prompt. You should use this module for those permissions.
Expand Down
4 changes: 1 addition & 3 deletions docs/pushnotificationios.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,7 @@ title: '🚧 PushNotificationIOS'

<div className="banner-native-code-required">
<h3>Projects with Native Code Only</h3>
<p>
The following section only applies to projects with native code exposed. If you are using the managed Expo workflow, see the guide on <a href="https://docs.expo.dev/versions/latest/sdk/notifications/">Notifications</a> in the Expo documentation for the appropriate alternative.
</p>
<p>The following section only applies to projects with native code exposed. If you are using the managed Expo workflow, see the guide on <a href="https://docs.expo.dev/versions/latest/sdk/notifications/">Notifications</a> in the Expo documentation for the appropriate alternative.</p>
</div>

Handle notifications for your app, including scheduling and permissions.
Expand Down
18 changes: 4 additions & 14 deletions website/blog/2020-07-06-version-0.63.md
Original file line number Diff line number Diff line change
Expand Up @@ -61,9 +61,7 @@ import {Pressable, Text} from 'react-native';
</Pressable>;
```

<p className="snippet-caption">
A simple example of a Pressable component in action
</p>
<p className="snippet-caption">A simple example of a Pressable component in action</p>

You can learn more about it from [the documentation](https://reactnative.dev/docs/pressable).

Expand All @@ -85,10 +83,7 @@ import {Text, PlatformColor} from 'react-native';
</Text>;
```

<p className="snippet-caption">
Sets the color of the Text component to labelColor as defined by
iOS.
</p>
<p className="snippet-caption">Sets the color of the Text component to labelColor as defined by iOS.</p>

Android, on the other hand, [provides colors like colorButtonNormal](https://developer.android.com/reference/android/R.attr#colorButtonNormal). You can use this color in React Native with:

Expand All @@ -103,10 +98,7 @@ import {View, Text, PlatformColor} from 'react-native';
</View>;
```

<p className="snippet-caption">
Sets the background color of the View component to
colorButtonNormal as defined by Android.
</p>
<p className="snippet-caption">Sets the background color of the View component to colorButtonNormal as defined by Android.</p>

You can learn more about `PlatformColor` from [the documentation](https://reactnative.dev/docs/platformcolor). You can also check the actual [code examples present in the RNTester](https://github.com/facebook/react-native/blob/master/packages/rn-tester/js/examples/PlatformColor/PlatformColorExample.js).

Expand All @@ -125,9 +117,7 @@ const customDynamicTextColor = DynamicColorIOS({
</Text>;
```

<p className="snippet-caption">
Changes the text color based on the system theme
</p>
<p className="snippet-caption">Changes the text color based on the system theme</p>

You can learn more about `DynamicColorIOS` from [the documentation](https://reactnative.dev/docs/dynamiccolorios).

Expand Down
4 changes: 1 addition & 3 deletions website/versioned_docs/version-0.70/appregistry.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,7 @@ title: AppRegistry

<div className="banner-native-code-required">
<h3>Project with Native Code Required</h3>
<p>
If you are using the managed Expo workflow there is only ever one entry component registered with <code>AppRegistry</code> and it is handled automatically (or through <a href="https://docs.expo.dev/versions/latest/sdk/register-root-component/">registerRootComponent</a>). You do not need to use this API.
</p>
<p>If you are using the managed Expo workflow there is only ever one entry component registered with <code>AppRegistry</code> and it is handled automatically (or through <a href="https://docs.expo.dev/versions/latest/sdk/register-root-component/">registerRootComponent</a>). You do not need to use this API.</p>
</div>

`AppRegistry` is the JS entry point to running all React Native apps. App root components should register themselves with `AppRegistry.registerComponent`, then the native system can load the bundle for the app and then actually run the app when it's ready by invoking `AppRegistry.runApplication`.
Expand Down
6 changes: 2 additions & 4 deletions website/versioned_docs/version-0.70/debugging.md
Original file line number Diff line number Diff line change
Expand Up @@ -164,10 +164,8 @@ You can view installation instructions [in the README](https://github.com/infini
# Native Debugging

<div className="banner-native-code-required">
<h3>Projects with Native Code Only</h3>
<p>
The following section only applies to projects with native code exposed. If you are using the managed Expo workflow, see the guide on <a href="https://docs.expo.dev/workflow/prebuild/" target="_blank">prebuild</a> to use this API.
</p>
<h3>Projects with Native Code Only</h3><p>
The following section only applies to projects with native code exposed. If you are using the managed Expo workflow, see the guide on <a href="https://docs.expo.dev/workflow/prebuild/" target="_blank">prebuild</a> to use this API.</p>
</div>

## Accessing console logs
Expand Down
4 changes: 1 addition & 3 deletions website/versioned_docs/version-0.70/linking.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,9 +30,7 @@ As mentioned in the introduction, there are some URL schemes for core functional

<div className="banner-native-code-required">
<h3>Projects with Native Code Only</h3>
<p>
The following section only applies to projects with native code exposed. If you are using the managed Expo workflow, see the guide on <a href="https://docs.expo.dev/guides/linking/">Linking</a> in the Expo documentation for the appropriate alternative.
</p>
<p>The following section only applies to projects with native code exposed. If you are using the managed Expo workflow, see the guide on <a href="https://docs.expo.dev/guides/linking/">Linking</a> in the Expo documentation for the appropriate alternative.</p>
</div>

If you want to enable deep links in your app, please read the below guide:
Expand Down
4 changes: 1 addition & 3 deletions website/versioned_docs/version-0.70/permissionsandroid.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,7 @@ import Tabs from '@theme/Tabs'; import TabItem from '@theme/TabItem'; import con

<div className="banner-native-code-required">
<h3>Project with Native Code Required</h3>
<p>
The following section only applies to projects with native code exposed. If you are using the managed Expo workflow, see the guide on <a href="https://docs.expo.dev/guides/permissions/">Permissions</a> in the Expo documentation for the appropriate alternative.
</p>
<p>The following section only applies to projects with native code exposed. If you are using the managed Expo workflow, see the guide on <a href="https://docs.expo.dev/guides/permissions/">Permissions</a> in the Expo documentation for the appropriate alternative.</p>
</div>

`PermissionsAndroid` provides access to Android M's new permissions model. The so-called "normal" permissions are granted by default when the application is installed as long as they appear in `AndroidManifest.xml`. However, "dangerous" permissions require a dialog prompt. You should use this module for those permissions.
Expand Down
4 changes: 1 addition & 3 deletions website/versioned_docs/version-0.70/pushnotificationios.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,7 @@ title: '🚧 PushNotificationIOS'

<div className="banner-native-code-required">
<h3>Projects with Native Code Only</h3>
<p>
The following section only applies to projects with native code exposed. If you are using the managed Expo workflow, see the guide on <a href="https://docs.expo.dev/versions/latest/sdk/notifications/">Notifications</a> in the Expo documentation for the appropriate alternative.
</p>
<p>The following section only applies to projects with native code exposed. If you are using the managed Expo workflow, see the guide on <a href="https://docs.expo.dev/versions/latest/sdk/notifications/">Notifications</a> in the Expo documentation for the appropriate alternative.</p>
</div>

Handle push notifications for your app, including permission handling and icon badge number.
Expand Down
4 changes: 1 addition & 3 deletions website/versioned_docs/version-0.71/appregistry.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,7 @@ title: AppRegistry

<div className="banner-native-code-required">
<h3>Project with Native Code Required</h3>
<p>
If you are using the managed Expo workflow there is only ever one entry component registered with <code>AppRegistry</code> and it is handled automatically (or through <a href="https://docs.expo.dev/versions/latest/sdk/register-root-component/">registerRootComponent</a>). You do not need to use this API.
</p>
<p>If you are using the managed Expo workflow there is only ever one entry component registered with <code>AppRegistry</code> and it is handled automatically (or through <a href="https://docs.expo.dev/versions/latest/sdk/register-root-component/">registerRootComponent</a>). You do not need to use this API.</p>
</div>

`AppRegistry` is the JS entry point to running all React Native apps. App root components should register themselves with `AppRegistry.registerComponent`, then the native system can load the bundle for the app and then actually run the app when it's ready by invoking `AppRegistry.runApplication`.
Expand Down
6 changes: 2 additions & 4 deletions website/versioned_docs/version-0.71/debugging.md
Original file line number Diff line number Diff line change
Expand Up @@ -164,10 +164,8 @@ You can view installation instructions [in the README](https://github.com/infini
# Native Debugging

<div className="banner-native-code-required">
<h3>Projects with Native Code Only</h3>
<p>
The following section only applies to projects with native code exposed. If you are using the managed Expo workflow, see the guide on <a href="https://docs.expo.dev/workflow/prebuild/" target="_blank">prebuild</a> to use this API.
</p>
<h3>Projects with Native Code Only</h3><p>
The following section only applies to projects with native code exposed. If you are using the managed Expo workflow, see the guide on <a href="https://docs.expo.dev/workflow/prebuild/" target="_blank">prebuild</a> to use this API.</p>
</div>

## Accessing console logs
Expand Down
4 changes: 1 addition & 3 deletions website/versioned_docs/version-0.71/linking.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,9 +30,7 @@ As mentioned in the introduction, there are some URL schemes for core functional

<div className="banner-native-code-required">
<h3>Projects with Native Code Only</h3>
<p>
The following section only applies to projects with native code exposed. If you are using the managed Expo workflow, see the guide on <a href="https://docs.expo.dev/guides/linking/">Linking</a> in the Expo documentation for the appropriate alternative.
</p>
<p>The following section only applies to projects with native code exposed. If you are using the managed Expo workflow, see the guide on <a href="https://docs.expo.dev/guides/linking/">Linking</a> in the Expo documentation for the appropriate alternative.</p>
</div>

If you want to enable deep links in your app, please read the below guide:
Expand Down
4 changes: 1 addition & 3 deletions website/versioned_docs/version-0.71/permissionsandroid.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,7 @@ import Tabs from '@theme/Tabs'; import TabItem from '@theme/TabItem'; import con

<div className="banner-native-code-required">
<h3>Project with Native Code Required</h3>
<p>
The following section only applies to projects with native code exposed. If you are using the managed Expo workflow, see the guide on <a href="https://docs.expo.dev/guides/permissions/">Permissions</a> in the Expo documentation for the appropriate alternative.
</p>
<p>The following section only applies to projects with native code exposed. If you are using the managed Expo workflow, see the guide on <a href="https://docs.expo.dev/guides/permissions/">Permissions</a> in the Expo documentation for the appropriate alternative.</p>
</div>

`PermissionsAndroid` provides access to Android M's new permissions model. The so-called "normal" permissions are granted by default when the application is installed as long as they appear in `AndroidManifest.xml`. However, "dangerous" permissions require a dialog prompt. You should use this module for those permissions.
Expand Down
4 changes: 1 addition & 3 deletions website/versioned_docs/version-0.71/pushnotificationios.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,7 @@ title: '🚧 PushNotificationIOS'

<div className="banner-native-code-required">
<h3>Projects with Native Code Only</h3>
<p>
The following section only applies to projects with native code exposed. If you are using the managed Expo workflow, see the guide on <a href="https://docs.expo.dev/versions/latest/sdk/notifications/">Notifications</a> in the Expo documentation for the appropriate alternative.
</p>
<p>The following section only applies to projects with native code exposed. If you are using the managed Expo workflow, see the guide on <a href="https://docs.expo.dev/versions/latest/sdk/notifications/">Notifications</a> in the Expo documentation for the appropriate alternative.</p>
</div>

Handle push notifications for your app, including permission handling and icon badge number.
Expand Down
4 changes: 1 addition & 3 deletions website/versioned_docs/version-0.72/appregistry.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,7 @@ title: AppRegistry

<div className="banner-native-code-required">
<h3>Project with Native Code Required</h3>
<p>
If you are using the managed Expo workflow there is only ever one entry component registered with <code>AppRegistry</code> and it is handled automatically (or through <a href="https://docs.expo.dev/versions/latest/sdk/register-root-component/">registerRootComponent</a>). You do not need to use this API.
</p>
<p>If you are using the managed Expo workflow there is only ever one entry component registered with <code>AppRegistry</code> and it is handled automatically (or through <a href="https://docs.expo.dev/versions/latest/sdk/register-root-component/">registerRootComponent</a>). You do not need to use this API.</p>
</div>

`AppRegistry` is the JS entry point to running all React Native apps. App root components should register themselves with `AppRegistry.registerComponent`, then the native system can load the bundle for the app and then actually run the app when it's ready by invoking `AppRegistry.runApplication`.
Expand Down
4 changes: 1 addition & 3 deletions website/versioned_docs/version-0.72/linking.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,9 +30,7 @@ As mentioned in the introduction, there are some URL schemes for core functional

<div className="banner-native-code-required">
<h3>Projects with Native Code Only</h3>
<p>
The following section only applies to projects with native code exposed. If you are using the managed Expo workflow, see the guide on <a href="https://docs.expo.dev/guides/linking/">Linking</a> in the Expo documentation for the appropriate alternative.
</p>
<p>The following section only applies to projects with native code exposed. If you are using the managed Expo workflow, see the guide on <a href="https://docs.expo.dev/guides/linking/">Linking</a> in the Expo documentation for the appropriate alternative.</p>
</div>

If you want to enable deep links in your app, please read the below guide:
Expand Down
6 changes: 2 additions & 4 deletions website/versioned_docs/version-0.72/native-debugging.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,8 @@ title: Native Debugging
import Tabs from '@theme/Tabs'; import TabItem from '@theme/TabItem'; import constants from '@site/core/TabsConstants';

<div className="banner-native-code-required">
<h3>Projects with Native Code Only</h3>
<p>
The following section only applies to projects with native code exposed. If you are using the managed Expo workflow, see the guide on <a href="https://docs.expo.dev/workflow/prebuild/" target="_blank">prebuild</a> to use this API.
</p>
<h3>Projects with Native Code Only</h3><p>
The following section only applies to projects with native code exposed. If you are using the managed Expo workflow, see the guide on <a href="https://docs.expo.dev/workflow/prebuild/" target="_blank">prebuild</a> to use this API.</p>
</div>

## Accessing native logs
Expand Down
4 changes: 1 addition & 3 deletions website/versioned_docs/version-0.72/permissionsandroid.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,7 @@ title: PermissionsAndroid

<div className="banner-native-code-required">
<h3>Project with Native Code Required</h3>
<p>
The following section only applies to projects with native code exposed. If you are using the managed Expo workflow, see the guide on <a href="https://docs.expo.dev/guides/permissions/">Permissions</a> in the Expo documentation for the appropriate alternative.
</p>
<p>The following section only applies to projects with native code exposed. If you are using the managed Expo workflow, see the guide on <a href="https://docs.expo.dev/guides/permissions/">Permissions</a> in the Expo documentation for the appropriate alternative.</p>
</div>

`PermissionsAndroid` provides access to Android M's new permissions model. The so-called "normal" permissions are granted by default when the application is installed as long as they appear in `AndroidManifest.xml`. However, "dangerous" permissions require a dialog prompt. You should use this module for those permissions.
Expand Down
4 changes: 1 addition & 3 deletions website/versioned_docs/version-0.72/pushnotificationios.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,7 @@ title: '🚧 PushNotificationIOS'

<div className="banner-native-code-required">
<h3>Projects with Native Code Only</h3>
<p>
The following section only applies to projects with native code exposed. If you are using the managed Expo workflow, see the guide on <a href="https://docs.expo.dev/versions/latest/sdk/notifications/">Notifications</a> in the Expo documentation for the appropriate alternative.
</p>
<p>The following section only applies to projects with native code exposed. If you are using the managed Expo workflow, see the guide on <a href="https://docs.expo.dev/versions/latest/sdk/notifications/">Notifications</a> in the Expo documentation for the appropriate alternative.</p>
</div>

Handle push notifications for your app, including permission handling and icon badge number.
Expand Down
Loading