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

docs: fix filenames in docs/swizzling.mdx #9074

Merged
merged 2 commits into from
Jun 16, 2023
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: 2 additions & 2 deletions website/docs/swizzling.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@ npm run swizzle @docusaurus/theme-classic Footer -- --eject

This will copy the current `<Footer />` component's implementation to your site's `src/theme` directory. Docusaurus will now use this `<Footer>` component copy instead of the original one. You are now free to completely re-implement the `<Footer>` component.

```jsx title="src/theme/SomeComponent.js"
```jsx title="src/theme/Footer/index.js"
import React from 'react';

export default function Footer(props) {
Expand Down Expand Up @@ -175,7 +175,7 @@ npm run swizzle @docusaurus/theme-classic Footer -- --wrap

This will create a wrapper in your site's `src/theme` directory. Docusaurus will now use the `<FooterWrapper>` component instead of the original one. You can now add customizations around the original component.

```jsx title="src/theme/SomeComponent.js"
```jsx title="src/theme/Footer/index.js"
import React from 'react';
import Footer from '@theme-original/Footer';

Expand Down
4 changes: 2 additions & 2 deletions website/versioned_docs/version-2.0.1/swizzling.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@ npm run swizzle @docusaurus/theme-classic Footer -- --eject

This will copy the current `<Footer />` component's implementation to your site's `src/theme` directory. Docusaurus will now use this `<Footer>` component copy instead of the original one. You are now free to completely re-implement the `<Footer>` component.

```jsx title="src/theme/SomeComponent.js"
```jsx title="src/theme/Footer/index.js"
import React from 'react';

export default function Footer(props) {
Expand Down Expand Up @@ -175,7 +175,7 @@ npm run swizzle @docusaurus/theme-classic Footer -- --wrap

This will create a wrapper in your site's `src/theme` directory. Docusaurus will now use the `<FooterWrapper>` component instead of the original one. You can now add customizations around the original component.

```jsx title="src/theme/SomeComponent.js"
```jsx title="src/theme/Footer/index.js"
import React from 'react';
import Footer from '@theme-original/Footer';

Expand Down
4 changes: 2 additions & 2 deletions website/versioned_docs/version-2.1.0/swizzling.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@ npm run swizzle @docusaurus/theme-classic Footer -- --eject

This will copy the current `<Footer />` component's implementation to your site's `src/theme` directory. Docusaurus will now use this `<Footer>` component copy instead of the original one. You are now free to completely re-implement the `<Footer>` component.

```jsx title="src/theme/SomeComponent.js"
```jsx title="src/theme/Footer/index.js"
import React from 'react';

export default function Footer(props) {
Expand Down Expand Up @@ -175,7 +175,7 @@ npm run swizzle @docusaurus/theme-classic Footer -- --wrap

This will create a wrapper in your site's `src/theme` directory. Docusaurus will now use the `<FooterWrapper>` component instead of the original one. You can now add customizations around the original component.

```jsx title="src/theme/SomeComponent.js"
```jsx title="src/theme/Footer/index.js"
import React from 'react';
import Footer from '@theme-original/Footer';

Expand Down
4 changes: 2 additions & 2 deletions website/versioned_docs/version-2.2.0/swizzling.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@ npm run swizzle @docusaurus/theme-classic Footer -- --eject

This will copy the current `<Footer />` component's implementation to your site's `src/theme` directory. Docusaurus will now use this `<Footer>` component copy instead of the original one. You are now free to completely re-implement the `<Footer>` component.

```jsx title="src/theme/SomeComponent.js"
```jsx title="src/theme/Footer/index.js"
import React from 'react';

export default function Footer(props) {
Expand Down Expand Up @@ -175,7 +175,7 @@ npm run swizzle @docusaurus/theme-classic Footer -- --wrap

This will create a wrapper in your site's `src/theme` directory. Docusaurus will now use the `<FooterWrapper>` component instead of the original one. You can now add customizations around the original component.

```jsx title="src/theme/SomeComponent.js"
```jsx title="src/theme/Footer/index.js"
import React from 'react';
import Footer from '@theme-original/Footer';

Expand Down
4 changes: 2 additions & 2 deletions website/versioned_docs/version-2.3.1/swizzling.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@ npm run swizzle @docusaurus/theme-classic Footer -- --eject

This will copy the current `<Footer />` component's implementation to your site's `src/theme` directory. Docusaurus will now use this `<Footer>` component copy instead of the original one. You are now free to completely re-implement the `<Footer>` component.

```jsx title="src/theme/SomeComponent.js"
```jsx title="src/theme/Footer/index.js"
import React from 'react';

export default function Footer(props) {
Expand Down Expand Up @@ -175,7 +175,7 @@ npm run swizzle @docusaurus/theme-classic Footer -- --wrap

This will create a wrapper in your site's `src/theme` directory. Docusaurus will now use the `<FooterWrapper>` component instead of the original one. You can now add customizations around the original component.

```jsx title="src/theme/SomeComponent.js"
```jsx title="src/theme/Footer/index.js"
import React from 'react';
import Footer from '@theme-original/Footer';

Expand Down
4 changes: 2 additions & 2 deletions website/versioned_docs/version-2.4.1/swizzling.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@ npm run swizzle @docusaurus/theme-classic Footer -- --eject

This will copy the current `<Footer />` component's implementation to your site's `src/theme` directory. Docusaurus will now use this `<Footer>` component copy instead of the original one. You are now free to completely re-implement the `<Footer>` component.

```jsx title="src/theme/SomeComponent.js"
```jsx title="src/theme/Footer/index.js"
import React from 'react';

export default function Footer(props) {
Expand Down Expand Up @@ -175,7 +175,7 @@ npm run swizzle @docusaurus/theme-classic Footer -- --wrap

This will create a wrapper in your site's `src/theme` directory. Docusaurus will now use the `<FooterWrapper>` component instead of the original one. You can now add customizations around the original component.

```jsx title="src/theme/SomeComponent.js"
```jsx title="src/theme/Footer/index.js"
import React from 'react';
import Footer from '@theme-original/Footer';

Expand Down
4 changes: 2 additions & 2 deletions website/versioned_docs/version-3.0.0-alpha.0/swizzling.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@ npm run swizzle @docusaurus/theme-classic Footer -- --eject

This will copy the current `<Footer />` component's implementation to your site's `src/theme` directory. Docusaurus will now use this `<Footer>` component copy instead of the original one. You are now free to completely re-implement the `<Footer>` component.

```jsx title="src/theme/SomeComponent.js"
```jsx title="src/theme/Footer/index.js"
import React from 'react';

export default function Footer(props) {
Expand Down Expand Up @@ -175,7 +175,7 @@ npm run swizzle @docusaurus/theme-classic Footer -- --wrap

This will create a wrapper in your site's `src/theme` directory. Docusaurus will now use the `<FooterWrapper>` component instead of the original one. You can now add customizations around the original component.

```jsx title="src/theme/SomeComponent.js"
```jsx title="src/theme/Footer/index.js"
import React from 'react';
import Footer from '@theme-original/Footer';

Expand Down