Skip to content

Commit 17e2374

Browse files
committed
docs: fix cross-reference links in reference and advanced sections
Convert root-relative links to relative links for proper GitHub Pages base path support. This ensures all internal documentation links work correctly when deployed at /react-native-tailwind/ base path.
1 parent 286961d commit 17e2374

18 files changed

+57
-57
lines changed

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

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -183,7 +183,7 @@ CSS units not available in React Native:
183183

184184
## Related
185185

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
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

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](./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](./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](./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](../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](./custom-attributes/)
259+
- [Custom Styles Identifier](./custom-styles-identifier/)
260+
- [Custom Color Scheme Hook](./custom-color-scheme-hook/)
261+
- [Custom Colors](./custom-colors/)
262+
- [Troubleshooting](./troubleshooting/)

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -175,6 +175,6 @@ export function Button({
175175

176176
## Related
177177

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
178+
- [Babel Configuration](./babel-configuration/) - All plugin options
179+
- [Reusable Components](../guides/reusable-components/) - Building component libraries
180+
- [List Components](../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](../guides/color-scheme/) - Using color scheme modifiers
214+
- [Babel Configuration](./babel-configuration/) - All plugin options
215+
- [Custom Colors](./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](../reference/colors/) - Color utilities
223+
- [Color Scheme](../guides/color-scheme/) - Dark mode support
224+
- [Troubleshooting](./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](./babel-configuration/) - All plugin options
103+
- [Custom Attributes](./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](./babel-configuration/) - Plugin options
283+
- [Custom Colors](./custom-colors/) - Theme configuration
284+
- [Quick Start](../getting-started/quick-start/) - Setup guide

docs/src/content/docs/guides/reusable-components.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -330,6 +330,6 @@ type CardProps = BaseProps & {
330330

331331
## What's Next?
332332

333-
- Learn about [Custom Attributes](/advanced/custom-attributes/) for more control
334-
- Explore [Babel Configuration](/advanced/babel-configuration/) for plugin options
335-
- Check out [TypeScript setup](/getting-started/quick-start/#2-enable-typescript-support-typescript) for type safety
333+
- Learn about [Custom Attributes](../advanced/custom-attributes/) for more control
334+
- Explore [Babel Configuration](../advanced/babel-configuration/) for plugin options
335+
- Check out [TypeScript setup](../getting-started/quick-start/#2-enable-typescript-support-typescript) for type safety

docs/src/content/docs/reference/api.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -186,6 +186,6 @@ The programmatic API has some overhead since it parses at runtime:
186186

187187
## Related
188188

189-
- [Runtime tw](/guides/runtime-tw/) - For fully dynamic styling
190-
- [Custom Colors](/advanced/custom-colors/) - Extend color palette
191-
- [Troubleshooting](/advanced/troubleshooting/) - Common issues
189+
- [Runtime tw](../guides/runtime-tw/) - For fully dynamic styling
190+
- [Custom Colors](../advanced/custom-colors/) - Extend color palette
191+
- [Troubleshooting](../advanced/troubleshooting/) - Common issues

docs/src/content/docs/reference/aspect-ratio.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -96,5 +96,5 @@ The aspect ratio is calculated as `width / height`. When combined with `w-full`,
9696

9797
## Related
9898

99-
- [Sizing](/reference/sizing/) - Width and height utilities
100-
- [Layout](/reference/layout/) - Flexbox utilities
99+
- [Sizing](./sizing/) - Width and height utilities
100+
- [Layout](./layout/) - Flexbox utilities

0 commit comments

Comments
 (0)