Skip to content

Commit 84522de

Browse files
authored
fix: update docs references (#2497)
1 parent 500cdd8 commit 84522de

8 files changed

+13
-13
lines changed

docs/babel.mdx

+2-2
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ title: 'Babel Plugin'
66

77
### Install
88

9-
In `emotion` version 8 and above, installation is optional. In older versions, installation is required. See the [installation instructions](/docs/install.md).
9+
In `emotion` version 8 and above, installation is optional. In older versions, installation is required. See the [installation instructions](/docs/install.mdx).
1010

1111
### Features which are enabled with the babel plugin
1212

@@ -24,4 +24,4 @@ When enabled, navigate directly to the style declaration in your javascript file
2424

2525
### Components as selectors
2626

27-
The ability to refer to another component to apply override styles depending on nesting context. Learn more in the [styled docs](/docs/styled.md#targeting-another-emotion-component).
27+
The ability to refer to another component to apply override styles depending on nesting context. Learn more in the [styled docs](/docs/styled.mdx#targeting-another-emotion-component).

docs/css-prop.mdx

+1-1
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,7 @@ render(
122122
)
123123
```
124124

125-
> [Object Style Documentation](/docs/object-styles.md).
125+
> [Object Style Documentation](/docs/object-styles.mdx).
126126
127127
## String Styles
128128

docs/extract-static.mdx

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ title: 'Extract Static'
44

55
# Static Extraction has been removed from Emotion, this page only exists to explain the decision
66

7-
###### [requires babel plugin](/docs/babel.md)
7+
###### [requires babel plugin](/docs/babel.mdx)
88

99
## DEPRECATED
1010

docs/install.mdx

+3-3
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ or if you prefer npm
1414
npm install --save @emotion/react
1515
```
1616

17-
To use it, import what you need, for example use [the css prop](/docs/css-prop.md) to create class names with styles.
17+
To use it, import what you need, for example use [the css prop](/docs/css-prop.mdx) to create class names with styles.
1818

1919
```jsx
2020
// @live
@@ -47,7 +47,7 @@ render(
4747
)
4848
```
4949

50-
## With [`styled`](/docs/styled.md)
50+
## With [`styled`](/docs/styled.mdx)
5151

5252
`styled` is a way to create React components that have styles attached to them.
5353

@@ -77,7 +77,7 @@ render(<Button>This is a hotpink button.</Button>)
7777

7878
> Note:
7979
>
80-
> If you're using Create React App, you can use the [Babel macro](./babel-macros.md)
80+
> If you're using Create React App, you can use the [Babel macro](/docs/babel-macros.mdx)
8181
8282
Emotion has an optional [Babel](https://babeljs.io/) plugin that optimizes styles by compressing and hoisting them and creates a better developer experience with source maps and labels.
8383

docs/introduction.mdx

+3-3
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ The [@emotion/css](https://www.npmjs.com/package/@emotion/css) package is framew
2424

2525
- You simply prefer to use the `css` function to generate class names and `cx` to compose them.
2626

27-
- Server side rendering requires [additional work to set up](/docs/ssr.md#api)
27+
- Server side rendering requires [additional work to set up](/docs/ssr.mdx#api)
2828

2929
```jsx
3030
// @live
@@ -74,7 +74,7 @@ The ["@emotion/react"](https://www.npmjs.com/package/@emotion/react) package req
7474

7575
- ESLint plugins available to ensure proper patterns and configuration are set.
7676

77-
**[`@emotion/react` css prop documentation](/docs/css-prop.md)**
77+
**[`@emotion/react` css prop documentation](/docs/css-prop.mdx)**
7878

7979
```jsx
8080
// @live
@@ -107,7 +107,7 @@ npm i @emotion/styled @emotion/react
107107

108108
The [@emotion/styled](https://www.npmjs.com/package/@emotion/styled) package is for those who prefer to use the `styled.div` style API for creating components.
109109

110-
**[`@emotion/styled` documentation](/docs/styled.md)**
110+
**[`@emotion/styled` documentation](/docs/styled.mdx)**
111111

112112
```jsx
113113
// @live

docs/migrating-to-emotion-10.mdx

+1-1
Original file line numberDiff line numberDiff line change
@@ -173,7 +173,7 @@ let element = (
173173
)
174174
```
175175

176-
If you have components that accepts props like `wrapperClassName`, etc., you can use the [`ClassNames` component](./class-names.md).
176+
If you have components that accepts props like `wrapperClassName`, etc., you can use the [`ClassNames` component](/docs/class-names.mdx).
177177

178178
```jsx
179179
import { css } from 'emotion'

docs/object-styles.mdx

+1-1
Original file line numberDiff line numberDiff line change
@@ -183,7 +183,7 @@ render(
183183
184184
### Composition
185185
186-
[Learn more composition in Emotion](/docs/composition.md).
186+
[Learn more composition in Emotion](/docs/composition.mdx).
187187
188188
```jsx
189189
// @live

docs/source-maps.mdx

+1-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ Emotion supports source maps for styles authored in JavaScript.
1212

1313
Required For Source Maps:
1414

15-
1. `@emotion/babel-plugin` must be in your Babel setup. [[documentation]](./install.md)
15+
1. `@emotion/babel-plugin` must be in your Babel setup. [[documentation]](/docs/install.mdx)
1616
2. `process.env.NODE_ENV` must be any value except `"production"`
1717

1818
> Note:

0 commit comments

Comments
 (0)