Skip to content

Commit ff83826

Browse files
Create v11 legacy docs version
1 parent ffcee5f commit ff83826

File tree

184 files changed

+18970
-0
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

184 files changed

+18970
-0
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
module.exports = {
2+
plugins: [
3+
[
4+
'@docusaurus/plugin-content-docs',
5+
{
6+
lastVersion: 'current',
7+
versions: {
8+
current: {
9+
label: 'v11',
10+
},
11+
'11.x.x-legacy': {
12+
label: 'v11 (legacy)',
13+
path: 'v11-legacy',
14+
banner: 'unmaintained',
15+
},
16+
},
17+
},
18+
],
19+
],
20+
};
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
import React from 'react';
2+
3+
const GHComponentLink = ({ text, as: As = React.Fragment, path, branch = 'master' }) => {
4+
return (
5+
<a
6+
target='_blank'
7+
href={`https://github.com/GetStream/stream-chat-react/blob/${branch}/src/components${path}`}
8+
>
9+
<As>{text}</As>
10+
</a>
11+
);
12+
};
13+
14+
export default GHComponentLink;

0 commit comments

Comments
Β (0)