Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix website versions page to links to correct language & delete unused file #6734

Merged
merged 2 commits into from
Jul 22, 2018
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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.