Skip to content

Commit baa24a1

Browse files
authored
fix: improve SEO for user-event (#1342)
Closes #1333
1 parent 7ffe7f9 commit baa24a1

File tree

5 files changed

+8
-4
lines changed

5 files changed

+8
-4
lines changed

docs/user-event/intro.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ events that would happen if the interaction took place in a browser.
1111

1212
These docs describe `user-event@14`. We recommend updating your projects to this
1313
version, as it includes important bug fixes and new features. You can find the
14-
docs for `[email protected]` [here](../ecosystem-user-event.mdx), and the
14+
docs for `[email protected]` [here](./v13.mdx), and the
1515
changelog for the release
1616
[here](https://github.com/testing-library/user-event/releases/tag/v14.0.0).
1717

docs/ecosystem-user-event.mdx renamed to docs/user-event/v13.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
---
2-
id: ecosystem-user-event
2+
id: v13
33
title: user-event v13
44
---
55

netlify.toml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,10 @@
6060
[[redirects]]
6161
from = "/docs/dom-testing-library/api-helpers"
6262
to = "/docs/dom-testing-library/api-accessibility"
63+
[[redirects]]
64+
from = "/docs/ecosystem-user-event"
65+
to = "/docs/user-event/intro"
66+
6367

6468
# Reorganization (do not redirect if route is not 404)
6569
[[redirects]]

sidebars.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -186,7 +186,7 @@ module.exports = {
186186
'user-event/clipboard',
187187
'user-event/utility',
188188
'user-event/convenience',
189-
'ecosystem-user-event',
189+
'user-event/v13',
190190
],
191191
},
192192
{

src/pages/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -245,7 +245,7 @@ export default class Index extends React.Component {
245245
{
246246
image: `${baseUrl}img/construction-128x128.png`,
247247
imageAlign: 'top',
248-
title: '[And more...](./docs/ecosystem-user-event)',
248+
title: '[And more...](./docs/user-event/intro)',
249249
imageAlt: '',
250250
},
251251
]}

0 commit comments

Comments
 (0)