Skip to content

Commit

Permalink
Fix website versions page to links to correct language & delete unuse…
Browse files Browse the repository at this point in the history
…d file (#6734)
  • Loading branch information
endiliey authored and thymikee committed Jul 22, 2018
1 parent 79089db commit a10bc90
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 165 deletions.
1 change: 0 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@
/website/yarn.lock
/website/translated_docs
/website/i18n/*
!/website/i18n/en.json

coverage
lerna-debug.log
Expand Down
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@

- `[babel-jest]` Make `getCacheKey()` take into account `createTransformer` options ([#6699](https://github.com/facebook/jest/pull/6699))
- `[docs]` Fix contributors link ([#6711](https://github.com/facebook/jest/pull/6711))
- `[website]` Fix website versions page to link to correct language ([#6734](https://github.com/facebook/jest/pull/6734))

## 23.4.1

Expand Down
97 changes: 0 additions & 97 deletions website/i18n/en.json

This file was deleted.

9 changes: 6 additions & 3 deletions website/pages/en/versions.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ const versions = require(CWD + '/versions.json');
class Versions extends React.Component {
render() {
const latestVersion = versions[0];
const {language} = this.props;
return (
<div className="docMainWrapper wrapper">
<Container className="mainContainer versionsContainer">
Expand All @@ -33,7 +34,9 @@ class Versions extends React.Component {
<th>{latestVersion}</th>
<td>
<a
href={`${siteConfig.baseUrl}docs/en/getting-started.html`}
href={`${
siteConfig.baseUrl
}docs/${language}/getting-started.html`}
>
Documentation
</a>
Expand All @@ -58,7 +61,7 @@ class Versions extends React.Component {
<a
href={`${
siteConfig.baseUrl
}docs/en/next/getting-started.html`}
}docs/${language}/next/getting-started.html`}
>
Documentation
</a>
Expand All @@ -84,7 +87,7 @@ class Versions extends React.Component {
<a
href={`${
siteConfig.baseUrl
}docs/en/${version}/getting-started.html`}
}docs/${language}/${version}/getting-started.html`}
>
Documentation
</a>
Expand Down
64 changes: 0 additions & 64 deletions website/publish-gh-pages.js

This file was deleted.

0 comments on commit a10bc90

Please sign in to comment.