docs(v2): fixed the directory of index.js (#4559)

This commit is contained in:
Arijit Kundu 2021-04-05 22:26:14 +05:30 committed by GitHub
parent ddcdb1cc2d
commit d324dc3869
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
12 changed files with 15 additions and 15 deletions

View file

@ -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';
@ -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';

View file

@ -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';

View file

@ -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';

View file

@ -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';

View file

@ -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';
@ -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';

View file

@ -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';

View file

@ -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';

View file

@ -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';

View file

@ -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';
@ -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';

View file

@ -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';

View file

@ -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';

View file

@ -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';