mirror of
https://gitea.com/gitea/docs.git
synced 2026-09-17 19:55:34 +00:00
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:
@@ -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 = {
|
const runnerProduct: ProductDef = {
|
||||||
id: 'runner',
|
id: 'runner',
|
||||||
@@ -204,9 +214,9 @@ const runnerProduct: ProductDef = {
|
|||||||
sources: { 'en-us': 'runner-docs' },
|
sources: { 'en-us': 'runner-docs' },
|
||||||
},
|
},
|
||||||
...runnerSeries.map(
|
...runnerSeries.map(
|
||||||
(id, index): VersionDef => ({
|
({ id, latestRelease }, index): VersionDef => ({
|
||||||
id,
|
id,
|
||||||
label: `${id}.x`,
|
label: latestRelease,
|
||||||
path: index === 0 ? '' : id,
|
path: index === 0 ? '' : id,
|
||||||
latest: index === 0,
|
latest: index === 0,
|
||||||
sources: { 'en-us': `runner-docs_versioned_docs/version-${id}` },
|
sources: { 'en-us': `runner-docs_versioned_docs/version-${id}` },
|
||||||
|
|||||||
Reference in New Issue
Block a user