mirror of
https://github.com/facebook/docusaurus.git
synced 2025-08-03 00:39:45 +02:00
docs(v2): fixed the directory of index.js (#4559)
This commit is contained in:
parent
ddcdb1cc2d
commit
d324dc3869
12 changed files with 15 additions and 15 deletions
|
@ -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';
|
||||
|
||||
|
|
|
@ -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';
|
||||
|
|
|
@ -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';
|
||||
|
|
|
@ -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';
|
||||
|
|
|
@ -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';
|
||||
|
||||
|
|
|
@ -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';
|
||||
|
|
|
@ -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';
|
||||
|
|
|
@ -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';
|
||||
|
|
|
@ -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';
|
||||
|
||||
|
|
|
@ -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';
|
||||
|
|
|
@ -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';
|
||||
|
|
|
@ -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';
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue