Skip to content

Commit

Permalink
docs(v2): fixed the directory of index.js (#4559)
Browse files Browse the repository at this point in the history
  • Loading branch information
idontknowjs authored Apr 5, 2021
1 parent ddcdb1c commit d324dc3
Show file tree
Hide file tree
Showing 12 changed files with 15 additions and 15 deletions.
4 changes: 2 additions & 2 deletions website/docs/docusaurus-core.md
Original file line number Diff line number Diff line change
Expand Up @@ -183,7 +183,7 @@ Apart the `values` prop used for interpolation, it is **not possible to use vari

#### Example {#example}

```jsx title="src/index.js"
```jsx title="src/pages/index.js"
import React from 'react';
import Layout from '@theme/Layout';

Expand Down Expand Up @@ -468,7 +468,7 @@ function translate(

#### Example {#example-2}

```jsx title="src/index.js"
```jsx title="src/pages/index.js"
import React from 'react';
import Layout from '@theme/Layout';

Expand Down
2 changes: 1 addition & 1 deletion website/docs/i18n/i18n-crowdin.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ module.exports = {

Translate the homepage:

```jsx title="src/index.js"
```jsx title="src/pages/index.js"
import React from 'react';
import Translate from '@docusaurus/Translate';
import Layout from '@theme/Layout';
Expand Down
2 changes: 1 addition & 1 deletion website/docs/i18n/i18n-git.md
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ module.exports = {

Translate the homepage:

```jsx title="src/index.js"
```jsx title="src/pages/index.js"
import React from 'react';
import Translate from '@docusaurus/Translate';
import Layout from '@theme/Layout';
Expand Down
2 changes: 1 addition & 1 deletion website/docs/i18n/i18n-tutorial.md
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ Hot-reload will work better when editing existing files.

Open the homepage, and use the [translation APIs](../docusaurus-core.md#translate):

```jsx title="src/index.js"
```jsx title="src/pages/index.js"
import React from 'react';
import Layout from '@theme/Layout';
import Link from '@docusaurus/Link';
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -183,7 +183,7 @@ Apart the `values` prop used for interpolation, it is **not possible to use vari

#### Example {#example}

```jsx title="src/index.js"
```jsx title="src/pages/index.js"
import React from 'react';
import Layout from '@theme/Layout';

Expand Down Expand Up @@ -468,7 +468,7 @@ function translate(

#### Example {#example-2}

```jsx title="src/index.js"
```jsx title="src/pages/index.js"
import React from 'react';
import Layout from '@theme/Layout';

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ module.exports = {

Translate the homepage:

```jsx title="src/index.js"
```jsx title="src/pages/index.js"
import React from 'react';
import Translate from '@docusaurus/Translate';
import Layout from '@theme/Layout';
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ module.exports = {

Translate the homepage:

```jsx title="src/index.js"
```jsx title="src/pages/index.js"
import React from 'react';
import Translate from '@docusaurus/Translate';
import Layout from '@theme/Layout';
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ Hot-reload will work better when editing existing files.

Open the homepage, and use the [translation APIs](../docusaurus-core.md#translate):

```jsx title="src/index.js"
```jsx title="src/pages/index.js"
import React from 'react';
import Layout from '@theme/Layout';
import Link from '@docusaurus/Link';
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -183,7 +183,7 @@ Apart the `values` prop used for interpolation, it is **not possible to use vari

#### Example {#example}

```jsx title="src/index.js"
```jsx title="src/pages/index.js"
import React from 'react';
import Layout from '@theme/Layout';

Expand Down Expand Up @@ -468,7 +468,7 @@ function translate(

#### Example {#example-2}

```jsx title="src/index.js"
```jsx title="src/pages/index.js"
import React from 'react';
import Layout from '@theme/Layout';

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ module.exports = {

Translate the homepage:

```jsx title="src/index.js"
```jsx title="src/pages/index.js"
import React from 'react';
import Translate from '@docusaurus/Translate';
import Layout from '@theme/Layout';
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ module.exports = {

Translate the homepage:

```jsx title="src/index.js"
```jsx title="src/pages/index.js"
import React from 'react';
import Translate from '@docusaurus/Translate';
import Layout from '@theme/Layout';
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ Hot-reload will work better when editing existing files.

Open the homepage, and use the [translation APIs](../docusaurus-core.md#translate):

```jsx title="src/index.js"
```jsx title="src/pages/index.js"
import React from 'react';
import Layout from '@theme/Layout';
import Link from '@docusaurus/Link';
Expand Down

0 comments on commit d324dc3

Please sign in to comment.