Skip to content

Commit 33c0084

Browse files
authored
docs: make v12 the last version and redirect /v12 routes to / (#2512)
1 parent 3f2fa13 commit 33c0084

File tree

2 files changed

+18
-5
lines changed

2 files changed

+18
-5
lines changed

docusaurus/react-docusaurus-dontent-docs.plugin.js

+17-4
Original file line numberDiff line numberDiff line change
@@ -3,15 +3,14 @@ module.exports = {
33
[
44
'@docusaurus/plugin-content-docs',
55
{
6-
lastVersion: '11.x.x',
6+
lastVersion: 'current',
77
versions: {
88
current: {
9-
banner: 'unreleased',
10-
label: 'v12 (rc)',
11-
path: 'v12',
9+
label: 'v12',
1210
},
1311
'11.x.x': {
1412
label: 'v11',
13+
path: 'v11',
1514
},
1615
'11.x.x-legacy': {
1716
label: 'v11 (legacy)',
@@ -21,5 +20,19 @@ module.exports = {
2120
},
2221
},
2322
],
23+
[
24+
'@docusaurus/plugin-client-redirects',
25+
{
26+
createRedirects(existingPath) {
27+
// we need to replace /v12 in the path to the current version as v12 was previously rc
28+
const replacedToken = '/v12';
29+
if (existingPath.includes(replacedToken)) {
30+
// Redirect from /v12/X to /
31+
return [existingPath.replace('/', replacedToken)];
32+
}
33+
return undefined; // Return a falsy value: no redirect created
34+
},
35+
},
36+
],
2437
],
2538
};

docusaurus/react_versioned_docs/version-11.x.x/theming/introduction.mdx

+1-1
Original file line numberDiff line numberDiff line change
@@ -142,7 +142,7 @@ The `str-chat` class is applied to the [channel list](../components/ChannelListC
142142
<SDKSpecific name="react">
143143

144144
:::note
145-
The `str-chat` class is applied to the [`ChannelList`](../core-components/channel-list.mdx) and [`Channel`](../core-components/channel.mdx) components, all CSS variables are declared on this level.
145+
The `str-chat` class is applied to the [`ChannelList`](../components/core-components/channel-list.mdx) and [`Channel`](../core-components/channel.mdx) components, all CSS variables are declared on this level.
146146
:::
147147

148148
</SDKSpecific>

0 commit comments

Comments
 (0)