mirror of
https://github.com/immich-app/immich.git
synced 2024-12-28 14:41:59 +00:00
docs: fix archive script labels and change to variable to nextVersion (#10119)
This commit is contained in:
parent
8568c2e8b9
commit
3c15dae341
2 changed files with 4 additions and 4 deletions
2
docs/static/archived-versions.json
vendored
2
docs/static/archived-versions.json
vendored
|
@ -1,6 +1,6 @@
|
||||||
[
|
[
|
||||||
{
|
{
|
||||||
"label": "1.106.1",
|
"label": "v1.106.1",
|
||||||
"url": "https://v1.106.1.archive.immich.app"
|
"url": "https://v1.106.1.archive.immich.app"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
|
|
@ -1,8 +1,8 @@
|
||||||
#! /usr/bin/env node
|
#! /usr/bin/env node
|
||||||
const { readFileSync, writeFileSync } = require('node:fs');
|
const { readFileSync, writeFileSync } = require('node:fs');
|
||||||
|
|
||||||
const lastVersion = process.argv[2];
|
const nextVersion = process.argv[2];
|
||||||
if (!lastVersion) {
|
if (!nextVersion) {
|
||||||
console.log('Usage: archive-version.js <version>');
|
console.log('Usage: archive-version.js <version>');
|
||||||
process.exit(1);
|
process.exit(1);
|
||||||
}
|
}
|
||||||
|
@ -10,7 +10,7 @@ if (!lastVersion) {
|
||||||
const filename = './docs/static/archived-versions.json';
|
const filename = './docs/static/archived-versions.json';
|
||||||
const oldVersions = JSON.parse(readFileSync(filename));
|
const oldVersions = JSON.parse(readFileSync(filename));
|
||||||
const newVersions = [
|
const newVersions = [
|
||||||
{ label: lastVersion, url: `https://v${lastVersion}.archive.immich.app` },
|
{ label: `v${nextVersion}`, url: `https://v${nextVersion}.archive.immich.app` },
|
||||||
...oldVersions,
|
...oldVersions,
|
||||||
];
|
];
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue