Skip to content

Commit caac20a

Browse files
committed
feat: switch docs links to be absolute
1 parent 1936e0a commit caac20a

30 files changed

+195
-114
lines changed

docs/src/content/docs/advanced/arbitrary-values.md

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@ Arbitrary spacing values only support pixel values. Percentages and other units
3232
```
3333

3434
Supports:
35+
3536
- Pixel values: `[123px]` or `[123]`
3637
- Percentages: `[50%]`, `[33.333%]`
3738

@@ -176,14 +177,15 @@ Supports:
176177

177178
:::caution[Unsupported Units]
178179
CSS units not available in React Native:
180+
179181
- `rem`, `em` - Use pixels instead
180182
- `vh`, `vw` - Use percentages or Dimensions API
181183
- `ch`, `ex` - Not supported in React Native
182-
:::
184+
:::
183185

184186
## Related
185187

186-
- [Spacing](/reference/spacing/) - Preset spacing values
187-
- [Sizing](/reference/sizing/) - Preset sizing values
188-
- [Borders](/reference/borders/) - Preset border values
189-
- [Transforms](/reference/transforms/) - Preset transform values
188+
- [Spacing](/react-native-tailwind/reference/spacing/) - Preset spacing values
189+
- [Sizing](/react-native-tailwind/reference/sizing/) - Preset sizing values
190+
- [Borders](/react-native-tailwind/reference/borders/) - Preset border values
191+
- [Transforms](/react-native-tailwind/reference/transforms/) - Preset transform values

docs/src/content/docs/advanced/babel-configuration.md

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ Configure which props to transform.
8181
}
8282
```
8383

84-
See [Custom Attributes](/advanced/custom-attributes/) for more details.
84+
See [Custom Attributes](/react-native-tailwind/advanced/custom-attributes/) for more details.
8585

8686
### `stylesIdentifier`
8787

@@ -107,7 +107,7 @@ Customize the StyleSheet constant name.
107107
}
108108
```
109109

110-
See [Custom Styles Identifier](/advanced/custom-styles-identifier/) for more details.
110+
See [Custom Styles Identifier](/react-native-tailwind/advanced/custom-styles-identifier/) for more details.
111111

112112
### `colorScheme`
113113

@@ -145,7 +145,7 @@ Configure custom color scheme hook.
145145
}
146146
```
147147

148-
See [Custom Color Scheme Hook](/advanced/custom-color-scheme-hook/) for more details.
148+
See [Custom Color Scheme Hook](/react-native-tailwind/advanced/custom-color-scheme-hook/) for more details.
149149

150150
### `schemeModifier`
151151

@@ -183,7 +183,7 @@ Configure `scheme:` modifier color suffixes.
183183
}
184184
```
185185

186-
See [Color Scheme - Scheme Modifier](/guides/color-scheme/#scheme-modifier-convenience) for more details.
186+
See [Color Scheme - Scheme Modifier](/react-native-tailwind/guides/color-scheme/#scheme-modifier-convenience) for more details.
187187

188188
## Complete Example
189189

@@ -255,8 +255,8 @@ npx react-native start --reset-cache
255255

256256
## Related
257257

258-
- [Custom Attributes](/advanced/custom-attributes/)
259-
- [Custom Styles Identifier](/advanced/custom-styles-identifier/)
260-
- [Custom Color Scheme Hook](/advanced/custom-color-scheme-hook/)
261-
- [Custom Colors](/advanced/custom-colors/)
262-
- [Troubleshooting](/advanced/troubleshooting/)
258+
- [Custom Attributes](/react-native-tailwind/advanced/custom-attributes/)
259+
- [Custom Styles Identifier](/react-native-tailwind/advanced/custom-styles-identifier/)
260+
- [Custom Color Scheme Hook](/react-native-tailwind/advanced/custom-color-scheme-hook/)
261+
- [Custom Colors](/react-native-tailwind/advanced/custom-colors/)
262+
- [Troubleshooting](/react-native-tailwind/advanced/troubleshooting/)

docs/src/content/docs/advanced/custom-attributes.md

Lines changed: 5 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -143,19 +143,10 @@ type ButtonProps = {
143143
containerStyle?: StyleProp<ViewStyle>;
144144
};
145145

146-
export function Button({
147-
title,
148-
onPress,
149-
buttonStyle,
150-
containerStyle,
151-
}: ButtonProps) {
146+
export function Button({ title, onPress, buttonStyle, containerStyle }: ButtonProps) {
152147
return (
153148
<View containerClassName="p-2 bg-gray-100" style={containerStyle}>
154-
<Pressable
155-
buttonClassName="bg-blue-500 px-6 py-4 rounded-lg"
156-
onPress={onPress}
157-
style={buttonStyle}
158-
>
149+
<Pressable buttonClassName="bg-blue-500 px-6 py-4 rounded-lg" onPress={onPress} style={buttonStyle}>
159150
<Text className="text-white font-semibold">{title}</Text>
160151
</Pressable>
161152
</View>
@@ -175,6 +166,6 @@ export function Button({
175166

176167
## Related
177168

178-
- [Babel Configuration](/advanced/babel-configuration/) - All plugin options
179-
- [Reusable Components](/guides/reusable-components/) - Building component libraries
180-
- [List Components](/guides/list-components/) - Styling lists
169+
- [Babel Configuration](/react-native-tailwind/advanced/babel-configuration/) - All plugin options
170+
- [Reusable Components](/react-native-tailwind/guides/reusable-components/) - Building component libraries
171+
- [List Components](/react-native-tailwind/guides/list-components/) - Styling lists

docs/src/content/docs/advanced/custom-color-scheme-hook.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -210,6 +210,6 @@ function MyComponent() {
210210

211211
## Related
212212

213-
- [Color Scheme](/guides/color-scheme/) - Using color scheme modifiers
214-
- [Babel Configuration](/advanced/babel-configuration/) - All plugin options
215-
- [Custom Colors](/advanced/custom-colors/) - Extend color palette
213+
- [Color Scheme](/react-native-tailwind/guides/color-scheme/) - Using color scheme modifiers
214+
- [Babel Configuration](/react-native-tailwind/advanced/babel-configuration/) - All plugin options
215+
- [Custom Colors](/react-native-tailwind/advanced/custom-colors/) - Extend color palette

docs/src/content/docs/advanced/custom-colors.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -219,6 +219,6 @@ If you see warnings about missing colors:
219219

220220
## Related
221221

222-
- [Colors Reference](/reference/colors/) - Color utilities
223-
- [Color Scheme](/guides/color-scheme/) - Dark mode support
224-
- [Troubleshooting](/advanced/troubleshooting/) - Common issues
222+
- [Colors Reference](/react-native-tailwind/reference/colors/) - Color utilities
223+
- [Color Scheme](/react-native-tailwind/guides/color-scheme/) - Dark mode support
224+
- [Troubleshooting](/react-native-tailwind/advanced/troubleshooting/) - Common issues

docs/src/content/docs/advanced/custom-styles-identifier.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -99,5 +99,5 @@ Align with your team's coding standards:
9999

100100
## Related
101101

102-
- [Babel Configuration](/advanced/babel-configuration/) - All plugin options
103-
- [Custom Attributes](/advanced/custom-attributes/) - Configure attribute transforms
102+
- [Babel Configuration](/react-native-tailwind/advanced/babel-configuration/) - All plugin options
103+
- [Custom Attributes](/react-native-tailwind/advanced/custom-attributes/) - Configure attribute transforms

docs/src/content/docs/advanced/troubleshooting.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -279,6 +279,6 @@ If you can't resolve your issue:
279279

280280
## Related
281281

282-
- [Babel Configuration](/advanced/babel-configuration/) - Plugin options
283-
- [Custom Colors](/advanced/custom-colors/) - Theme configuration
284-
- [Quick Start](/getting-started/quick-start/) - Setup guide
282+
- [Babel Configuration](/react-native-tailwind/advanced/babel-configuration/) - Plugin options
283+
- [Custom Colors](/react-native-tailwind/advanced/custom-colors/) - Theme configuration
284+
- [Quick Start](/react-native-tailwind/getting-started/quick-start/) - Setup guide

docs/src/content/docs/getting-started/how-it-works.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ The plugin automatically converts className-style props to their style equivalen
8888
| `ListHeaderComponentClassName` | `ListHeaderComponentStyle` |
8989
| `ListFooterComponentClassName` | `ListFooterComponentStyle` |
9090

91-
You can configure custom attributes in the [Babel configuration](/advanced/babel-configuration/).
91+
You can configure custom attributes in the [Babel configuration](/react-native-tailwind/advanced/babel-configuration/).
9292

9393
### 4. Import Management
9494

@@ -142,6 +142,6 @@ Generates code that uses React Native's best practices:
142142

143143
## What's Next?
144144

145-
- Explore [Basic Usage](/guides/basic-usage/) examples
146-
- Learn about [Dynamic ClassNames](/guides/dynamic-classnames/)
147-
- Understand [State Modifiers](/guides/state-modifiers/)
145+
- Explore [Basic Usage](/react-native-tailwind/guides/basic-usage/) examples
146+
- Learn about [Dynamic ClassNames](/react-native-tailwind/guides/dynamic-classnames/)
147+
- Understand [State Modifiers](/react-native-tailwind/guides/state-modifiers/)

docs/src/content/docs/getting-started/installation.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,4 +25,4 @@ pnpm add @mgcrea/react-native-tailwind
2525

2626
## Next Steps
2727

28-
After installing the package, proceed to the [Quick Start](/getting-started/quick-start/) guide to configure the Babel plugin and start using className in your components.
28+
After installing the package, proceed to the [Quick Start](/react-native-tailwind/getting-started/quick-start/) guide to configure the Babel plugin and start using className in your components.

docs/src/content/docs/getting-started/quick-start.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,6 @@ npx react-native start --reset-cache
5858

5959
## What's Next?
6060

61-
- Learn [How It Works](/getting-started/how-it-works/) to understand the compile-time transformation
62-
- Explore [Basic Usage](/guides/basic-usage/) examples
63-
- Check out the [API Reference](/reference/spacing/) for available utilities
61+
- Learn [How It Works](/react-native-tailwind/getting-started/how-it-works/) to understand the compile-time transformation
62+
- Explore [Basic Usage](/react-native-tailwind/guides/basic-usage/) examples
63+
- Check out the [API Reference](/react-native-tailwind/reference/spacing/) for available utilities

0 commit comments

Comments
 (0)