Skip to content

Commit 43188db

Browse files
authored
chore: prepare docs for Docusaurus v3 upgrade - 3rd iteration (facebook#3843)
1 parent b832016 commit 43188db

27 files changed

+688
-632
lines changed

docs/alertios.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -132,9 +132,9 @@ AlertIOS.prompt(
132132

133133
An Alert button type
134134

135-
| Type |
136-
| ------ |
137-
| \$Enum |
135+
| Type |
136+
| ----- |
137+
| $Enum |
138138

139139
**Constants:**
140140

@@ -151,9 +151,9 @@ An Alert button type
151151

152152
An Alert button style
153153

154-
| Type |
155-
| ------ |
156-
| \$Enum |
154+
| Type |
155+
| ----- |
156+
| $Enum |
157157

158158
**Constants:**
159159

docs/button.md

Lines changed: 17 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -186,9 +186,23 @@ See the [Accessibility guide](accessibility.md#accessibility-actions) for more i
186186

187187
Color of the text (iOS), or background color of the button (Android).
188188

189-
| Type | Default |
190-
| --------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
191-
| [color](colors) | <ins style={{background: '#2196F3'}} className="color-box" /> `'#2196F3'` <div className="label android">Android</div><hr/><ins style={{background: '#007AFF'}} className="color-box" /> `'#007AFF'` <div className="label ios">iOS</div> |
189+
```mdx-code-block
190+
export function ColorDefaults() {
191+
return (
192+
<>
193+
<ins style={{ background: "#2196F3" }} className="color-box" />{" "}<code>'#2196F3'</code>
194+
{" "}<div className="label android">Android</div>
195+
<hr />
196+
<ins style={{ background: "#007AFF" }} className="color-box" />{" "}<code>'#007AFF'</code>
197+
{" "}<div className="label ios">iOS</div>
198+
</>
199+
);
200+
}
201+
```
202+
203+
| Type | Default |
204+
| --------------- | ---------------- |
205+
| [color](colors) | <ColorDefaults/> |
192206

193207
---
194208

docs/colors.md

Lines changed: 145 additions & 145 deletions
Large diffs are not rendered by default.

docs/new-architecture-app-intro.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ You can find instructions on how to upgrade in the page [upgrading to new versio
2222

2323
Remember to re-install the dependencies after upgrading (run `npm install` or `yarn`).
2424

25-
:::important
25+
:::info
2626

2727
Whenever you have to rename some files in the `ios` folder, please **use Xcode to rename them**. This ensure that the file references are updated in the Xcode project as well. You might need to clean the build folder (**Project****Clean Build Folder** or <kbd>Cmd ⌘</kbd> + <kbd>Shift ⇪</kbd> + <kbd>K</kbd>) before re-building the app. If the file is renamed outside of Xcode, you may need to click on the old `.m` file reference and Locate the new file.
2828

docs/the-new-architecture/backward-compatibility-fabric-components.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ While the last step is the same for all the platforms, the first two steps are d
3838

3939
## Configure the Fabric Native Component Dependencies
4040

41-
### <a name="dependencies-ios" />iOS
41+
### iOS {#dependencies-ios}
4242

4343
The Apple platform installs Fabric Native Components using [CocoaPods](https://cocoapods.org) as a dependency manager.
4444

docs/the-new-architecture/backward-compatibility-turbomodules.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ While the last step is the same for all the platforms, the first two steps are d
3838

3939
## Configure the Turbo Native Module Dependencies
4040

41-
### <a name="dependencies-ios" />iOS
41+
### iOS {#dependencies-ios}
4242

4343
The Apple platform installs Turbo Native Modules using [CocoaPods](https://cocoapods.org) as a dependency manager.
4444

docs/touchablenativefeedback.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -180,7 +180,7 @@ static SelectableBackgroundBorderless(
180180
): ThemeAttributeBackgroundPropType;
181181
```
182182

183-
Creates an object that represent android theme's default background for borderless selectable elements (?android:attr/selectableItemBackgroundBorderless). Available on android API level 21+. `rippleRadius` parameter controls the radius of the ripple effect.
183+
Creates an object that represent android theme's default background for borderless selectable elements (`?android:attr/selectableItemBackgroundBorderless`). Available on android API level 21+. `rippleRadius` parameter controls the radius of the ripple effect.
184184

185185
---
186186

website/versioned_docs/version-0.70/alertios.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -132,9 +132,9 @@ AlertIOS.prompt(
132132

133133
An Alert button type
134134

135-
| Type |
136-
| ------ |
137-
| \$Enum |
135+
| Type |
136+
| ----- |
137+
| $Enum |
138138

139139
**Constants:**
140140

@@ -151,9 +151,9 @@ An Alert button type
151151

152152
An Alert button style
153153

154-
| Type |
155-
| ------ |
156-
| \$Enum |
154+
| Type |
155+
| ----- |
156+
| $Enum |
157157

158158
**Constants:**
159159

website/versioned_docs/version-0.70/button.md

Lines changed: 17 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -178,9 +178,23 @@ See the [Accessibility guide](accessibility.md#accessibility-actions) for more i
178178

179179
Color of the text (iOS), or background color of the button (Android).
180180

181-
| Type | Default |
182-
| --------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
183-
| [color](colors) | <ins style={{background: '#2196F3'}} className="color-box" /> `'#2196F3'` <div className="label android">Android</div><hr/><ins style={{background: '#007AFF'}} className="color-box" /> `'#007AFF'` <div className="label ios">iOS</div> |
181+
```mdx-code-block
182+
export function ColorDefaults() {
183+
return (
184+
<>
185+
<ins style={{ background: "#2196F3" }} className="color-box" />{" "}<code>'#2196F3'</code>
186+
{" "}<div className="label android">Android</div>
187+
<hr />
188+
<ins style={{ background: "#007AFF" }} className="color-box" />{" "}<code>'#007AFF'</code>
189+
{" "}<div className="label ios">iOS</div>
190+
</>
191+
);
192+
}
193+
```
194+
195+
| Type | Default |
196+
| --------------- | ---------------- |
197+
| [color](colors) | <ColorDefaults/> |
184198

185199
---
186200

0 commit comments

Comments
 (0)