1

Correction de l'attribution dans les images de Rebrickable

This commit is contained in:
2025-12-01 00:10:51 +01:00
parent a17ad33a46
commit 19952fec1f
12 changed files with 12 additions and 12 deletions

View File

@@ -1 +1 @@
attribution: "© Rebrickable" attribution: "© [Rebrickable](https://rebrickable.com/)"

View File

@@ -1 +1 @@
attribution: "© Rebrickable" attribution: "© [Rebrickable](https://rebrickable.com/)"

View File

@@ -1 +1 @@
attribution: "© Rebrickable" attribution: "© [Rebrickable](https://rebrickable.com/)"

View File

@@ -1 +1 @@
attribution: "© Rebrickable" attribution: "© [Rebrickable](https://rebrickable.com/)"

View File

@@ -1 +1 @@
attribution: "© Rebrickable" attribution: "© [Rebrickable](https://rebrickable.com/)"

View File

@@ -1 +1 @@
attribution: "© Rebrickable" attribution: "© [Rebrickable](https://rebrickable.com/)"

View File

@@ -1 +1 @@
attribution: "© Rebrickable" attribution: "© [Rebrickable](https://rebrickable.com/)"

View File

@@ -1 +1 @@
attribution: "© Rebrickable" attribution: "© [Rebrickable](https://rebrickable.com/)"

View File

@@ -1 +1 @@
attribution: "© Rebrickable" attribution: "© [Rebrickable](https://rebrickable.com/)"

View File

@@ -1 +1 @@
attribution: "© Rebrickable" attribution: "© [Rebrickable](https://rebrickable.com/)"

View File

@@ -1 +1 @@
attribution: "© Rebrickable" attribution: "© [Rebrickable](https://rebrickable.com/)"

View File

@@ -352,7 +352,7 @@ async function main() {
const nameNoExt = base.replace(/\.[^.]+$/, ''); const nameNoExt = base.replace(/\.[^.]+$/, '');
const yamlPath = path.join(dataImagesDir, `${nameNoExt}.yaml`); const yamlPath = path.join(dataImagesDir, `${nameNoExt}.yaml`);
const cleanedTitle = (figTitle || '').trim(); const cleanedTitle = (figTitle || '').trim();
const yamlLines = [`attribution: "© Rebrickable"`]; const yamlLines = [`attribution: "© [Rebrickable](https://rebrickable.com/)"`];
if (cleanedTitle) { if (cleanedTitle) {
yamlLines.push(`title: "${cleanedTitle.replace(/"/g, '\\"')}"`); yamlLines.push(`title: "${cleanedTitle.replace(/"/g, '\\"')}"`);
} }