mirror of
https://github.com/feigeCode/navop.git
synced 2026-09-22 16:01:30 +00:00
36 lines
892 B
JavaScript
36 lines
892 B
JavaScript
import { copyFileSync, mkdirSync } from "node:fs";
|
|
import { dirname, join } from "node:path";
|
|
import { fileURLToPath } from "node:url";
|
|
|
|
const docsSiteRoot = dirname(dirname(fileURLToPath(import.meta.url)));
|
|
const repositoryRoot = dirname(docsSiteRoot);
|
|
const outputDir = join(docsSiteRoot, "docs", "public", "images");
|
|
const screenshots = [
|
|
"app.png",
|
|
"app1.png",
|
|
"agent_hub.png",
|
|
"database.png",
|
|
"git_branch.png",
|
|
"git_diff.png",
|
|
"ssh.png",
|
|
"sftp.png",
|
|
"sftp_sidebar.png",
|
|
"remote_file_editor.png",
|
|
"redis.png",
|
|
"mongodb.png",
|
|
"ai_chat.png",
|
|
"monitor.png",
|
|
"er.png",
|
|
"extension.png",
|
|
"markdown.png",
|
|
"theme.png"
|
|
];
|
|
|
|
mkdirSync(outputDir, { recursive: true });
|
|
|
|
for (const screenshot of screenshots) {
|
|
copyFileSync(join(repositoryRoot, screenshot), join(outputDir, screenshot));
|
|
}
|
|
|
|
console.log(`Synced ${screenshots.length} documentation screenshots.`);
|