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:
parent
b6b0cb06d4
commit
7cf95dd61c
@ -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>
|
||||
`,
|
||||
};
|
||||
},
|
||||
|
Loading…
Reference in New Issue
Block a user