-
-
Notifications
You must be signed in to change notification settings - Fork 8.5k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
25 changed files
with
256 additions
and
121 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
/* eslint-disable */ | ||
import React from 'react'; | ||
import {Link} from 'react-router-dom'; | ||
import Helmet from 'react-helmet'; | ||
import Layout from '@theme/Layout'; // eslint-disable-line | ||
|
||
export default class Pages extends React.Component { | ||
render() { | ||
const {metadata, children, siteConfig} = this.props; | ||
const {language} = metadata; | ||
return ( | ||
<Layout {...this.props}> | ||
<Helmet defaultTitle={siteConfig.title}> | ||
{language && <html lang={language} />} | ||
{language && <meta name="docsearch:language" content={language} />} | ||
</Helmet> | ||
{children} | ||
</Layout> | ||
); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,16 @@ | ||
import React from 'react'; | ||
import Helmet from 'react-helmet'; | ||
import Layout from '@theme/Layout'; | ||
|
||
export default class World extends React.Component { | ||
render() { | ||
return ( | ||
<Layout {...this.props}> | ||
<div> | ||
<Helmet> | ||
<title>World</title> | ||
<link rel="stylesheet" type="text/css" href="/css/basic.css" /> | ||
</Helmet> | ||
<div>Hello World </div> | ||
</Layout> | ||
</div> | ||
); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,16 @@ | ||
import React from 'react'; | ||
import Helmet from 'react-helmet'; | ||
import Layout from '@theme/Layout'; | ||
|
||
export default class Home extends React.Component { | ||
render() { | ||
return ( | ||
<Layout {...this.props}> | ||
<div> | ||
<Helmet> | ||
<title>Home</title> | ||
<link rel="stylesheet" type="text/css" href="/css/basic.css" /> | ||
</Helmet> | ||
<div>Home ... </div> | ||
</Layout> | ||
</div> | ||
); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,16 @@ | ||
import React from 'react'; | ||
import Helmet from 'react-helmet'; | ||
import Layout from '@theme/Layout'; | ||
|
||
export default class World extends React.Component { | ||
render() { | ||
return ( | ||
<Layout {...this.props}> | ||
<div> | ||
<Helmet> | ||
<title>World</title> | ||
<link rel="stylesheet" type="text/css" href="/css/basic.css" /> | ||
</Helmet> | ||
<div>Hello World </div> | ||
</Layout> | ||
</div> | ||
); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,16 @@ | ||
import React from 'react'; | ||
import Helmet from 'react-helmet'; | ||
import Layout from '@theme/Layout'; | ||
|
||
export default class Home extends React.Component { | ||
render() { | ||
return ( | ||
<Layout {...this.props}> | ||
<div> | ||
<Helmet> | ||
<title>Home</title> | ||
<link rel="stylesheet" type="text/css" href="/css/basic.css" /> | ||
</Helmet> | ||
<div>Home ... </div> | ||
</Layout> | ||
</div> | ||
); | ||
} | ||
} |
5 changes: 2 additions & 3 deletions
5
v2/test/__fixtures__/transversioned-site/pages/hello/world.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,16 @@ | ||
import React from 'react'; | ||
import Helmet from 'react-helmet'; | ||
import Layout from '@theme/Layout'; | ||
|
||
export default class World extends React.Component { | ||
render() { | ||
return ( | ||
<Layout {...this.props}> | ||
<div> | ||
<Helmet> | ||
<title>World</title> | ||
<link rel="stylesheet" type="text/css" href="/css/basic.css" /> | ||
</Helmet> | ||
<div>Hello World </div> | ||
</Layout> | ||
</div> | ||
); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,16 @@ | ||
import React from 'react'; | ||
import Helmet from 'react-helmet'; | ||
import Layout from '@theme/Layout'; | ||
|
||
export default class Home extends React.Component { | ||
render() { | ||
return ( | ||
<Layout {...this.props}> | ||
<div> | ||
<Helmet> | ||
<title>Home</title> | ||
<link rel="stylesheet" type="text/css" href="/css/basic.css" /> | ||
</Helmet> | ||
<div>Home ... </div> | ||
</Layout> | ||
</div> | ||
); | ||
} | ||
} |
Oops, something went wrong.