Skip to content

Commit a10bc90

Browse files
endilieythymikee
authored andcommitted
Fix website versions page to links to correct language & delete unused file (#6734)
1 parent 79089db commit a10bc90

5 files changed

Lines changed: 7 additions & 165 deletions

File tree

.gitignore

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,6 @@
2424
/website/yarn.lock
2525
/website/translated_docs
2626
/website/i18n/*
27-
!/website/i18n/en.json
2827

2928
coverage
3029
lerna-debug.log

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88

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

1213
## 23.4.1
1314

website/i18n/en.json

Lines changed: 0 additions & 97 deletions
This file was deleted.

website/pages/en/versions.js

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ const versions = require(CWD + '/versions.json');
1818
class Versions extends React.Component {
1919
render() {
2020
const latestVersion = versions[0];
21+
const {language} = this.props;
2122
return (
2223
<div className="docMainWrapper wrapper">
2324
<Container className="mainContainer versionsContainer">
@@ -33,7 +34,9 @@ class Versions extends React.Component {
3334
<th>{latestVersion}</th>
3435
<td>
3536
<a
36-
href={`${siteConfig.baseUrl}docs/en/getting-started.html`}
37+
href={`${
38+
siteConfig.baseUrl
39+
}docs/${language}/getting-started.html`}
3740
>
3841
Documentation
3942
</a>
@@ -58,7 +61,7 @@ class Versions extends React.Component {
5861
<a
5962
href={`${
6063
siteConfig.baseUrl
61-
}docs/en/next/getting-started.html`}
64+
}docs/${language}/next/getting-started.html`}
6265
>
6366
Documentation
6467
</a>
@@ -84,7 +87,7 @@ class Versions extends React.Component {
8487
<a
8588
href={`${
8689
siteConfig.baseUrl
87-
}docs/en/${version}/getting-started.html`}
90+
}docs/${language}/${version}/getting-started.html`}
8891
>
8992
Documentation
9093
</a>

website/publish-gh-pages.js

Lines changed: 0 additions & 64 deletions
This file was deleted.

0 commit comments

Comments
 (0)