mirror of
https://github.com/jags111/efficiency-nodes-comfyui.git
synced 2026-03-25 07:05:44 -03:00
Update readme.md
This commit is contained in:
committed by
GitHub
parent
83d870ea7e
commit
eccc2473d2
@@ -1 +1,34 @@
|
|||||||
All images of nodes and work related info on effeciency nodes here !
|
#!/usr/bin/env node
|
||||||
|
|
||||||
|
const fs = require('fs');
|
||||||
|
const path = require('path');
|
||||||
|
|
||||||
|
const ROOT_DIR = './Portrait Repository/FE10 Mugs (Radiant Dawn)/';
|
||||||
|
const README_FILENAME = 'README.md';
|
||||||
|
const NB_IMAGES_PER_LINE = 4;
|
||||||
|
let nbImages = 0;
|
||||||
|
let mdContent = '<table><tr>';
|
||||||
|
|
||||||
|
fs.readdirSync(ROOT_DIR).forEach((image) => {
|
||||||
|
if (image !== README_FILENAME) {
|
||||||
|
if (!(nbImages % NB_IMAGES_PER_LINE)) {
|
||||||
|
if (nbImages > 0) {
|
||||||
|
mdContent += `
|
||||||
|
</tr>`;
|
||||||
|
}
|
||||||
|
mdContent += `
|
||||||
|
<tr>`;
|
||||||
|
}
|
||||||
|
nbImages++;
|
||||||
|
mdContent += `
|
||||||
|
<td valign="bottom">
|
||||||
|
<img src="./${image}" width="200"><br>
|
||||||
|
${image}
|
||||||
|
</td>
|
||||||
|
`;
|
||||||
|
}
|
||||||
|
});
|
||||||
|
mdContent += `
|
||||||
|
</tr></table>`;
|
||||||
|
|
||||||
|
fs.writeFileSync(path.join(ROOT_DIR, README_FILENAME), mdContent);
|
||||||
|
|||||||
Reference in New Issue
Block a user