update runner version (#506)

Replace `3.x` to the latest version of that series.

<!-- cloudflare-preview --> Preview: https://pr-506.docs-gitea-com.pages.dev

Reviewed-on: https://gitea.com/gitea/docs/pulls/506
Reviewed-by: Zettat123 <[email protected]>
This commit is contained in:
Lunny Xiao
2026-08-12 20:32:47 +00:00
parent b137a0e0e1
commit 6e06ee3216
+14 -4
View File
@@ -187,8 +187,18 @@ const docsProduct: ProductDef = {
],
};
/** Runner docs: one directory per release series, english only for now. */
const runnerSeries = ['3', '2', '1', '0'];
/**
* Runner docs: one directory per release series, english only for now.
* The label is the newest release of the series, which is also the tag the
* generated reference pages of that directory come from, so it has to be
* bumped here when a new runner release is documented.
*/
const runnerSeries: { id: string; latestRelease: string }[] = [
{ id: '3', latestRelease: '3.1.0' },
{ id: '2', latestRelease: '2.3.0' },
{ id: '1', latestRelease: '1.0.8' },
{ id: '0', latestRelease: '0.6.1' },
];
const runnerProduct: ProductDef = {
id: 'runner',
@@ -204,9 +214,9 @@ const runnerProduct: ProductDef = {
sources: { 'en-us': 'runner-docs' },
},
...runnerSeries.map(
(id, index): VersionDef => ({
({ id, latestRelease }, index): VersionDef => ({
id,
label: `${id}.x`,
label: latestRelease,
path: index === 0 ? '' : id,
latest: index === 0,
sources: { 'en-us': `runner-docs_versioned_docs/version-${id}` },