Skip to content

Commit 9da3f39

Browse files
authored
Move 5.x releases to legacy section (#1743)
Policy is latest two major releases (so 7.x and 6.x at this time), we just forgot to update this.
1 parent f4743f2 commit 9da3f39

2 files changed

Lines changed: 112 additions & 114 deletions

File tree

docs/legacy.mdx

Lines changed: 53 additions & 53 deletions
Original file line numberDiff line numberDiff line change
@@ -1,77 +1,77 @@
11
# Legacy Versions
22

33
<p className="subtitle">
4-
This page displays the docs for legacy Sourcegraph versions less than 5.1
4+
Find versioned documentation for previous versions of Sourcegraph below.
55
</p>
66

77
<Accordion title="Sourcegraph 6.X">
88

9-
- [6.12](https://6.12.sourcegraph.com)
10-
- [6.11](https://6.11.sourcegraph.com)
11-
- [6.10](https://6.10.sourcegraph.com)
12-
- [6.9](https://6.9.sourcegraph.com)
13-
- [6.8](https://6.8.sourcegraph.com)
14-
- [6.7](https://6.7.sourcegraph.com)
15-
- [6.6](https://6.6.sourcegraph.com)
16-
- [6.5](https://6.5.sourcegraph.com)
17-
- [6.4](https://6.4.sourcegraph.com)
18-
- [6.3](https://6.3.sourcegraph.com)
19-
- [6.2](https://6.2.sourcegraph.com)
20-
- [6.1](https://6.1.sourcegraph.com)
21-
- [6.0](https://6.0.sourcegraph.com)
9+
- [6.12](https://6.12.sourcegraph.com)
10+
- [6.11](https://6.11.sourcegraph.com)
11+
- [6.10](https://6.10.sourcegraph.com)
12+
- [6.9](https://6.9.sourcegraph.com)
13+
- [6.8](https://6.8.sourcegraph.com)
14+
- [6.7](https://6.7.sourcegraph.com)
15+
- [6.6](https://6.6.sourcegraph.com)
16+
- [6.5](https://6.5.sourcegraph.com)
17+
- [6.4](https://6.4.sourcegraph.com)
18+
- [6.3](https://6.3.sourcegraph.com)
19+
- [6.2](https://6.2.sourcegraph.com)
20+
- [6.1](https://6.1.sourcegraph.com)
21+
- [6.0](https://6.0.sourcegraph.com)
2222

2323
</Accordion>
2424

2525
<Accordion title="Sourcegraph 5.X">
2626

27-
- [5.11](https://5.11.sourcegraph.com/)
28-
- [5.10](https://5.10.sourcegraph.com/)
29-
- [5.9](https://5.9.sourcegraph.com/)
30-
- [5.8](https://5.8.sourcegraph.com/)
31-
- [5.7](https://5.7.sourcegraph.com/)
32-
- [5.6](https://5.6.sourcegraph.com/)
33-
- [5.5](https://5.5.sourcegraph.com/)
34-
- [5.4](https://5.4.sourcegraph.com)
35-
- [5.3](https://5.3.sourcegraph.com/)
36-
- [5.2](https://5.2.sourcegraph.com/)
37-
- [5.1](https://docs.sourcegraph.com/@5.1/)
38-
- [5.0](https://docs.sourcegraph.com/@5.0/)
27+
- [5.11](https://5.11.sourcegraph.com/)
28+
- [5.10](https://5.10.sourcegraph.com/)
29+
- [5.9](https://5.9.sourcegraph.com/)
30+
- [5.8](https://5.8.sourcegraph.com/)
31+
- [5.7](https://5.7.sourcegraph.com/)
32+
- [5.6](https://5.6.sourcegraph.com/)
33+
- [5.5](https://5.5.sourcegraph.com/)
34+
- [5.4](https://5.4.sourcegraph.com)
35+
- [5.3](https://5.3.sourcegraph.com/)
36+
- [5.2](https://5.2.sourcegraph.com/)
37+
- [5.1](https://docs.sourcegraph.com/@5.1/)
38+
- [5.0](https://docs.sourcegraph.com/@5.0/)
3939

4040
</Accordion>
4141

4242
<Accordion title="Sourcegraph 4.X">
4343

44-
- [4.5](https://docs.sourcegraph.com/@4.5/)
45-
- [4.4](https://docs.sourcegraph.com/@4.4/)
46-
- [4.3](https://docs.sourcegraph.com/@4.3/)
47-
- [4.2](https://docs.sourcegraph.com/@4.2/)
48-
- [4.1](https://docs.sourcegraph.com/@4.1/)
49-
- [4.0](https://docs.sourcegraph.com/@4.0/)
44+
- [4.5](https://docs.sourcegraph.com/@4.5/)
45+
- [4.4](https://docs.sourcegraph.com/@4.4/)
46+
- [4.3](https://docs.sourcegraph.com/@4.3/)
47+
- [4.2](https://docs.sourcegraph.com/@4.2/)
48+
- [4.1](https://docs.sourcegraph.com/@4.1/)
49+
- [4.0](https://docs.sourcegraph.com/@4.0/)
5050

5151
</Accordion>
5252

5353
<Accordion title="Sourcegraph 3.X">
5454

55-
- [3.43](https://docs.sourcegraph.com/@3.43/)
56-
- [3.41](https://docs.sourcegraph.com/@3.41/)
57-
- [3.40](https://docs.sourcegraph.com/@3.40/)
58-
- [3.39](https://docs.sourcegraph.com/@3.39/)
59-
- [3.38](https://docs.sourcegraph.com/@3.38/)
60-
- [3.37](https://docs.sourcegraph.com/@3.37/)
61-
- [3.36](https://docs.sourcegraph.com/@3.36/)
62-
- [3.35](https://docs.sourcegraph.com/@3.35/)
63-
- [3.34](https://docs.sourcegraph.com/@3.34/)
64-
- [3.32](https://docs.sourcegraph.com/@3.32/)
65-
- [3.31](https://docs.sourcegraph.com/@3.31/)
66-
- [3.30](https://docs.sourcegraph.com/@3.30/)
67-
- [3.29](https://docs.sourcegraph.com/@3.29/)
68-
- [3.28](https://docs.sourcegraph.com/@3.28/)
69-
- [3.27](https://docs.sourcegraph.com/@3.27/)
70-
- [3.26](https://docs.sourcegraph.com/@3.26/)
71-
- [3.25](https://docs.sourcegraph.com/@3.25/)
72-
- [3.24](https://docs.sourcegraph.com/@3.24/)
73-
- [3.23](https://docs.sourcegraph.com/@3.23/)
74-
- [3.22](https://docs.sourcegraph.com/@3.22/)
75-
- [3.21](https://docs.sourcegraph.com/@3.21/)
55+
- [3.43](https://docs.sourcegraph.com/@3.43/)
56+
- [3.41](https://docs.sourcegraph.com/@3.41/)
57+
- [3.40](https://docs.sourcegraph.com/@3.40/)
58+
- [3.39](https://docs.sourcegraph.com/@3.39/)
59+
- [3.38](https://docs.sourcegraph.com/@3.38/)
60+
- [3.37](https://docs.sourcegraph.com/@3.37/)
61+
- [3.36](https://docs.sourcegraph.com/@3.36/)
62+
- [3.35](https://docs.sourcegraph.com/@3.35/)
63+
- [3.34](https://docs.sourcegraph.com/@3.34/)
64+
- [3.32](https://docs.sourcegraph.com/@3.32/)
65+
- [3.31](https://docs.sourcegraph.com/@3.31/)
66+
- [3.30](https://docs.sourcegraph.com/@3.30/)
67+
- [3.29](https://docs.sourcegraph.com/@3.29/)
68+
- [3.28](https://docs.sourcegraph.com/@3.28/)
69+
- [3.27](https://docs.sourcegraph.com/@3.27/)
70+
- [3.26](https://docs.sourcegraph.com/@3.26/)
71+
- [3.25](https://docs.sourcegraph.com/@3.25/)
72+
- [3.24](https://docs.sourcegraph.com/@3.24/)
73+
- [3.23](https://docs.sourcegraph.com/@3.23/)
74+
- [3.22](https://docs.sourcegraph.com/@3.22/)
75+
- [3.21](https://docs.sourcegraph.com/@3.21/)
7676

7777
</Accordion>

src/components/ReleasesTable.tsx

Lines changed: 59 additions & 61 deletions
Original file line numberDiff line numberDiff line change
@@ -25,35 +25,6 @@ function formatDate(dateString: string): string {
2525
});
2626
}
2727

28-
type LegacyRelease = {
29-
name: string;
30-
date: string;
31-
anchor?: string;
32-
url?: string;
33-
};
34-
35-
const legacySupportedReleases: LegacyRelease[] = [
36-
{name: '5.10 Patch 1', date: 'December 2024', url: 'https://sourcegraph.com/changelog/releases/5.10.1164'},
37-
{name: '5.10 Patch 0', date: 'November 2024', url: 'https://sourcegraph.com/changelog/releases/5.10.0'},
38-
{name: '5.9 Patch 3', date: 'November 2024', url: 'https://sourcegraph.com/changelog/releases/5.9.1590'},
39-
{name: '5.9 Patch 2', date: 'November 2024', url: 'https://sourcegraph.com/changelog/releases/5.9.347'},
40-
{name: '5.9 Patch 1', date: 'November 2024', url: 'https://sourcegraph.com/changelog/releases/5.9.45'},
41-
{name: '5.9 Patch 0', date: 'October 2024', url: 'https://sourcegraph.com/changelog/releases/5.9.0'},
42-
{name: '5.8 Patch 1', date: 'October 2024', url: 'https://sourcegraph.com/changelog/releases/5.8.1579'},
43-
{name: '5.8 Patch 0', date: 'October 2024', url: 'https://sourcegraph.com/changelog/releases/5.8.0'},
44-
{name: '5.7 Patch 1', date: 'September 2024', url: 'https://sourcegraph.com/changelog/releases/5.7.2474'},
45-
{name: '5.7 Patch 0', date: 'September 2024', url: 'https://sourcegraph.com/changelog/releases/5.7.0'},
46-
{name: '5.6 Patch 2', date: 'August 2024', anchor: 'v562535'},
47-
{name: '5.6 Patch 1', date: 'August 2024', anchor: 'v56185'},
48-
{name: '5.6', date: 'August 2024', anchor: 'v560'},
49-
{name: '5.5', date: 'July 2024', anchor: 'v553956'},
50-
{name: '5.4', date: 'May 2024', anchor: 'v547765'},
51-
{name: '5.3', date: 'February 2024', anchor: 'v5312303'},
52-
{name: '5.2', date: 'October 2023', anchor: 'v527'},
53-
{name: '5.1', date: 'June 2023', anchor: 'v519'},
54-
{name: '5.0', date: 'March 2023', anchor: 'v506'}
55-
];
56-
5728
export function SupportedReleasesTable() {
5829
const [releases, setReleases] = useState<Release[]>([]);
5930
const [loading, setLoading] = useState(true);
@@ -147,38 +118,6 @@ export function SupportedReleasesTable() {
147118
</td>
148119
</tr>
149120
))}
150-
{legacySupportedReleases.map(release => (
151-
<tr key={release.name}>
152-
<td className="px-4 py-2">{release.name}</td>
153-
<td className="px-4 py-2">{release.date}</td>
154-
<td className="px-4 py-2"></td>
155-
<td className="px-4 py-2">
156-
{release.url ? (
157-
<a
158-
href={release.url}
159-
className="text-blue-600 hover:underline dark:text-blue-400"
160-
>
161-
Notes
162-
</a>
163-
) : (
164-
<Link
165-
href={`/technical-changelog#${release.anchor}`}
166-
className="text-blue-600 hover:underline dark:text-blue-400"
167-
>
168-
Notes
169-
</Link>
170-
)}
171-
</td>
172-
<td className="px-4 py-2">
173-
<Link
174-
href="/admin/deploy"
175-
className="text-blue-600 hover:underline dark:text-blue-400"
176-
>
177-
Install
178-
</Link>
179-
</td>
180-
</tr>
181-
))}
182121
</tbody>
183122
</table>
184123
</div>
@@ -187,6 +126,65 @@ export function SupportedReleasesTable() {
187126

188127
export function DeprecatedReleasesTable() {
189128
const deprecatedReleases = [
129+
{
130+
version: '5.10 Patch 1',
131+
date: 'December 2024',
132+
url: 'https://sourcegraph.com/changelog/releases/5.10.1164'
133+
},
134+
{
135+
version: '5.10 Patch 0',
136+
date: 'November 2024',
137+
url: 'https://sourcegraph.com/changelog/releases/5.10.0'
138+
},
139+
{
140+
version: '5.9 Patch 3',
141+
date: 'November 2024',
142+
url: 'https://sourcegraph.com/changelog/releases/5.9.1590'
143+
},
144+
{
145+
version: '5.9 Patch 2',
146+
date: 'November 2024',
147+
url: 'https://sourcegraph.com/changelog/releases/5.9.347'
148+
},
149+
{
150+
version: '5.9 Patch 1',
151+
date: 'November 2024',
152+
url: 'https://sourcegraph.com/changelog/releases/5.9.45'
153+
},
154+
{
155+
version: '5.9 Patch 0',
156+
date: 'October 2024',
157+
url: 'https://sourcegraph.com/changelog/releases/5.9.0'
158+
},
159+
{
160+
version: '5.8 Patch 1',
161+
date: 'October 2024',
162+
url: 'https://sourcegraph.com/changelog/releases/5.8.1579'
163+
},
164+
{
165+
version: '5.8 Patch 0',
166+
date: 'October 2024',
167+
url: 'https://sourcegraph.com/changelog/releases/5.8.0'
168+
},
169+
{
170+
version: '5.7 Patch 1',
171+
date: 'September 2024',
172+
url: 'https://sourcegraph.com/changelog/releases/5.7.2474'
173+
},
174+
{
175+
version: '5.7 Patch 0',
176+
date: 'September 2024',
177+
url: 'https://sourcegraph.com/changelog/releases/5.7.0'
178+
},
179+
{version: '5.6 Patch 2', date: 'August 2024', anchor: 'v562535'},
180+
{version: '5.6 Patch 1', date: 'August 2024', anchor: 'v56185'},
181+
{version: '5.6', date: 'August 2024', anchor: 'v560'},
182+
{version: '5.5', date: 'July 2024', anchor: 'v553956'},
183+
{version: '5.4', date: 'May 2024', anchor: 'v547765'},
184+
{version: '5.3', date: 'February 2024', anchor: 'v5312303'},
185+
{version: '5.2', date: 'October 2023', anchor: 'v527'},
186+
{version: '5.1', date: 'June 2023', anchor: 'v519'},
187+
{version: '5.0', date: 'March 2023', anchor: 'v506'},
190188
{version: '4.5', date: 'February 2023', anchor: 'v451'},
191189
{version: '4.4', date: 'January 2023', anchor: 'v442'},
192190
{version: '4.3', date: 'December 2022', anchor: 'v431'},

0 commit comments

Comments
 (0)