1
0
mirror of https://github.com/Unleash/unleash.git synced 2025-09-05 17:53:12 +02:00

Docs(feat): add generation timestamp to end of generated readme

This commit is contained in:
Thomas Heartman 2023-01-03 15:07:20 +01:00
parent b6b0cb06d4
commit 7cf95dd61c
No known key found for this signature in database
GPG Key ID: 47CFBB2D87C87664

View File

@ -604,6 +604,9 @@ module.exports = {
), // the file names to download
modifyContent: (filename, content) => {
const sdk = getReadmeRepoData(filename);
const generationTime = new Date();
return {
filename: `${sdk.slugName}.md`,
content: `---
@ -615,6 +618,13 @@ This document was generated from the README in the [${sdk.sidebarName} SDK's Git
:::
${content}
---
This content was generated on <time datetime="${generationTime.toISOString()}">${generationTime.toLocaleString(
'en-gb',
{ dateStyle: 'long', timeStyle: 'full' },
)}</time>
`,
};
},