Add VISAS & SIGNATAIRES to README of LEGI text

This commit is contained in:
Emmanuel 2024-12-07 12:40:41 +01:00
parent 555ff15da6
commit 5b1771a3e6

View file

@ -803,6 +803,16 @@ async function generateTexteGitDirectory(
}
}
const readmeBlocks = [
`${"#".repeat(Math.min(depth, 6))} ${
texteVersion.META.META_SPEC.META_TEXTE_VERSION.TITREFULL ??
texteVersion.META.META_SPEC.META_TEXTE_VERSION.TITRE ??
texteVersion.META.META_COMMUN.ID
}`,
texteVersion.VISAS?.CONTENU,
readmeLinks.map(({ href, title }) => `- [${title}](${href})`).join("\n"),
texteVersion.SIGNATAIRES?.CONTENU,
].filter((block) => block != null)
const readmeRepositoryRelativeFilePath = path.join(
repositoryRelativeDir,
"README.md",
@ -833,13 +843,7 @@ async function generateTexteGitDirectory(
.join("\n")}
---
${"#".repeat(Math.min(depth, 6))} ${
texteVersion.META.META_SPEC.META_TEXTE_VERSION.TITREFULL ??
texteVersion.META.META_SPEC.META_TEXTE_VERSION.TITRE ??
texteVersion.META.META_COMMUN.ID
}
${readmeLinks.map(({ href, title }) => `- [${title}](${href})`).join("\n")}
${readmeBlocks.join("\n\n")}
` + "\n",
)
await git.add({