mirror of
https://github.com/Unleash/unleash.git
synced 2025-09-10 17:53:36 +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
|
), // the file names to download
|
||||||
modifyContent: (filename, content) => {
|
modifyContent: (filename, content) => {
|
||||||
const sdk = getReadmeRepoData(filename);
|
const sdk = getReadmeRepoData(filename);
|
||||||
|
|
||||||
|
const generationTime = new Date();
|
||||||
|
|
||||||
return {
|
return {
|
||||||
filename: `${sdk.slugName}.md`,
|
filename: `${sdk.slugName}.md`,
|
||||||
content: `---
|
content: `---
|
||||||
@ -615,6 +618,13 @@ This document was generated from the README in the [${sdk.sidebarName} SDK's Git
|
|||||||
:::
|
:::
|
||||||
|
|
||||||
${content}
|
${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