Initial commit: OOODMDK website with updated cities page design

This commit is contained in:
albivkt
2025-06-29 03:18:28 +03:00
commit 5a37ded261
70 changed files with 41347 additions and 0 deletions

21
scripts/generate-pdf.js Normal file
View File

@ -0,0 +1,21 @@
const fs = require("fs");
const path = require("path");
const markdownpdf = require("markdown-pdf");
const inputFile = path.join(__dirname, "../docs/seo-optimization-report.md");
const outputFile = path.join(__dirname, "../docs/seo-optimization-report.pdf");
const options = {
remarkable: {
html: true,
breaks: true,
typographer: true,
},
cssPath: path.join(__dirname, "pdf-style.css"),
};
markdownpdf(options)
.from(inputFile)
.to(outputFile, function () {
console.log("PDF создан успешно:", outputFile);
});