mirror of
https://github.com/immich-app/immich.git
synced 2024-11-21 18:16:55 +02:00
docs: fix archive script labels and change to variable to nextVersion (#10119)
This commit is contained in:
parent
8568c2e8b9
commit
3c15dae341
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"
|
||||
},
|
||||
{
|
||||
|
@ -1,8 +1,8 @@
|
||||
#! /usr/bin/env node
|
||||
const { readFileSync, writeFileSync } = require('node:fs');
|
||||
|
||||
const lastVersion = process.argv[2];
|
||||
if (!lastVersion) {
|
||||
const nextVersion = process.argv[2];
|
||||
if (!nextVersion) {
|
||||
console.log('Usage: archive-version.js <version>');
|
||||
process.exit(1);
|
||||
}
|
||||
@ -10,7 +10,7 @@ if (!lastVersion) {
|
||||
const filename = './docs/static/archived-versions.json';
|
||||
const oldVersions = JSON.parse(readFileSync(filename));
|
||||
const newVersions = [
|
||||
{ label: lastVersion, url: `https://v${lastVersion}.archive.immich.app` },
|
||||
{ label: `v${nextVersion}`, url: `https://v${nextVersion}.archive.immich.app` },
|
||||
...oldVersions,
|
||||
];
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user